diff options
| author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-20 04:41:47 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-09-21 17:57:58 -0400 |
| commit | c22ab7816fd81efceefa96b00c4ad62cf657964b (patch) | |
| tree | 96b2c62a57cb2788a7cccfc456218e680fd783a3 /include/linux | |
| parent | daebbca3ab41031666ee27f991b223d2bc0415e9 (diff) | |
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 { | |||
| 492 | __u64 data_mask; | 492 | __u64 data_mask; |
| 493 | 493 | ||
| 494 | __s32 action; | 494 | __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 */ | ||
| 496 | }; | 497 | }; |
| 497 | 498 | ||
| 498 | /** | 499 | /** |
| 499 | * struct ethtool_rx_ntuple - command to set RX flow filter | 500 | * struct ethtool_rx_ntuple - command to set or clear RX flow filter |
| 500 | * @cmd: Command number - %ETHTOOL_SRXNTUPLE | 501 | * @cmd: Command number - %ETHTOOL_SRXNTUPLE |
| 501 | * @fs: Flow filter specification | 502 | * @fs: Flow filter specification |
| 502 | */ | 503 | */ |
