common/iavf: add packet type aborted code
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 13 Apr 2020 09:32:51 +0000 (17:32 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
Add IAVF_RX_PTYPE_PARSER_ABORTED definition, so iavf driver will know
opcode for parser aborted packets.
Without this definition driver would have to rely on magic numbers.

Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/common/iavf/iavf_type.h

index a5834e5..905e1af 100644 (file)
@@ -552,7 +552,8 @@ enum iavf_rx_l2_ptype {
        IAVF_RX_PTYPE_GRENAT4_MAC_PAY3                  = 58,
        IAVF_RX_PTYPE_GRENAT4_MACVLAN_IPV6_ICMP_PAY4    = 87,
        IAVF_RX_PTYPE_GRENAT6_MAC_PAY3                  = 124,
-       IAVF_RX_PTYPE_GRENAT6_MACVLAN_IPV6_ICMP_PAY4    = 153
+       IAVF_RX_PTYPE_GRENAT6_MACVLAN_IPV6_ICMP_PAY4    = 153,
+       IAVF_RX_PTYPE_PARSER_ABORTED                    = 255
 };
 
 struct iavf_rx_ptype_decoded {