Commit 19664c6a authored by David Ahern's avatar David Ahern Committed by David S. Miller

net: l3mdev: Remove netif_index_is_l3_master

No longer used after e0d56fdd ("net: l3mdev: remove redundant calls")
Signed-off-by: default avatarDavid Ahern <dsa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e1fb9d03
...@@ -114,25 +114,6 @@ static inline u32 l3mdev_fib_table(const struct net_device *dev) ...@@ -114,25 +114,6 @@ static inline u32 l3mdev_fib_table(const struct net_device *dev)
return tb_id; return tb_id;
} }
static inline bool netif_index_is_l3_master(struct net *net, int ifindex)
{
struct net_device *dev;
bool rc = false;
if (ifindex == 0)
return false;
rcu_read_lock();
dev = dev_get_by_index_rcu(net, ifindex);
if (dev)
rc = netif_is_l3_master(dev);
rcu_read_unlock();
return rc;
}
struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6); struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6);
static inline static inline
...@@ -226,11 +207,6 @@ static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) ...@@ -226,11 +207,6 @@ static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex)
return 0; return 0;
} }
static inline bool netif_index_is_l3_master(struct net *net, int ifindex)
{
return false;
}
static inline static inline
struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6) struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment