patch 'app/testpmd: fix flow rule with flex input link' has been queued to stable release 21.11.1

Kevin Traynor ktraynor at redhat.com
Wed Mar 16 16:15:16 CET 2022


Hi,

FYI, your patch has been queued to stable release 21.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/21/22. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/c9d7fdc9be5954194360663fd059c26976ac2d2b

Thanks.

Kevin

---
>From c9d7fdc9be5954194360663fd059c26976ac2d2b Mon Sep 17 00:00:00 2001
From: Gregory Etelson <getelson at nvidia.com>
Date: Thu, 10 Mar 2022 07:59:53 +0200
Subject: [PATCH] app/testpmd: fix flow rule with flex input link

[ upstream commit fc547a92cf945abd9b4878aebe8392089804e279 ]

Testpmd reads flex item configuration from a JSON file.
Flex item input link description is stored in testpmd
flow item format. For example, `eth type is 0x0800`.
The item description is placed into a general testpmd CLI
flow rule command template and parsed to convert string into
flow item object.

The patch adds the `actions` section to the flow rule template.

Fixes: 59f3a8acbcdb ("app/testpmd: add flex item commands")

Signed-off-by: Gregory Etelson <getelson at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
---
 app/test-pmd/cmd_flex_item.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/test-pmd/cmd_flex_item.c b/app/test-pmd/cmd_flex_item.c
index 908bcb3f47..1e8dc38594 100644
--- a/app/test-pmd/cmd_flex_item.c
+++ b/app/test-pmd/cmd_flex_item.c
@@ -134,5 +134,6 @@ flex_link_item_parse(const char *src, struct rte_flow_item *item)
 	struct rte_flow_action *actions;
 
-	sprintf(flow_rule, "flow create 0 pattern %s / end", src);
+	sprintf(flow_rule,
+		"flow create 0 pattern %s / end actions drop / end", src);
 	src = flow_rule;
 	ret = flow_parse(src, (void *)data, sizeof(data),
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-03-16 15:14:12.500915734 +0000
+++ 0015-app-testpmd-fix-flow-rule-with-flex-input-link.patch	2022-03-16 15:14:12.123847653 +0000
@@ -1 +1 @@
-From fc547a92cf945abd9b4878aebe8392089804e279 Mon Sep 17 00:00:00 2001
+From c9d7fdc9be5954194360663fd059c26976ac2d2b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit fc547a92cf945abd9b4878aebe8392089804e279 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 9050825a81..78a89c0f8a 100644
+index 908bcb3f47..1e8dc38594 100644



More information about the stable mailing list