Lines Matching refs:ifindex
67 int ifindex; in l3mdev_master_ifindex() local
70 ifindex = l3mdev_master_ifindex_rcu(dev); in l3mdev_master_ifindex()
73 return ifindex; in l3mdev_master_ifindex()
76 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
81 if (likely(ifindex)) { in l3mdev_master_ifindex_by_index()
84 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_ifindex_by_index()
119 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex);
121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
124 ifindex = l3mdev_master_upper_ifindex_by_index_rcu(net, ifindex); in l3mdev_master_upper_ifindex_by_index()
127 return ifindex; in l3mdev_master_upper_ifindex_by_index()
131 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
143 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument
148 if (ifindex == 0) in netif_index_is_l3_master()
153 dev = dev_get_by_index_rcu(net, ifindex); in netif_index_is_l3_master()
232 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
238 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu() argument
243 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
262 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() argument
267 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument