Lines Matching refs:ifindex

97 	int ifindex;  member
206 static u32 netlbl_unlhsh_hash(int ifindex) in netlbl_unlhsh_hash() argument
208 return ifindex & (netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->size - 1); in netlbl_unlhsh_hash()
222 static struct netlbl_unlhsh_iface *netlbl_unlhsh_search_iface(int ifindex) in netlbl_unlhsh_search_iface() argument
228 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_search_iface()
231 if (iter->valid && iter->ifindex == ifindex) in netlbl_unlhsh_search_iface()
331 static struct netlbl_unlhsh_iface *netlbl_unlhsh_add_iface(int ifindex) in netlbl_unlhsh_add_iface() argument
340 iface->ifindex = ifindex; in netlbl_unlhsh_add_iface()
346 if (ifindex > 0) { in netlbl_unlhsh_add_iface()
347 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_add_iface()
348 if (netlbl_unlhsh_search_iface(ifindex) != NULL) in netlbl_unlhsh_add_iface()
392 int ifindex; in netlbl_unlhsh_add() local
410 ifindex = dev->ifindex; in netlbl_unlhsh_add()
411 iface = netlbl_unlhsh_search_iface(ifindex); in netlbl_unlhsh_add()
413 ifindex = 0; in netlbl_unlhsh_add()
417 iface = netlbl_unlhsh_add_iface(ifindex); in netlbl_unlhsh_add()
510 dev = dev_get_by_index(net, iface->ifindex); in netlbl_unlhsh_remove_addr4()
571 dev = dev_get_by_index(net, iface->ifindex); in netlbl_unlhsh_remove_addr6()
620 if (iface->ifindex > 0) in netlbl_unlhsh_condremove_iface()
669 iface = netlbl_unlhsh_search_iface(dev->ifindex); in netlbl_unlhsh_remove()
730 iface = netlbl_unlhsh_search_iface(dev->ifindex); in netlbl_unlhsh_netdev_handler()
1103 if (iface->ifindex > 0) { in netlbl_unlabel_staticlist_gen()
1104 dev = dev_get_by_index(&init_net, iface->ifindex); in netlbl_unlabel_staticlist_gen()