summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBen Hutchings2010-09-20 10:41:47 +0200
committerDavid S. Miller2010-09-21 23:57:58 +0200
commitc22ab7816fd81efceefa96b00c4ad62cf657964b (patch)
tree96b2c62a57cb2788a7cccfc456218e680fd783a3 /include/linux
parentqlcnic: dont set skb->truesize (diff)
downloadkernel-qcow2-linux-c22ab7816fd81efceefa96b00c4ad62cf657964b.tar.gz
kernel-qcow2-linux-c22ab7816fd81efceefa96b00c4ad62cf657964b.tar.xz
kernel-qcow2-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.h5
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
*/