]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix dev dev_ethtool_get_rx_csum() for forced NETIF_F_RXCSUM
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Wed, 30 Mar 2011 23:58:08 +0000 (23:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Apr 2011 03:23:25 +0000 (20:23 -0700)
commit857b2852c2e5e3546825ce7723722fdbe7e91c71
treea1d36b66e8125ce9778ab96fedce028c78654c21
parent10b196845b708a11cc9a17a812d5f2dcd8679ea9
net: Fix dev dev_ethtool_get_rx_csum() for forced NETIF_F_RXCSUM

dev_ethtool_get_rx_csum() won't report rx checksumming when it's not
changeable and driver is converted to hw_features and friends. Fix this.

(dev->hw_features & NETIF_F_RXCSUM) check is dropped - if the
ethtool_ops->get_rx_csum is set, then driver is not coverted, yet.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h