mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 16:30:53 +00:00
ethtool: Don't flush n-tuple list from ethtool_reset()
The n-tuple list should be flushed if and only if the ETH_RESET_FILTER flag is set and the driver is able to reset filtering/flow direction hardware without also resetting a component whose flag is not set. This test is best left to the driver. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a07da6df73
commit
7af3351f71
@ -654,9 +654,6 @@ static int ethtool_reset(struct net_device *dev, char __user *useraddr)
|
|||||||
if (copy_from_user(&reset, useraddr, sizeof(reset)))
|
if (copy_from_user(&reset, useraddr, sizeof(reset)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
/* Clear ethtool n-tuple list */
|
|
||||||
ethtool_ntuple_flush(dev);
|
|
||||||
|
|
||||||
ret = dev->ethtool_ops->reset(dev, &reset.data);
|
ret = dev->ethtool_ops->reset(dev, &reset.data);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user