common/cnxk: support IPv6 fragment flow pattern item
PATCH 1/2 common/cnxk: support IPv6 fragment flow pattern item
From: Satheesh Paul <[email protected]>
ROC changes to support RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT flow pattern item.
Signed-off-by Satheesh Paul <[email protected]>
--- drivers/common/cnxk/roc_npc.h | 1 + drivers/common/cnxk/roc_npc_parse.c | 7 +++++++ 2 files changed, 8 insertions(+)
drivers/common/cnxk/roc_npc.h +1 -0
@@ -15,6 +15,7 @@ enum roc_npc_item_type {ROC_NPC_ITEM_TYPE_E_TAG ,ROC_NPC_ITEM_TYPE_IPV4 ,ROC_NPC_ITEM_TYPE_IPV6 , +ROC_NPC_ITEM_TYPE_IPV6_FRAG_EXT ,ROC_NPC_ITEM_TYPE_ARP_ETH_IPV4 ,ROC_NPC_ITEM_TYPE_MPLS , ROC_NPC_ITEM_TYPE_ICMP,
drivers/common/cnxk/roc_npc_parse.c +7 -0
@@ -594,6 +594,13 @@ npc_parse_lc(struct npc_parse_state *pst) info.len = pst->pattern->size; info.hw_hdr_len =40 ;break ; +case ROC_NPC_ITEM_TYPE_IPV6_FRAG_EXT : + lid =NPC_LID_LC ; + lt =NPC_LT_LC_IP6_EXT ; + flags =NPC_F_LC_U_IP6_FRAG ; + info.len = pst->pattern->size; + info.hw_hdr_len =40 ; +break ;case ROC_NPC_ITEM_TYPE_L3_CUSTOM : lt =NPC_LT_LC_CUSTOM0 ; info.len = pst->pattern->size;
Signature · 1 line
2.25.4
PATCH 2/2 net/cnxk: support IPv6 fragment flow pattern item
From: Satheesh Paul <[email protected]>
Support matching IPv6 fragment extension header with RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT flow pattern item.
Signed-off-by Satheesh Paul <[email protected]>
--- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cnxk_flow.c | 3 +++ 4 files changed, 6 insertions(+)
doc/guides/nics/features/cnxk.ini +1 -0
@@ -65,6 +65,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Y
doc/guides/nics/features/cnxk_vec.ini +1 -0
@@ -61,6 +61,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Y
doc/guides/nics/features/cnxk_vf.ini +1 -0
@@ -57,6 +57,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Y
drivers/net/cnxk/cnxk_flow.c +3 -0
@@ -14,6 +14,9 @@ const struct cnxk_rte_flow_term_info term[] = { sizeof(struct rte_flow_item_ipv4)}, [RTE_FLOW_ITEM_TYPE_IPV6] = {ROC_NPC_ITEM_TYPE_IPV6, sizeof(struct rte_flow_item_ipv6)}, + [RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT] = { +ROC_NPC_ITEM_TYPE_IPV6_FRAG_EXT , + sizeof(struct rte_flow_item_ipv6_frag_ext)}, [RTE_FLOW_ITEM_TYPE_ARP_ETH_IPV4] = {ROC_NPC_ITEM_TYPE_ARP_ETH_IPV4 , sizeof(struct rte_flow_item_arp_eth_ipv4)},
Signature · 1 line
2.25.4
Re: [dpdk-dev] [PATCH 2/2] net/cnxk: support IPv6 fragment flow pattern item
Quoted 7 lines · On Wed, Apr 27, 2022 at 11:53 AM <[email protected]> wrote:
From: Satheesh Paul <[email protected]>
Support matching IPv6 fragment extension header with
RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXTflow pattern item.Signed-off-by Satheesh Paul <[email protected]>
Acked-by Jerin Jacob <[email protected]>
Series applied to dpdk-next-net-mrvl/for-next-net. Thanks
Quoted 60 lines
--- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cnxk_flow.c | 3 +++ 4 files changed, 6 insertions(+)doc/guides/nics/features/cnxk.ini +1
-0@@ -65,6 +65,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Ydoc/guides/nics/features/cnxk_vec.ini +1
-0@@ -61,6 +61,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Ydoc/guides/nics/features/cnxk_vf.ini +1
-0@@ -57,6 +57,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Ydrivers/net/cnxk/cnxk_flow.c +3
-1@@ -14,6 +14,9 @@ const struct cnxk_rte_flow_term_info term[] = { sizeof(struct rte_flow_item_ipv4)}, [RTE_FLOW_ITEM_TYPE_IPV6] = {ROC_NPC_ITEM_TYPE_IPV6, sizeof(struct rte_flow_item_ipv6)}, + [RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT] = { +ROC_NPC_ITEM_TYPE_IPV6_FRAG_EXT , + sizeof(struct rte_flow_item_ipv6_frag_ext)}, [RTE_FLOW_ITEM_TYPE_ARP_ETH_IPV4] = {ROC_NPC_ITEM_TYPE_ARP_ETH_IPV4 , sizeof(struct rte_flow_item_arp_eth_ipv4)}, --2.25.4