Skip to content

Commit

Permalink
ethtool: Define RX n-tuple action to clear a rule
Browse files Browse the repository at this point in the history
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 Sep 21, 2010
1 parent daebbca commit c22ab78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/linux/ethtool.h
Original file line number Diff line number Diff line change
@@ -492,11 +492,12 @@ struct ethtool_rx_ntuple_flow_spec {
__u64 data_mask;

__s32 action;
#define ETHTOOL_RXNTUPLE_ACTION_DROP -1 /* drop packet */
#define ETHTOOL_RXNTUPLE_ACTION_DROP (-1) /* drop packet */
#define ETHTOOL_RXNTUPLE_ACTION_CLEAR (-2) /* clear filter */
};

/**
* struct ethtool_rx_ntuple - command to set RX flow filter
* struct ethtool_rx_ntuple - command to set or clear RX flow filter
* @cmd: Command number - %ETHTOOL_SRXNTUPLE
* @fs: Flow filter specification
*/

0 comments on commit c22ab78

Please sign in to comment.