aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/niu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r--drivers/net/niu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 63e8e3893bd6..3d523cb7975a 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -7920,14 +7920,7 @@ static int niu_phys_id(struct net_device *dev, u32 data)
7920 7920
7921static int niu_set_flags(struct net_device *dev, u32 data) 7921static int niu_set_flags(struct net_device *dev, u32 data)
7922{ 7922{
7923 if (data & (ETH_FLAG_LRO | ETH_FLAG_NTUPLE)) 7923 return ethtool_op_set_flags(dev, data, ETH_FLAG_RXHASH);
7924 return -EOPNOTSUPP;
7925
7926 if (data & ETH_FLAG_RXHASH)
7927 dev->features |= NETIF_F_RXHASH;
7928 else
7929 dev->features &= ~NETIF_F_RXHASH;
7930 return 0;
7931} 7924}
7932 7925
7933static const struct ethtool_ops niu_ethtool_ops = { 7926static const struct ethtool_ops niu_ethtool_ops = {