diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-11-15 19:29:55 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-17 02:43:08 +0400 |
commit | bc5787c6125cc2c868eaace46c46ce6e83dcfcb6 (patch) | |
tree | 831619892302478a2ceb27d9edbffc871cf9ad26 /include/linux/netdevice.h | |
parent | 33a5ba144e3e7ffc1cd4a1d205e99c16078885bf (diff) | |
download | linux-bc5787c6125cc2c868eaace46c46ce6e83dcfcb6.tar.xz |
net: remove legacy ethtool ops
As all drivers are converted, we may now remove discrete offload setting
callback handling.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index cbeb5867cff7..e34717a792b4 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2592,22 +2592,6 @@ static inline int netif_is_bond_slave(struct net_device *dev) extern struct pernet_operations __net_initdata loopback_net_ops; -static inline u32 dev_ethtool_get_rx_csum(struct net_device *dev) -{ - if (dev->features & NETIF_F_RXCSUM) - return 1; - if (!dev->ethtool_ops || !dev->ethtool_ops->get_rx_csum) - return 0; - return dev->ethtool_ops->get_rx_csum(dev); -} - -static inline u32 dev_ethtool_get_flags(struct net_device *dev) -{ - if (!dev->ethtool_ops || !dev->ethtool_ops->get_flags) - return 0; - return dev->ethtool_ops->get_flags(dev); -} - /* Logging, debugging and troubleshooting/diagnostic helpers. */ /* netdev_printk helpers, similar to dev_printk */ |