From: Wenzhuo Lu Date: Fri, 20 Nov 2015 07:17:48 +0000 (+0800) Subject: ixgbe/base: add flow control ethertype for filtering X-Git-Tag: spdx-start~7698 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=59acf817b2c092984f73d1d2f3391a3a722903c9;p=dpdk.git ixgbe/base: add flow control ethertype for filtering 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 --- diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index 881f34cca1..e3c41a9aea 100644 --- a/drivers/net/ixgbe/base/ixgbe_type.h +++ b/drivers/net/ixgbe/base/ixgbe_type.h @@ -1956,6 +1956,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 @@ -1963,6 +1964,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 */