• Home
  • Raw
  • Download

Lines Matching refs:ifindex

83 	int ifindex;  member
186 static u32 netlbl_unlhsh_hash(int ifindex) in netlbl_unlhsh_hash() argument
188 return ifindex & (netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->size - 1); in netlbl_unlhsh_hash()
202 static struct netlbl_unlhsh_iface *netlbl_unlhsh_search_iface(int ifindex) in netlbl_unlhsh_search_iface() argument
208 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_search_iface()
212 if (iter->valid && iter->ifindex == ifindex) in netlbl_unlhsh_search_iface()
312 static struct netlbl_unlhsh_iface *netlbl_unlhsh_add_iface(int ifindex) in netlbl_unlhsh_add_iface() argument
321 iface->ifindex = ifindex; in netlbl_unlhsh_add_iface()
327 if (ifindex > 0) { in netlbl_unlhsh_add_iface()
328 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_add_iface()
329 if (netlbl_unlhsh_search_iface(ifindex) != NULL) in netlbl_unlhsh_add_iface()
373 int ifindex; in netlbl_unlhsh_add() local
391 ifindex = dev->ifindex; in netlbl_unlhsh_add()
392 iface = netlbl_unlhsh_search_iface(ifindex); in netlbl_unlhsh_add()
394 ifindex = 0; in netlbl_unlhsh_add()
398 iface = netlbl_unlhsh_add_iface(ifindex); in netlbl_unlhsh_add()
491 dev = dev_get_by_index(net, iface->ifindex); in netlbl_unlhsh_remove_addr4()
551 dev = dev_get_by_index(net, iface->ifindex); in netlbl_unlhsh_remove_addr6()
599 if (iface->ifindex > 0) in netlbl_unlhsh_condremove_iface()
648 iface = netlbl_unlhsh_search_iface(dev->ifindex); in netlbl_unlhsh_remove()
709 iface = netlbl_unlhsh_search_iface(dev->ifindex); in netlbl_unlhsh_netdev_handler()
1083 if (iface->ifindex > 0) { in netlbl_unlabel_staticlist_gen()
1084 dev = dev_get_by_index(&init_net, iface->ifindex); in netlbl_unlabel_staticlist_gen()