Skip to content

Commit

Permalink
ethtool: Don't flush n-tuple list from ethtool_reset()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Feb 17, 2010
1 parent a07da6d commit 7af3351
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,6 @@ static int ethtool_reset(struct net_device *dev, char __user *useraddr)
if (copy_from_user(&reset, useraddr, sizeof(reset)))
return -EFAULT;

/* Clear ethtool n-tuple list */
ethtool_ntuple_flush(dev);

ret = dev->ethtool_ops->reset(dev, &reset.data);
if (ret)
return ret;
Expand Down

0 comments on commit 7af3351

Please sign in to comment.