aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-09-16 07:28:07 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-17 19:53:23 -0400
commitbe2902daee80b655cebd482b5ee91ffc29408121 (patch)
tree30302d3d2400e7bf7ab6f95822ffa989fbbe38a8 /include
parent3b27e105550f7c4a79ecb6d6a9c49c651c59ae9b (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ethtool.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index d64e246a39e7..00334eebbe26 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -470,8 +470,9 @@ struct ethtool_rxfh_indir {
470 * @action: RX ring/queue index to deliver to (non-negative) or other action 470 * @action: RX ring/queue index to deliver to (non-negative) or other action
471 * (negative, e.g. %ETHTOOL_RXNTUPLE_ACTION_DROP) 471 * (negative, e.g. %ETHTOOL_RXNTUPLE_ACTION_DROP)
472 * 472 *
473 * Zero values in @h_u may be ignored, as if all the corresponding 473 * For flow types %TCP_V4_FLOW, %UDP_V4_FLOW and %SCTP_V4_FLOW, where
474 * mask bits were set. 474 * a field value and mask are both zero this is treated as if all mask
475 * bits are set i.e. the field is ignored.
475 */ 476 */
476struct ethtool_rx_ntuple_flow_spec { 477struct ethtool_rx_ntuple_flow_spec {
477 __u32 flow_type; 478 __u32 flow_type;