patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] app/testpmd: fix parsing for connection tracking item
@ 2024-06-02 10:23 Maayan Kashani
  2024-06-12 16:35 ` Ferruh Yigit
  2024-07-05 11:29 ` Ferruh Yigit
  0 siblings, 2 replies; 4+ messages in thread
From: Maayan Kashani @ 2024-06-02 10:23 UTC (permalink / raw)
  To: dev
  Cc: mkashani, dsosnowski, rasland, stable, Ori Kam, Aman Singh,
	Yuying Zhang, Bing Zhao

In command line translation there were missing fields for
connection tracking item, as a result this item was not parsed
and was missing from the items list received from test-pmd.

Fixes: 4d07cbefe3ba ("app/testpmd: add commands for conntrack")
Cc: stable@dpdk.org
Signed-off-by: Maayan Kashani <mkashani@nvidia.com>
---
 app/test-pmd/cmdline_flow.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 60ee9337cf..1f9d5ebd05 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -5797,9 +5797,12 @@ static const struct token token_list[] = {
 	[ITEM_CONNTRACK] = {
 		.name = "conntrack",
 		.help = "conntrack state",
+		.priv = PRIV_ITEM(CONNTRACK,
+				  sizeof(struct rte_flow_item_conntrack)),
 		.next = NEXT(NEXT_ENTRY(ITEM_NEXT), NEXT_ENTRY(COMMON_UNSIGNED),
 			     item_param),
 		.args = ARGS(ARGS_ENTRY(struct rte_flow_item_conntrack, flags)),
+		.call = parse_vc,
 	},
 	[ITEM_PORT_REPRESENTOR] = {
 		.name = "port_representor",
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-05 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-02 10:23 [PATCH] app/testpmd: fix parsing for connection tracking item Maayan Kashani
2024-06-12 16:35 ` Ferruh Yigit
2024-06-17 14:14   ` Maayan Kashani
2024-07-05 11:29 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).