Skip to contentSkip to conversation

common/cnxk: support Tx queue flow pattern in ROC API

PATCH Superseded [email protected] 2 participants 8 messages May 19, 2023 – May 24, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 common/cnxk: support Tx queue flow pattern in ROC API

From: Satheesh Paul <[email protected]>

Added ROC API changes to support Tx queue flow
pattern item.

---
Depends-on: series-28056 ("ethdev: add Tx queue flow matching item")

 drivers/common/cnxk/roc_npc.c       | 16 +++++---
 drivers/common/cnxk/roc_npc.h       |  1 +
 drivers/common/cnxk/roc_npc_mcam.c  | 61 +++++++++++++++++++++++------
 drivers/common/cnxk/roc_npc_parse.c | 52 ++++++++++++++++++++++++
 drivers/common/cnxk/roc_npc_priv.h  |  2 +
 5 files changed, 115 insertions(+), 17 deletions(-)
drivers/common/cnxk/roc_npc.c +10 -6
index ba75207955..4b5be65b72 100644
@@ -779,11 +779,10 @@ npc_parse_pattern(struct npc *npc, const struct roc_npc_item_info pattern[],
 		  struct roc_npc_flow *flow, struct npc_parse_state *pst)
 {
 	npc_parse_stage_func_t parse_stage_funcs[] = {
-		npc_parse_meta_items, npc_parse_mark_item,  npc_parse_pre_l2,
-		npc_parse_cpt_hdr,    npc_parse_higig2_hdr, npc_parse_la,
-		npc_parse_lb,	      npc_parse_lc,	    npc_parse_ld,
-		npc_parse_le,	      npc_parse_lf,	    npc_parse_lg,
-		npc_parse_lh,
+		npc_parse_meta_items, npc_parse_mark_item, npc_parse_pre_l2, npc_parse_cpt_hdr,
+		npc_parse_higig2_hdr, npc_parse_tx_queue,  npc_parse_la,     npc_parse_lb,
+		npc_parse_lc,	      npc_parse_ld,	   npc_parse_le,     npc_parse_lf,
+		npc_parse_lg,	      npc_parse_lh,
 	};
 	uint8_t layer = 0;
 	int key_offset;
@@ -792,9 +791,9 @@ npc_parse_pattern(struct npc *npc, const struct roc_npc_item_info pattern[],
 	if (pattern == NULL)
 		return NPC_ERR_PARAM;
 
-	memset(pst, 0, sizeof(*pst));
 	pst->npc = npc;
 	pst->flow = flow;
+	pst->nix_intf = flow->nix_intf;
 
 	/* Use integral byte offset */
 	key_offset = pst->npc->keyx_len[flow->nix_intf];
@@ -864,8 +863,12 @@ npc_parse_rule(struct roc_npc *roc_npc, const struct roc_npc_attr *attr,
 	       struct npc_parse_state *pst)
 {
 	struct npc *npc = roc_npc_to_npc_priv(roc_npc);
+	struct roc_nix *roc_nix = roc_npc->roc_nix;
+	struct nix *nix = roc_nix_to_nix_priv(roc_nix);
 	int err;
 
+	pst->nb_tx_queues = nix->nb_tx_queues;
+
 	/* Check attr */
 	err = npc_parse_attr(npc, attr, flow);
 	if (err)
@@ -1425,6 +1428,7 @@ roc_npc_flow_create(struct roc_npc *roc_npc, const struct roc_npc_attr *attr,
 		return NULL;
 	}
 	memset(flow, 0, sizeof(*flow));
+	memset(&parse_state, 0, sizeof(parse_state));
 
 	rc = npc_parse_rule(roc_npc, attr, pattern, actions, flow,
 			    &parse_state);
drivers/common/cnxk/roc_npc.h +1 -0
index 26a43c12cb..5984da1c1a 100644
@@ -39,6 +39,7 @@ enum roc_npc_item_type {
 	ROC_NPC_ITEM_TYPE_QINQ,
 	ROC_NPC_ITEM_TYPE_RAW,
 	ROC_NPC_ITEM_TYPE_MARK,
+	ROC_NPC_ITEM_TYPE_TX_QUEUE,
 	ROC_NPC_ITEM_TYPE_END,
 };
 
drivers/common/cnxk/roc_npc_mcam.c +50 -11

80 lines not on this page · raw message

drivers/common/cnxk/roc_npc_parse.c +52 -0

58 lines not on this page · raw message

drivers/common/cnxk/roc_npc_priv.h +2 -0
index 714dcb09c9..6f41df18bb 100644
@@ -200,6 +200,7 @@ struct npc_parse_state {
 	bool set_ipv6ext_ltype_mask;
 	bool is_second_pass_rule;
 	bool has_eth_type;
+	uint16_t nb_tx_queues;
 };
 
 enum npc_kpu_parser_flag {
@@ -448,6 +449,7 @@ int npc_parse_mark_item(struct npc_parse_state *pst);
 int npc_parse_pre_l2(struct npc_parse_state *pst);
 int npc_parse_higig2_hdr(struct npc_parse_state *pst);
 int npc_parse_cpt_hdr(struct npc_parse_state *pst);
+int npc_parse_tx_queue(struct npc_parse_state *pst);
 int npc_parse_la(struct npc_parse_state *pst);
 int npc_parse_lb(struct npc_parse_state *pst);
 int npc_parse_lc(struct npc_parse_state *pst);
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/2 net/cnxk: support Tx queue flow pattern item

From: Satheesh Paul <[email protected]>

Added support for Tx queue flow pattern item.

---
 drivers/net/cnxk/cnxk_flow.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/cnxk/cnxk_flow.c +3 -1
index f13d8e5582..9595fe9386 100644
@@ -58,7 +58,9 @@ const struct cnxk_rte_flow_term_info term[] = {
 	[RTE_FLOW_ITEM_TYPE_RAW] = {ROC_NPC_ITEM_TYPE_RAW,
 				    sizeof(struct rte_flow_item_raw)},
 	[RTE_FLOW_ITEM_TYPE_MARK] = {ROC_NPC_ITEM_TYPE_MARK,
-				     sizeof(struct rte_flow_item_mark)}};
+				     sizeof(struct rte_flow_item_mark)},
+	[RTE_FLOW_ITEM_TYPE_TX_QUEUE] = {ROC_NPC_ITEM_TYPE_TX_QUEUE,
+				     sizeof(struct rte_flow_item_tx_queue)}};
 
 static int
 npc_rss_action_validate(struct rte_eth_dev *eth_dev,
Signature · 1 line
2.39.2
#2 lore raw

Re: [dpdk-dev] [PATCH 2/2] net/cnxk: support Tx queue flow pattern item

Quoted 7 lines · On Fri, May 19, 2023 at 9:12 AM <[email protected]> wrote:

From: Satheesh Paul <[email protected]>

Added support for Tx queue flow pattern item.

Update to doc/guides/nics/features/cnxk_*.ini is missing. Please check generated documentation too,.

Quoted 22 lines
---
 drivers/net/cnxk/cnxk_flow.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/cnxk/cnxk_flow.c +3 -2
index f13d8e5582..9595fe9386 100644
@@ -58,7 +58,9 @@ const struct cnxk_rte_flow_term_info term[] = {
        [RTE_FLOW_ITEM_TYPE_RAW] = {ROC_NPC_ITEM_TYPE_RAW,
                                    sizeof(struct rte_flow_item_raw)},
        [RTE_FLOW_ITEM_TYPE_MARK] = {ROC_NPC_ITEM_TYPE_MARK,
-                                    sizeof(struct rte_flow_item_mark)}};
+                                    sizeof(struct rte_flow_item_mark)},
+       [RTE_FLOW_ITEM_TYPE_TX_QUEUE] = {ROC_NPC_ITEM_TYPE_TX_QUEUE,
+                                    sizeof(struct rte_flow_item_tx_queue)}};
 
 static int
 npc_rss_action_validate(struct rte_eth_dev *eth_dev,
--

2.39.2

#3 lore raw

PATCH v2 1/2 common/cnxk: support Tx queue flow pattern in ROC API

In reply to [email protected]

From: Satheesh Paul <[email protected]>

Added ROC API changes to support Tx queue flow
pattern item.

---
v2:
* Updated documentation for Tx queue pattern item and verified generated documents as well.

 drivers/common/cnxk/roc_npc.c       | 16 +++++---
 drivers/common/cnxk/roc_npc.h       |  1 +
 drivers/common/cnxk/roc_npc_mcam.c  | 61 +++++++++++++++++++++++------
 drivers/common/cnxk/roc_npc_parse.c | 52 ++++++++++++++++++++++++
 drivers/common/cnxk/roc_npc_priv.h  |  2 +
 5 files changed, 115 insertions(+), 17 deletions(-)
drivers/common/cnxk/roc_npc.c +10 -6
index d556b4c3a5..1baa71fc45 100644
@@ -779,11 +779,10 @@ npc_parse_pattern(struct npc *npc, const struct roc_npc_item_info pattern[],
 		  struct roc_npc_flow *flow, struct npc_parse_state *pst)
 {
 	npc_parse_stage_func_t parse_stage_funcs[] = {
-		npc_parse_meta_items, npc_parse_mark_item,  npc_parse_pre_l2,
-		npc_parse_cpt_hdr,    npc_parse_higig2_hdr, npc_parse_la,
-		npc_parse_lb,	      npc_parse_lc,	    npc_parse_ld,
-		npc_parse_le,	      npc_parse_lf,	    npc_parse_lg,
-		npc_parse_lh,
+		npc_parse_meta_items, npc_parse_mark_item, npc_parse_pre_l2, npc_parse_cpt_hdr,
+		npc_parse_higig2_hdr, npc_parse_tx_queue,  npc_parse_la,     npc_parse_lb,
+		npc_parse_lc,	      npc_parse_ld,	   npc_parse_le,     npc_parse_lf,
+		npc_parse_lg,	      npc_parse_lh,
 	};
 	uint8_t layer = 0;
 	int key_offset;
@@ -792,9 +791,9 @@ npc_parse_pattern(struct npc *npc, const struct roc_npc_item_info pattern[],
 	if (pattern == NULL)
 		return NPC_ERR_PARAM;
 
-	memset(pst, 0, sizeof(*pst));
 	pst->npc = npc;
 	pst->flow = flow;
+	pst->nix_intf = flow->nix_intf;
 
 	/* Use integral byte offset */
 	key_offset = pst->npc->keyx_len[flow->nix_intf];
@@ -864,8 +863,12 @@ npc_parse_rule(struct roc_npc *roc_npc, const struct roc_npc_attr *attr,
 	       struct npc_parse_state *pst)
 {
 	struct npc *npc = roc_npc_to_npc_priv(roc_npc);
+	struct roc_nix *roc_nix = roc_npc->roc_nix;
+	struct nix *nix = roc_nix_to_nix_priv(roc_nix);
 	int err;
 
+	pst->nb_tx_queues = nix->nb_tx_queues;
+
 	/* Check attr */
 	err = npc_parse_attr(npc, attr, flow);
 	if (err)
@@ -1445,6 +1448,7 @@ roc_npc_flow_create(struct roc_npc *roc_npc, const struct roc_npc_attr *attr,
 		return NULL;
 	}
 	memset(flow, 0, sizeof(*flow));
+	memset(&parse_state, 0, sizeof(parse_state));
 
 	rc = npc_parse_rule(roc_npc, attr, pattern, actions, flow,
 			    &parse_state);
drivers/common/cnxk/roc_npc.h +1 -0
index 26a43c12cb..5984da1c1a 100644
@@ -39,6 +39,7 @@ enum roc_npc_item_type {
 	ROC_NPC_ITEM_TYPE_QINQ,
 	ROC_NPC_ITEM_TYPE_RAW,
 	ROC_NPC_ITEM_TYPE_MARK,
+	ROC_NPC_ITEM_TYPE_TX_QUEUE,
 	ROC_NPC_ITEM_TYPE_END,
 };
 
drivers/common/cnxk/roc_npc_mcam.c +50 -11

80 lines not on this page · raw message

drivers/common/cnxk/roc_npc_parse.c +52 -0

58 lines not on this page · raw message

drivers/common/cnxk/roc_npc_priv.h +2 -0
index 714dcb09c9..6f41df18bb 100644
@@ -200,6 +200,7 @@ struct npc_parse_state {
 	bool set_ipv6ext_ltype_mask;
 	bool is_second_pass_rule;
 	bool has_eth_type;
+	uint16_t nb_tx_queues;
 };
 
 enum npc_kpu_parser_flag {
@@ -448,6 +449,7 @@ int npc_parse_mark_item(struct npc_parse_state *pst);
 int npc_parse_pre_l2(struct npc_parse_state *pst);
 int npc_parse_higig2_hdr(struct npc_parse_state *pst);
 int npc_parse_cpt_hdr(struct npc_parse_state *pst);
+int npc_parse_tx_queue(struct npc_parse_state *pst);
 int npc_parse_la(struct npc_parse_state *pst);
 int npc_parse_lb(struct npc_parse_state *pst);
 int npc_parse_lc(struct npc_parse_state *pst);
Signature · 1 line
2.39.2
#4 lore raw

PATCH v2 2/2 net/cnxk: support Tx queue flow pattern item

From: Satheesh Paul <[email protected]>

Added support for Tx queue flow pattern item.

---
 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/nics/features/default.ini  | 1 +
 drivers/net/cnxk/cnxk_flow.c          | 4 +++-
 5 files changed, 7 insertions(+), 1 deletion(-)
doc/guides/nics/features/cnxk.ini +1 -0
index 7947c044bb..838e781d6d 100644
@@ -73,6 +73,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/cnxk_vec.ini +1 -0
index 5d0976e6ce..e2cac64e4b 100644
@@ -68,6 +68,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/cnxk_vf.ini +1 -0
index 873e1dcc0a..470c45ce59 100644
@@ -64,6 +64,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/default.ini +1 -0
index 1a5087abad..52a57d0805 100644
@@ -142,6 +142,7 @@ represented_port     =
 sctp                 =
 tag                  =
 tcp                  =
+tx_queue             =
 udp                  =
 vlan                 =
 vxlan                =
drivers/net/cnxk/cnxk_flow.c +3 -1
index f13d8e5582..9595fe9386 100644
@@ -58,7 +58,9 @@ const struct cnxk_rte_flow_term_info term[] = {
 	[RTE_FLOW_ITEM_TYPE_RAW] = {ROC_NPC_ITEM_TYPE_RAW,
 				    sizeof(struct rte_flow_item_raw)},
 	[RTE_FLOW_ITEM_TYPE_MARK] = {ROC_NPC_ITEM_TYPE_MARK,
-				     sizeof(struct rte_flow_item_mark)}};
+				     sizeof(struct rte_flow_item_mark)},
+	[RTE_FLOW_ITEM_TYPE_TX_QUEUE] = {ROC_NPC_ITEM_TYPE_TX_QUEUE,
+				     sizeof(struct rte_flow_item_tx_queue)}};
 
 static int
 npc_rss_action_validate(struct rte_eth_dev *eth_dev,
Signature · 1 line
2.39.2
#5 lore raw

PATCH v2 1/2 common/cnxk: support Tx queue flow pattern in ROC API

In reply to [email protected]

From: Satheesh Paul <[email protected]>

Added ROC API changes to support Tx queue flow
pattern item.

---
v2:
* Updated documentation for Tx queue pattern item and verified generated documents as well.

 drivers/common/cnxk/roc_npc.c       | 16 +++++---
 drivers/common/cnxk/roc_npc.h       |  1 +
 drivers/common/cnxk/roc_npc_mcam.c  | 61 +++++++++++++++++++++++------
 drivers/common/cnxk/roc_npc_parse.c | 52 ++++++++++++++++++++++++
 drivers/common/cnxk/roc_npc_priv.h  |  2 +
 5 files changed, 115 insertions(+), 17 deletions(-)
drivers/common/cnxk/roc_npc.c +10 -6
index d556b4c3a5..1baa71fc45 100644
@@ -779,11 +779,10 @@ npc_parse_pattern(struct npc *npc, const struct roc_npc_item_info pattern[],
 		  struct roc_npc_flow *flow, struct npc_parse_state *pst)
 {
 	npc_parse_stage_func_t parse_stage_funcs[] = {
-		npc_parse_meta_items, npc_parse_mark_item,  npc_parse_pre_l2,
-		npc_parse_cpt_hdr,    npc_parse_higig2_hdr, npc_parse_la,
-		npc_parse_lb,	      npc_parse_lc,	    npc_parse_ld,
-		npc_parse_le,	      npc_parse_lf,	    npc_parse_lg,
-		npc_parse_lh,
+		npc_parse_meta_items, npc_parse_mark_item, npc_parse_pre_l2, npc_parse_cpt_hdr,
+		npc_parse_higig2_hdr, npc_parse_tx_queue,  npc_parse_la,     npc_parse_lb,
+		npc_parse_lc,	      npc_parse_ld,	   npc_parse_le,     npc_parse_lf,
+		npc_parse_lg,	      npc_parse_lh,
 	};
 	uint8_t layer = 0;
 	int key_offset;
@@ -792,9 +791,9 @@ npc_parse_pattern(struct npc *npc, const struct roc_npc_item_info pattern[],
 	if (pattern == NULL)
 		return NPC_ERR_PARAM;
 
-	memset(pst, 0, sizeof(*pst));
 	pst->npc = npc;
 	pst->flow = flow;
+	pst->nix_intf = flow->nix_intf;
 
 	/* Use integral byte offset */
 	key_offset = pst->npc->keyx_len[flow->nix_intf];
@@ -864,8 +863,12 @@ npc_parse_rule(struct roc_npc *roc_npc, const struct roc_npc_attr *attr,
 	       struct npc_parse_state *pst)
 {
 	struct npc *npc = roc_npc_to_npc_priv(roc_npc);
+	struct roc_nix *roc_nix = roc_npc->roc_nix;
+	struct nix *nix = roc_nix_to_nix_priv(roc_nix);
 	int err;
 
+	pst->nb_tx_queues = nix->nb_tx_queues;
+
 	/* Check attr */
 	err = npc_parse_attr(npc, attr, flow);
 	if (err)
@@ -1445,6 +1448,7 @@ roc_npc_flow_create(struct roc_npc *roc_npc, const struct roc_npc_attr *attr,
 		return NULL;
 	}
 	memset(flow, 0, sizeof(*flow));
+	memset(&parse_state, 0, sizeof(parse_state));
 
 	rc = npc_parse_rule(roc_npc, attr, pattern, actions, flow,
 			    &parse_state);
drivers/common/cnxk/roc_npc.h +1 -0
index 26a43c12cb..5984da1c1a 100644
@@ -39,6 +39,7 @@ enum roc_npc_item_type {
 	ROC_NPC_ITEM_TYPE_QINQ,
 	ROC_NPC_ITEM_TYPE_RAW,
 	ROC_NPC_ITEM_TYPE_MARK,
+	ROC_NPC_ITEM_TYPE_TX_QUEUE,
 	ROC_NPC_ITEM_TYPE_END,
 };
 
drivers/common/cnxk/roc_npc_mcam.c +50 -11

80 lines not on this page · raw message

drivers/common/cnxk/roc_npc_parse.c +52 -0

58 lines not on this page · raw message

drivers/common/cnxk/roc_npc_priv.h +2 -0
index 714dcb09c9..6f41df18bb 100644
@@ -200,6 +200,7 @@ struct npc_parse_state {
 	bool set_ipv6ext_ltype_mask;
 	bool is_second_pass_rule;
 	bool has_eth_type;
+	uint16_t nb_tx_queues;
 };
 
 enum npc_kpu_parser_flag {
@@ -448,6 +449,7 @@ int npc_parse_mark_item(struct npc_parse_state *pst);
 int npc_parse_pre_l2(struct npc_parse_state *pst);
 int npc_parse_higig2_hdr(struct npc_parse_state *pst);
 int npc_parse_cpt_hdr(struct npc_parse_state *pst);
+int npc_parse_tx_queue(struct npc_parse_state *pst);
 int npc_parse_la(struct npc_parse_state *pst);
 int npc_parse_lb(struct npc_parse_state *pst);
 int npc_parse_lc(struct npc_parse_state *pst);
Signature · 1 line
2.39.2
#6 lore raw

PATCH v2 2/2 net/cnxk: support Tx queue flow pattern item

From: Satheesh Paul <[email protected]>

Added support for Tx queue flow pattern item.

---
 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/nics/features/default.ini  | 1 +
 drivers/net/cnxk/cnxk_flow.c          | 4 +++-
 5 files changed, 7 insertions(+), 1 deletion(-)
doc/guides/nics/features/cnxk.ini +1 -0
index 7947c044bb..838e781d6d 100644
@@ -73,6 +73,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/cnxk_vec.ini +1 -0
index 5d0976e6ce..e2cac64e4b 100644
@@ -68,6 +68,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/cnxk_vf.ini +1 -0
index 873e1dcc0a..470c45ce59 100644
@@ -64,6 +64,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/default.ini +1 -0
index 1a5087abad..52a57d0805 100644
@@ -142,6 +142,7 @@ represented_port     =
 sctp                 =
 tag                  =
 tcp                  =
+tx_queue             =
 udp                  =
 vlan                 =
 vxlan                =
drivers/net/cnxk/cnxk_flow.c +3 -1
index f13d8e5582..9595fe9386 100644
@@ -58,7 +58,9 @@ const struct cnxk_rte_flow_term_info term[] = {
 	[RTE_FLOW_ITEM_TYPE_RAW] = {ROC_NPC_ITEM_TYPE_RAW,
 				    sizeof(struct rte_flow_item_raw)},
 	[RTE_FLOW_ITEM_TYPE_MARK] = {ROC_NPC_ITEM_TYPE_MARK,
-				     sizeof(struct rte_flow_item_mark)}};
+				     sizeof(struct rte_flow_item_mark)},
+	[RTE_FLOW_ITEM_TYPE_TX_QUEUE] = {ROC_NPC_ITEM_TYPE_TX_QUEUE,
+				     sizeof(struct rte_flow_item_tx_queue)}};
 
 static int
 npc_rss_action_validate(struct rte_eth_dev *eth_dev,
Signature · 1 line
2.39.2
#7 lore raw

Re: [dpdk-dev] [PATCH v2 2/2] net/cnxk: support Tx queue flow pattern item

Quoted 7 lines · On Wed, May 24, 2023 at 10:24 AM <[email protected]> wrote:

From: Satheesh Paul <[email protected]>

Added support for Tx queue flow pattern item.

Series applied to dpdk-next-net-mrvl/for-next-net. Thanks

Quoted 74 lines
---
 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/nics/features/default.ini  | 1 +
 drivers/net/cnxk/cnxk_flow.c          | 4 +++-
 5 files changed, 7 insertions(+), 1 deletion(-)
doc/guides/nics/features/cnxk.ini +1 -0
index 7947c044bb..838e781d6d 100644
@@ -73,6 +73,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/cnxk_vec.ini +1 -0
index 5d0976e6ce..e2cac64e4b 100644
@@ -68,6 +68,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/cnxk_vf.ini +1 -0
index 873e1dcc0a..470c45ce59 100644
@@ -64,6 +64,7 @@ nvgre                = Y
 raw                  = Y
 sctp                 = Y
 tcp                  = Y
+tx_queue             = Y
 udp                  = Y
 vlan                 = Y
 vxlan                = Y
doc/guides/nics/features/default.ini +1 -0
index 1a5087abad..52a57d0805 100644
@@ -142,6 +142,7 @@ represented_port     =
 sctp                 =
 tag                  =
 tcp                  =
+tx_queue             =
 udp                  =
 vlan                 =
 vxlan                =
drivers/net/cnxk/cnxk_flow.c +3 -2
index f13d8e5582..9595fe9386 100644
@@ -58,7 +58,9 @@ const struct cnxk_rte_flow_term_info term[] = {
        [RTE_FLOW_ITEM_TYPE_RAW] = {ROC_NPC_ITEM_TYPE_RAW,
                                    sizeof(struct rte_flow_item_raw)},
        [RTE_FLOW_ITEM_TYPE_MARK] = {ROC_NPC_ITEM_TYPE_MARK,
-                                    sizeof(struct rte_flow_item_mark)}};
+                                    sizeof(struct rte_flow_item_mark)},
+       [RTE_FLOW_ITEM_TYPE_TX_QUEUE] = {ROC_NPC_ITEM_TYPE_TX_QUEUE,
+                                    sizeof(struct rte_flow_item_tx_queue)}};
 
 static int
 npc_rss_action_validate(struct rte_eth_dev *eth_dev,
--

2.39.2