Lines Matching refs:ifindex
52 static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex) in sel_netif_hashfn() argument
54 return (((uintptr_t)ns + ifindex) & (SEL_NETIF_HASH_SIZE - 1)); in sel_netif_hashfn()
68 int ifindex) in sel_netif_find() argument
70 int idx = sel_netif_hashfn(ns, ifindex); in sel_netif_find()
75 netif->nsec.ifindex == ifindex) in sel_netif_find()
97 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); in sel_netif_insert()
132 static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid_slow() argument
142 dev = dev_get_by_index(ns, ifindex); in sel_netif_sid_slow()
145 __func__, ifindex); in sel_netif_sid_slow()
150 netif = sel_netif_find(ns, ifindex); in sel_netif_sid_slow()
162 new->nsec.ifindex = ifindex; in sel_netif_sid_slow()
173 __func__, ifindex); in sel_netif_sid_slow()
191 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid() argument
196 netif = sel_netif_find(ns, ifindex); in sel_netif_sid()
204 return sel_netif_sid_slow(ns, ifindex, sid); in sel_netif_sid()
217 static void sel_netif_kill(const struct net *ns, int ifindex) in sel_netif_kill() argument
223 netif = sel_netif_find(ns, ifindex); in sel_netif_kill()
255 sel_netif_kill(dev_net(dev), dev->ifindex); in sel_netif_netdev_notifier_handler()