dpdk: DPDK 20.05 iavf flow director backporting to DPDK 20.02
[vpp.git] / build / external / patches / dpdk_20.02 / 0004-common-iavf-add-PTYPE-definition.patch
1 From 585d75cec67cc3f4ee2eb32dc33fb7e2174b3125 Mon Sep 17 00:00:00 2001
2 From: Qi Zhang <qi.z.zhang@intel.com>
3 Date: Thu, 9 Apr 2020 12:50:56 +0800
4 Subject: [DPDK 04/17] common/iavf: add PTYPE definition
5
6 Add IAVF_RX_PTYPE_PARSER_ABORTED definition, so iavf driver will know
7 opcode for parser aborted packets.
8 Without this definition driver would have to rely on magic numbers.
9
10 Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
11 Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
12 Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
13 ---
14  drivers/common/iavf/iavf_type.h | 3 ++-
15  1 file changed, 2 insertions(+), 1 deletion(-)
16
17 diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf/iavf_type.h
18 index 6f85f8c04..97a25b2d1 100644
19 --- a/drivers/common/iavf/iavf_type.h
20 +++ b/drivers/common/iavf/iavf_type.h
21 @@ -552,7 +552,8 @@ enum iavf_rx_l2_ptype {
22         IAVF_RX_PTYPE_GRENAT4_MAC_PAY3                  = 58,
23         IAVF_RX_PTYPE_GRENAT4_MACVLAN_IPV6_ICMP_PAY4    = 87,
24         IAVF_RX_PTYPE_GRENAT6_MAC_PAY3                  = 124,
25 -       IAVF_RX_PTYPE_GRENAT6_MACVLAN_IPV6_ICMP_PAY4    = 153
26 +       IAVF_RX_PTYPE_GRENAT6_MACVLAN_IPV6_ICMP_PAY4    = 153,
27 +       IAVF_RX_PTYPE_PARSER_ABORTED                    = 255
28  };
29  
30  struct iavf_rx_ptype_decoded {
31 -- 
32 2.17.1
33