Lines Matching refs:ifindex
81 int ifindex = -EINVAL; in l3mdev_ifindex_lookup_by_table_id() local
96 ifindex = lookup(net, table_id); in l3mdev_ifindex_lookup_by_table_id()
101 return ifindex; in l3mdev_ifindex_lookup_by_table_id()
112 int ifindex = 0; in l3mdev_master_ifindex_rcu() local
118 ifindex = dev->ifindex; in l3mdev_master_ifindex_rcu()
131 ifindex = master->ifindex; in l3mdev_master_ifindex_rcu()
134 return ifindex; in l3mdev_master_ifindex_rcu()
144 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu() argument
148 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_upper_ifindex_by_index_rcu()
152 return dev ? dev->ifindex : 0; in l3mdev_master_upper_ifindex_by_index_rcu()
189 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() argument
194 if (!ifindex) in l3mdev_fib_table_by_index()
199 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_fib_table_by_index()
280 int ifindex; in l3mdev_update_flow() local
287 ifindex = l3mdev_master_ifindex_rcu(dev); in l3mdev_update_flow()
288 if (ifindex) { in l3mdev_update_flow()
289 fl->flowi_oif = ifindex; in l3mdev_update_flow()
299 ifindex = l3mdev_master_ifindex_rcu(dev); in l3mdev_update_flow()
300 if (ifindex) { in l3mdev_update_flow()
301 fl->flowi_iif = ifindex; in l3mdev_update_flow()