ethtool, ixgbe: Move RX n-tuple mask fixup to ethtool
commitbe2902daee80b655cebd482b5ee91ffc29408121
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 16 Sep 2010 11:28:07 +0000 (16 11:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Sep 2010 23:53:23 +0000 (17 16:53 -0700)
tree30302d3d2400e7bf7ab6f95822ffa989fbbe38a8
parent3b27e105550f7c4a79ecb6d6a9c49c651c59ae9b
ethtool, ixgbe: Move RX n-tuple mask fixup to ethtool

The ethtool utility does not set masks for flow parameters that are
not specified, so if both value and mask are 0 then this must be
treated as equivalent to a mask with all bits set.  Currently that is
done in the only driver that implements RX n-tuple filtering, ixgbe.
Move it to the ethtool core.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_82599.c
include/linux/ethtool.h
net/core/ethtool.c