Lines Matching refs:netif
71 struct sel_netif *netif; in sel_netif_find() local
73 list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list) in sel_netif_find()
74 if (net_eq(netif->nsec.ns, ns) && in sel_netif_find()
75 netif->nsec.ifindex == ifindex) in sel_netif_find()
76 return netif; in sel_netif_find()
90 static int sel_netif_insert(struct sel_netif *netif) in sel_netif_insert() argument
97 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); in sel_netif_insert()
98 list_add_rcu(&netif->list, &sel_netif_hash[idx]); in sel_netif_insert()
112 static void sel_netif_destroy(struct sel_netif *netif) in sel_netif_destroy() argument
114 list_del_rcu(&netif->list); in sel_netif_destroy()
116 kfree_rcu(netif, rcu_head); in sel_netif_destroy()
135 struct sel_netif *netif; in sel_netif_sid_slow() local
150 netif = sel_netif_find(ns, ifindex); in sel_netif_sid_slow()
151 if (netif != NULL) { in sel_netif_sid_slow()
152 *sid = netif->nsec.sid; in sel_netif_sid_slow()
193 struct sel_netif *netif; in sel_netif_sid() local
196 netif = sel_netif_find(ns, ifindex); in sel_netif_sid()
197 if (likely(netif != NULL)) { in sel_netif_sid()
198 *sid = netif->nsec.sid; in sel_netif_sid()
219 struct sel_netif *netif; in sel_netif_kill() local
223 netif = sel_netif_find(ns, ifindex); in sel_netif_kill()
224 if (netif) in sel_netif_kill()
225 sel_netif_destroy(netif); in sel_netif_kill()
240 struct sel_netif *netif; in sel_netif_flush() local
244 list_for_each_entry(netif, &sel_netif_hash[idx], list) in sel_netif_flush()
245 sel_netif_destroy(netif); in sel_netif_flush()