From: Kiran Kumar K Date: Fri, 19 Jul 2019 03:18:41 +0000 (+0530) Subject: net/octeontx2: support IPv6 ext parsing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3aef89aaec507aac7ce533df2c94b81b57b47634;p=dpdk.git net/octeontx2: support IPv6 ext parsing Adding support for ipv6_ext header parsing in the octeontx2 flow. Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob --- diff --git a/doc/guides/nics/octeontx2.rst b/doc/guides/nics/octeontx2.rst index fbf4c47260..5f511feb71 100644 --- a/doc/guides/nics/octeontx2.rst +++ b/doc/guides/nics/octeontx2.rst @@ -262,9 +262,11 @@ Patterns: +----+--------------------------------+ | 19 | RTE_FLOW_ITEM_TYPE_VXLAN_GPE | +----+--------------------------------+ - | 20 | RTE_FLOW_ITEM_TYPE_VOID | + | 20 | RTE_FLOW_ITEM_TYPE_IPV6_EXT | +----+--------------------------------+ - | 21 | RTE_FLOW_ITEM_TYPE_ANY | + | 21 | RTE_FLOW_ITEM_TYPE_VOID | + +----+--------------------------------+ + | 22 | RTE_FLOW_ITEM_TYPE_ANY | +----+--------------------------------+ Actions: diff --git a/drivers/net/octeontx2/otx2_flow_parse.c b/drivers/net/octeontx2/otx2_flow_parse.c index 3e6f5b8dfb..6e65db8e44 100644 --- a/drivers/net/octeontx2/otx2_flow_parse.c +++ b/drivers/net/octeontx2/otx2_flow_parse.c @@ -517,6 +517,13 @@ otx2_flow_parse_lc(struct otx2_parse_state *pst) info.def_mask = &rte_flow_item_arp_eth_ipv4_mask; info.len = sizeof(struct rte_flow_item_arp_eth_ipv4); break; + case RTE_FLOW_ITEM_TYPE_IPV6_EXT: + lid = NPC_LID_LC; + lt = NPC_LT_LC_IP6_EXT; + info.def_mask = &rte_flow_item_ipv6_ext_mask; + info.len = sizeof(struct rte_flow_item_ipv6_ext); + info.hw_hdr_len = 40; + break; default: /* No match at this layer */ return 0;