This patch adds the flow control ethertype to the defines for the
ETQF filter list. This only adds the define. Each driver
can add this ethertype to the filter. This is needed to prevent
denial of service by malicious VFs sending out flow control
packets.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu at intel.com>
---
 drivers/net/ixgbe/base/ixgbe_type.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ixgbe/base/ixgbe_type.h 
b/drivers/net/ixgbe/base/ixgbe_type.h
index a2eb591..2015370 100644
--- a/drivers/net/ixgbe/base/ixgbe_type.h
+++ b/drivers/net/ixgbe/base/ixgbe_type.h
@@ -1957,6 +1957,7 @@ enum {
  *     FIP  (0x8914):   Filter 4
  *     LLDP (0x88CC):   Filter 5
  *     LACP (0x8809):   Filter 6
+ *     FC   (0x8808):   Filter 7
  */
 #define IXGBE_ETQF_FILTER_EAPOL                0
 #define IXGBE_ETQF_FILTER_FCOE         2
@@ -1964,6 +1965,7 @@ enum {
 #define IXGBE_ETQF_FILTER_FIP          4
 #define IXGBE_ETQF_FILTER_LLDP         5
 #define IXGBE_ETQF_FILTER_LACP         6
+#define IXGBE_ETQF_FILTER_FC           7
 /* VLAN Control Bit Masks */
 #define IXGBE_VLNCTRL_VET              0x0000FFFF  /* bits 0-15 */
 #define IXGBE_VLNCTRL_CFI              0x10000000  /* bit 28 */
-- 
1.9.3

Reply via email to