ethtool: Define RX n-tuple action to clear a rule
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 20 Sep 2010 08:41:47 +0000 (08:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Sep 2010 21:57:58 +0000 (14:57 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h

index b67af60a8890538f9e1568f035f9fade93855433..3350870001feea47ff388139a02946213e57e787 100644 (file)
@@ -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
  */