diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2014-11-11 16:29:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-11 16:30:16 -0500 |
commit | 09626e9d153326ca82568e4e27f2daa53713992e (patch) | |
tree | 8dd90ab2a9ba0b05e256534ef207fae772c0b924 | |
parent | 2387e3b59f186c5f9f5747df64adb66ed44f49e9 (diff) |
net: kill netif_copy_real_num_queues()
vlan was the only user of netif_copy_real_num_queues(),
but it no longer calls it after
commit 4af429d29b341bb1735f04c2fb960178 ("vlan: lockless transmit path").
So we can just remove it.
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/netdevice.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 888d5513fa4a..4a6f770377d3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2762,23 +2762,6 @@ static inline int netif_set_real_num_rx_queues(struct net_device *dev, | |||
2762 | } | 2762 | } |
2763 | #endif | 2763 | #endif |
2764 | 2764 | ||
2765 | static inline int netif_copy_real_num_queues(struct net_device *to_dev, | ||
2766 | const struct net_device *from_dev) | ||
2767 | { | ||
2768 | int err; | ||
2769 | |||
2770 | err = netif_set_real_num_tx_queues(to_dev, | ||
2771 | from_dev->real_num_tx_queues); | ||
2772 | if (err) | ||
2773 | return err; | ||
2774 | #ifdef CONFIG_SYSFS | ||
2775 | return netif_set_real_num_rx_queues(to_dev, | ||
2776 | from_dev->real_num_rx_queues); | ||
2777 | #else | ||
2778 | return 0; | ||
2779 | #endif | ||
2780 | } | ||
2781 | |||
2782 | #ifdef CONFIG_SYSFS | 2765 | #ifdef CONFIG_SYSFS |
2783 | static inline unsigned int get_netdev_rx_queue_index( | 2766 | static inline unsigned int get_netdev_rx_queue_index( |
2784 | struct netdev_rx_queue *queue) | 2767 | struct netdev_rx_queue *queue) |