Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: l3mdev: Remove l3mdev_fib_oif

No longer used

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

David Ahern and committed by
David S. Miller
ca28b8f2 8a966fc0

-29
-29
include/net/l3mdev.h
··· 107 107 return master; 108 108 } 109 109 110 - /* get index of an interface to use for FIB lookups. For devices 111 - * enslaved to an L3 master device FIB lookups are based on the 112 - * master index 113 - */ 114 - static inline int l3mdev_fib_oif_rcu(struct net_device *dev) 115 - { 116 - return l3mdev_master_ifindex_rcu(dev) ? : dev->ifindex; 117 - } 118 - 119 - static inline int l3mdev_fib_oif(struct net_device *dev) 120 - { 121 - int oif; 122 - 123 - rcu_read_lock(); 124 - oif = l3mdev_fib_oif_rcu(dev); 125 - rcu_read_unlock(); 126 - 127 - return oif; 128 - } 129 - 130 110 u32 l3mdev_fib_table_rcu(const struct net_device *dev); 131 111 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex); 132 112 static inline u32 l3mdev_fib_table(const struct net_device *dev) ··· 226 246 struct net_device *l3mdev_master_dev_rcu(const struct net_device *dev) 227 247 { 228 248 return NULL; 229 - } 230 - 231 - static inline int l3mdev_fib_oif_rcu(struct net_device *dev) 232 - { 233 - return dev ? dev->ifindex : 0; 234 - } 235 - static inline int l3mdev_fib_oif(struct net_device *dev) 236 - { 237 - return dev ? dev->ifindex : 0; 238 249 } 239 250 240 251 static inline u32 l3mdev_fib_table_rcu(const struct net_device *dev)