提交 c22ab781 编写于 作者: B Ben Hutchings 提交者: David S. Miller

ethtool: Define RX n-tuple action to clear a rule

Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 daebbca3
...@@ -492,11 +492,12 @@ struct ethtool_rx_ntuple_flow_spec { ...@@ -492,11 +492,12 @@ struct ethtool_rx_ntuple_flow_spec {
__u64 data_mask; __u64 data_mask;
__s32 action; __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 * @cmd: Command number - %ETHTOOL_SRXNTUPLE
* @fs: Flow filter specification * @fs: Flow filter specification
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册