[v2,4/6] net/ice: support more ptype

Message ID 20190829080441.12602-5-leyi.rong@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Qi Zhang
Headers
Series enable Rx flexible descriptor |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Leyi Rong Aug. 29, 2019, 8:04 a.m. UTC
  From: Wenzhuo Lu <wenzhuo.lu@intel.com>

More protocol types are supported by HW.
Add them.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
---
 drivers/net/ice/ice_rxtx.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
  

Patch

diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c
index ade755c2f..75def755a 100644
--- a/drivers/net/ice/ice_rxtx.c
+++ b/drivers/net/ice/ice_rxtx.c
@@ -3093,6 +3093,17 @@  ice_get_default_pkt_type(uint16_t ptype)
 				RTE_PTYPE_TUNNEL_GTPU,
 		[267] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
 				RTE_PTYPE_TUNNEL_GTPU,
+		/* [268] - [271] reserved */
+		/* Some protocols are not supported by API, Like, VRRP, OSPF.
+		 * Just report them as L2 or L3 packets.
+		 */
+		[272] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN,
+		[273] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN,
+		[274] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN,
+		[275] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN,
+		[276] = RTE_PTYPE_L2_ETHER,
+		/* [277] reserved */
+		[278] = RTE_PTYPE_L2_ETHER,
 
 		/* All others reserved */
 	};