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()
76 if (likely(netif->nsec.ifindex == ifindex)) in sel_netif_find()
77 return netif; in sel_netif_find()
91 static int sel_netif_insert(struct sel_netif *netif) in sel_netif_insert() argument
98 idx = sel_netif_hashfn(netif->nsec.ifindex); in sel_netif_insert()
99 list_add_rcu(&netif->list, &sel_netif_hash[idx]); in sel_netif_insert()
117 struct sel_netif *netif = container_of(p, struct sel_netif, rcu_head); in sel_netif_free() local
118 kfree(netif); in sel_netif_free()
129 static void sel_netif_destroy(struct sel_netif *netif) in sel_netif_destroy() argument
131 list_del_rcu(&netif->list); in sel_netif_destroy()
133 call_rcu(&netif->rcu_head, sel_netif_free); in sel_netif_destroy()
151 struct sel_netif *netif; in sel_netif_sid_slow() local
167 netif = sel_netif_find(ifindex); in sel_netif_sid_slow()
168 if (netif != NULL) { in sel_netif_sid_slow()
169 *sid = netif->nsec.sid; in sel_netif_sid_slow()
215 struct sel_netif *netif; in sel_netif_sid() local
218 netif = sel_netif_find(ifindex); in sel_netif_sid()
219 if (likely(netif != NULL)) { in sel_netif_sid()
220 *sid = netif->nsec.sid; in sel_netif_sid()
240 struct sel_netif *netif; in sel_netif_kill() local
244 netif = sel_netif_find(ifindex); in sel_netif_kill()
245 if (netif) in sel_netif_kill()
246 sel_netif_destroy(netif); in sel_netif_kill()
261 struct sel_netif *netif; in sel_netif_flush() local
265 list_for_each_entry(netif, &sel_netif_hash[idx], list) in sel_netif_flush()
266 sel_netif_destroy(netif); in sel_netif_flush()