From: Ben Hutchings <bhutchings@solarflare.com>
Date: Mon, 20 Sep 2010 08:41:47 +0000 (+0000)
Subject: ethtool: Define RX n-tuple action to clear a rule
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c22ab7816fd81efceefa96b00c4ad62cf657964b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git

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>
---

diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index b67af60a889..3350870001f 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
  */