Skip to content

Commit c22ab78

Browse files
Ben Hutchingsdavem330
authored andcommitted
ethtool: Define RX n-tuple action to clear a rule
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent daebbca commit c22ab78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/linux/ethtool.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,12 @@ struct ethtool_rx_ntuple_flow_spec {
492492
__u64 data_mask;
493493

494494
__s32 action;
495-
#define ETHTOOL_RXNTUPLE_ACTION_DROP -1 /* drop packet */
495+
#define ETHTOOL_RXNTUPLE_ACTION_DROP (-1) /* drop packet */
496+
#define ETHTOOL_RXNTUPLE_ACTION_CLEAR (-2) /* clear filter */
496497
};
497498

498499
/**
499-
* struct ethtool_rx_ntuple - command to set RX flow filter
500+
* struct ethtool_rx_ntuple - command to set or clear RX flow filter
500501
* @cmd: Command number - %ETHTOOL_SRXNTUPLE
501502
* @fs: Flow filter specification
502503
*/

0 commit comments

Comments
 (0)