Lines Matching defs:netif
30 #include "netif.h"
72 struct sel_netif *netif;
74 list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list)
77 if (likely(netif->nsec.ifindex == ifindex))
78 return netif;
85 * @netif: the new interface record
92 static int sel_netif_insert(struct sel_netif *netif)
99 idx = sel_netif_hashfn(netif->nsec.ifindex);
100 list_add_rcu(&netif->list, &sel_netif_hash[idx]);
118 struct sel_netif *netif = container_of(p, struct sel_netif, rcu_head);
119 kfree(netif);
124 * @netif: the existing interface record
130 static void sel_netif_destroy(struct sel_netif *netif)
132 list_del_rcu(&netif->list);
134 call_rcu(&netif->rcu_head, sel_netif_free);
152 struct sel_netif *netif;
168 netif = sel_netif_find(ifindex);
169 if (netif != NULL) {
170 *sid = netif->nsec.sid;
216 struct sel_netif *netif;
219 netif = sel_netif_find(ifindex);
220 if (likely(netif != NULL)) {
221 *sid = netif->nsec.sid;
241 struct sel_netif *netif;
245 netif = sel_netif_find(ifindex);
246 if (netif)
247 sel_netif_destroy(netif);
262 struct sel_netif *netif;
266 list_for_each_entry(netif, &sel_netif_hash[idx], list)
267 sel_netif_destroy(netif);