diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-20 08:41:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-21 14:57:58 -0700 |
commit | c22ab7816fd81efceefa96b00c4ad62cf657964b (patch) | |
tree | 96b2c62a57cb2788a7cccfc456218e680fd783a3 /include/linux | |
parent | daebbca3ab41031666ee27f991b223d2bc0415e9 (diff) | |
download | linux-c22ab7816fd81efceefa96b00c4ad62cf657964b.tar.gz linux-c22ab7816fd81efceefa96b00c4ad62cf657964b.tar.bz2 linux-c22ab7816fd81efceefa96b00c4ad62cf657964b.zip |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ethtool.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index b67af60a8890..3350870001fe 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h @@ -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 */ |