Lines Matching refs:eport
2177 struct vcap_enabled_port *eport; in vcap_is_chain_used() local
2181 list_for_each_entry(eport, &admin->enabled, list) in vcap_is_chain_used()
2182 if (eport->src_cid == src_cid && eport->ndev == ndev) in vcap_is_chain_used()
2193 struct vcap_enabled_port *eport; in vcap_get_next_chain() local
2197 list_for_each_entry(eport, &admin->enabled, list) { in vcap_get_next_chain()
2198 if (eport->ndev != ndev) in vcap_get_next_chain()
2200 if (eport->src_cid == dst_cid) in vcap_get_next_chain()
2201 return eport->dst_cid; in vcap_get_next_chain()
2212 struct vcap_enabled_port *eport = NULL; in vcap_path_exist() local
2224 eport = elem; in vcap_path_exist()
2228 if (eport) in vcap_path_exist()
2232 if (!eport) in vcap_path_exist()
2235 tmp = eport->dst_cid; in vcap_path_exist()
2581 struct vcap_enabled_port *eport, *next_eport; in vcap_del_rules() local
2597 list_for_each_entry_safe(eport, next_eport, &admin->enabled, list) { in vcap_del_rules()
2598 list_del(&eport->list); in vcap_del_rules()
2599 kfree(eport); in vcap_del_rules()
3103 struct vcap_enabled_port *eport; in vcap_is_enabled() local
3107 list_for_each_entry(eport, &admin->enabled, list) in vcap_is_enabled()
3108 if (eport->dst_cid == dst_cid && eport->ndev == ndev) in vcap_is_enabled()
3118 struct vcap_enabled_port *eport; in vcap_enable() local
3128 eport = kzalloc(sizeof(*eport), GFP_KERNEL); in vcap_enable()
3129 if (!eport) in vcap_enable()
3132 eport->ndev = ndev; in vcap_enable()
3133 eport->cookie = cookie; in vcap_enable()
3134 eport->src_cid = src_cid; in vcap_enable()
3135 eport->dst_cid = dst_cid; in vcap_enable()
3137 list_add_tail(&eport->list, &admin->enabled); in vcap_enable()
3158 struct vcap_enabled_port *elem, *eport = NULL; in vcap_disable() local
3165 eport = elem; in vcap_disable()
3170 if (eport) in vcap_disable()
3174 if (!eport) in vcap_disable()
3178 dst_cid = eport->dst_cid; in vcap_disable()
3189 list_del(&eport->list); in vcap_disable()
3191 kfree(eport); in vcap_disable()