···107107 return master;108108}109109110110-/* get index of an interface to use for FIB lookups. For devices111111- * enslaved to an L3 master device FIB lookups are based on the112112- * master index113113- */114114-static inline int l3mdev_fib_oif_rcu(struct net_device *dev)115115-{116116- return l3mdev_master_ifindex_rcu(dev) ? : dev->ifindex;117117-}118118-119119-static inline int l3mdev_fib_oif(struct net_device *dev)120120-{121121- int oif;122122-123123- rcu_read_lock();124124- oif = l3mdev_fib_oif_rcu(dev);125125- rcu_read_unlock();126126-127127- return oif;128128-}129129-130110u32 l3mdev_fib_table_rcu(const struct net_device *dev);131111u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);132112static inline u32 l3mdev_fib_table(const struct net_device *dev)···226246struct net_device *l3mdev_master_dev_rcu(const struct net_device *dev)227247{228248 return NULL;229229-}230230-231231-static inline int l3mdev_fib_oif_rcu(struct net_device *dev)232232-{233233- return dev ? dev->ifindex : 0;234234-}235235-static inline int l3mdev_fib_oif(struct net_device *dev)236236-{237237- return dev ? dev->ifindex : 0;238249}239250240251static inline u32 l3mdev_fib_table_rcu(const struct net_device *dev)