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>
This commit is contained in:

committed by
David S. Miller

parent
33a5ba144e
commit
bc5787c612
@@ -596,13 +596,11 @@ static u32 vlan_dev_fix_features(struct net_device *dev, u32 features)
|
||||
struct net_device *real_dev = vlan_dev_info(dev)->real_dev;
|
||||
u32 old_features = features;
|
||||
|
||||
features &= real_dev->features;
|
||||
features &= real_dev->vlan_features;
|
||||
features |= NETIF_F_RXCSUM;
|
||||
features &= real_dev->features;
|
||||
|
||||
features |= old_features & NETIF_F_SOFT_FEATURES;
|
||||
|
||||
if (dev_ethtool_get_rx_csum(real_dev))
|
||||
features |= NETIF_F_RXCSUM;
|
||||
features |= NETIF_F_LLTX;
|
||||
|
||||
return features;
|
||||
|
Reference in New Issue
Block a user