common/cnxk: support PPPoE flow item type in ROC API
PATCH 1/2 common/cnxk: support PPPoE flow item type in ROC API
From: Satheesh Paul <[email protected]>
Added ROC API changes to parse RTE_FLOW_ITEM_TYPE_PPPOES rte_flow item type.
--- drivers/common/cnxk/roc_npc.h | 1 + drivers/common/cnxk/roc_npc_parse.c | 5 +++++ 2 files changed, 6 insertions(+)
drivers/common/cnxk/roc_npc.h +1 -0
@@ -33,6 +33,7 @@ enum roc_npc_item_type {ROC_NPC_ITEM_TYPE_VXLAN_GPE ,ROC_NPC_ITEM_TYPE_IPV6_EXT ,ROC_NPC_ITEM_TYPE_GRE_KEY , +ROC_NPC_ITEM_TYPE_PPPOES ,ROC_NPC_ITEM_TYPE_HIGIG2 ,ROC_NPC_ITEM_TYPE_CPT_HDR , ROC_NPC_ITEM_TYPE_L3_CUSTOM,
drivers/common/cnxk/roc_npc_parse.c +5 -0
@@ -525,6 +525,11 @@ npc_parse_lb(struct npc_parse_state *pst) info.len = pattern->size; lt =NPC_LT_LB_STAG_QINQ ; lflags =NPC_F_STAG_CTAG ; + }else if (pst->pattern->type ==ROC_NPC_ITEM_TYPE_PPPOES ) { + info.hw_mask =NULL ; + info.len = pattern->size; + info.hw_hdr_len =2 ; + lt =NPC_LT_LB_PPPOE ; }else if (pst->pattern->type ==ROC_NPC_ITEM_TYPE_RAW ) { raw_spec = pst->pattern->spec;if (raw_spec->relative)
Signature · 1 line
2.39.2
PATCH 2/2 net/cnxk: support PPPoE flow item type
From: Satheesh Paul <[email protected]>
Support to parse RTE_FLOW_ITEM_TYPE_PPPOES rte_flow item type for cnxk device.
--- 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 | 7 ++++--- 4 files changed, 7 insertions(+), 3 deletions(-)
doc/guides/nics/features/cnxk.ini +1 -0
@@ -71,6 +71,7 @@ ipv6_routing_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y
doc/guides/nics/features/cnxk_vec.ini +1 -0
@@ -65,6 +65,7 @@ ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y
doc/guides/nics/features/cnxk_vf.ini +1 -0
@@ -62,6 +62,7 @@ ipv6_routing_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y
drivers/net/cnxk/cnxk_flow.c +4 -3
@@ -62,11 +62,12 @@ const struct cnxk_rte_flow_term_info term[] = { [RTE_FLOW_ITEM_TYPE_IPV6_ROUTING_EXT ] = {ROC_NPC_ITEM_TYPE_IPV6_ROUTING_EXT , sizeof(struct rte_flow_item_ipv6_routing_ext)}, [RTE_FLOW_ITEM_TYPE_TX_QUEUE ] = {ROC_NPC_ITEM_TYPE_TX_QUEUE , - sizeof(struct rte_flow_item_tx_queue)}}; + sizeof(struct rte_flow_item_tx_queue)}, + [RTE_FLOW_ITEM_TYPE_PPPOES ] = {ROC_NPC_ITEM_TYPE_PPPOES , + sizeof(struct rte_flow_item_pppoe)}};static int -npc_rss_action_validate (struct rte_eth_dev *eth_dev, -const struct rte_flow_attr *attr, +npc_rss_action_validate (struct rte_eth_dev *eth_dev,const struct rte_flow_attr *attr,const struct rte_flow_action *act) {const struct rte_flow_action_rss *rss;
Signature · 1 line
2.39.2
RE: [EXT] [dpdk-dev] [PATCH 2/2] net/cnxk: support Pepo flow item type
Quoted 14 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Thursday, December 14, 2023 12:48 PM
To: Nithin Kumar Dabilpuram <[email protected]>; Kiran Kumar Kokkilagadda <[email protected]>; Sunil Kumar Kori <[email protected]>; Satha Koteswara Rao Kottidi <[email protected]>
Cc: [email protected]; Satheesh Paul Antonysamy <[email protected]>
Subject: [EXT] [dpdk-dev] [PATCH 2/2] net/cnxk: support PPPoE flow item typeExternal Email
Quoted 8 lines
----------------------------------------------------------------------
From: Satheesh Paul <[email protected]>Support to parse
RTE_FLOW_ITEM_TYPE_PPPOESrte_flowitem type for cnxk device.Signed-off-by Satheesh Paul <[email protected]>Reviewed-by Kiran Kumar K <[email protected]>
Please update the release notes for this new feature.
Quoted 72 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 | 7 ++++--- 4 files changed, 7 insertions(+), 3 deletions(-)doc/guides/nics/features/cnxk.ini +1
-0@@ -71,6 +71,7 @@ ipv6_routing_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Ydoc/guides/nics/features/cnxk_vec.ini +1
-0@@ -65,6 +65,7 @@ ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Ydoc/guides/nics/features/cnxk_vf.ini +1
-0@@ -62,6 +62,7 @@ ipv6_routing_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Ydrivers/net/cnxk/cnxk_flow.c index renamed from drivers/net/cnxk/cnxk_flow.c +0
-0
08ab75e2bb..2eee44ed09100644drivers/net/cnxk/cnxk_flow.c +5
-4@@ -62,11 +62,12 @@ const struct cnxk_rte_flow_term_info term[] = { [RTE_FLOW_ITEM_TYPE_IPV6_ROUTING_EXT ] = {ROC_NPC_ITEM_TYPE_IPV6_ROUTING_EXT ,sizeof (struct rte_flow_item_ipv6_routing_ext)}, [RTE_FLOW_ITEM_TYPE_TX_QUEUE ] = {ROC_NPC_ITEM_TYPE_TX_QUEUE , - sizeof(struct rte_flow_item_tx_queue)}}; + sizeof(struct rte_flow_item_tx_queue)}, + [RTE_FLOW_ITEM_TYPE_PPPOES ] = {ROC_NPC_ITEM_TYPE_PPPOES , + sizeof(struct rte_flow_item_pppoe)}};static int -npc_rss_action_validate (struct rte_eth_dev *eth_dev, -const struct rte_flow_attr *attr, +npc_rss_action_validate (struct rte_eth_dev *eth_dev,const struct +rte_flow_attr *attr,const struct rte_flow_action *act) {const struct rte_flow_action_rss *rss; --2.39.2
PATCH v2 1/2 common/cnxk: support PPPoE flow item type in ROC API
In reply to [email protected]From: Satheesh Paul <[email protected]>
Added ROC API changes to parse RTE_FLOW_ITEM_TYPE_PPPOES rte_flow item type.
---
v2:
* Updated release notes.
drivers/common/cnxk/roc_npc.h | 1 + drivers/common/cnxk/roc_npc_parse.c | 5 +++++ 2 files changed, 6 insertions(+)
drivers/common/cnxk/roc_npc.h +1 -0
@@ -33,6 +33,7 @@ enum roc_npc_item_type {ROC_NPC_ITEM_TYPE_VXLAN_GPE ,ROC_NPC_ITEM_TYPE_IPV6_EXT ,ROC_NPC_ITEM_TYPE_GRE_KEY , +ROC_NPC_ITEM_TYPE_PPPOES ,ROC_NPC_ITEM_TYPE_HIGIG2 ,ROC_NPC_ITEM_TYPE_CPT_HDR , ROC_NPC_ITEM_TYPE_L3_CUSTOM,
drivers/common/cnxk/roc_npc_parse.c +5 -0
@@ -525,6 +525,11 @@ npc_parse_lb(struct npc_parse_state *pst) info.len = pattern->size; lt =NPC_LT_LB_STAG_QINQ ; lflags =NPC_F_STAG_CTAG ; + }else if (pst->pattern->type ==ROC_NPC_ITEM_TYPE_PPPOES ) { + info.hw_mask =NULL ; + info.len = pattern->size; + info.hw_hdr_len =2 ; + lt =NPC_LT_LB_PPPOE ; }else if (pst->pattern->type ==ROC_NPC_ITEM_TYPE_RAW ) { raw_spec = pst->pattern->spec;if (raw_spec->relative)
Signature · 1 line
2.39.2
PATCH v2 2/2 net/cnxk: support PPPoE flow item type
From: Satheesh Paul <[email protected]>
Support to parse RTE_FLOW_ITEM_TYPE_PPPOES rte_flow item type for cnxk device.
--- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + doc/guides/rel_notes/release_24_03.rst | 3 +++ drivers/net/cnxk/cnxk_flow.c | 7 ++++--- 5 files changed, 10 insertions(+), 3 deletions(-)
doc/guides/nics/features/cnxk.ini +1 -0
@@ -71,6 +71,7 @@ ipv6_routing_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y
doc/guides/nics/features/cnxk_vec.ini +1 -0
@@ -65,6 +65,7 @@ ipv6_frag_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y
doc/guides/nics/features/cnxk_vf.ini +1 -0
@@ -62,6 +62,7 @@ ipv6_routing_ext = Y mark = Y mpls = Y nvgre = Y +pppoes = Y raw = Y sctp = Y tcp = Y
doc/guides/rel_notes/release_24_03.rst +3 -0
@@ -62,6 +62,9 @@ New Features * Added optimized SSE Rx routines. * Added optimized AVX2 Rx routines. +* **Updated Marvell cnxk net driver.** + + * Added support for ``RTE_FLOW_ITEM_TYPE_PPPOES`` flow item. Removed Items -------------
drivers/net/cnxk/cnxk_flow.c +4 -3
@@ -62,11 +62,12 @@ const struct cnxk_rte_flow_term_info term[] = { [RTE_FLOW_ITEM_TYPE_IPV6_ROUTING_EXT ] = {ROC_NPC_ITEM_TYPE_IPV6_ROUTING_EXT , sizeof(struct rte_flow_item_ipv6_routing_ext)}, [RTE_FLOW_ITEM_TYPE_TX_QUEUE ] = {ROC_NPC_ITEM_TYPE_TX_QUEUE , - sizeof(struct rte_flow_item_tx_queue)}}; + sizeof(struct rte_flow_item_tx_queue)}, + [RTE_FLOW_ITEM_TYPE_PPPOES ] = {ROC_NPC_ITEM_TYPE_PPPOES , + sizeof(struct rte_flow_item_pppoe)}};static int -npc_rss_action_validate (struct rte_eth_dev *eth_dev, -const struct rte_flow_attr *attr, +npc_rss_action_validate (struct rte_eth_dev *eth_dev,const struct rte_flow_attr *attr,const struct rte_flow_action *act) {const struct rte_flow_action_rss *rss;
Signature · 1 line
2.39.2
Re: [dpdk-dev] [PATCH v2 2/2] net/cnxk: support PPPoE flow item type
Quoted 8 lines · On Thu, Dec 14, 2023 at 8:03 PM <[email protected]> wrote:
From: Satheesh Paul <[email protected]>
Support to parse
RTE_FLOW_ITEM_TYPE_PPPOESrte_flowitem type for cnxk device.Signed-off-by Satheesh Paul <[email protected]>Reviewed-by Kiran Kumar K <[email protected]>
Series applied to dpdk-next-net-mrvl/for-main. Thanks