patch 'net/cnxk: add message on flow parsing failure' has been queued to stable release 21.11.2

Kevin Traynor ktraynor at redhat.com
Wed May 25 18:28:22 CEST 2022


Hi,

FYI, your patch has been queued to stable release 21.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/30/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/b117088323fca6ab18ea32be499b612626e0c259

Thanks.

Kevin

---
>From b117088323fca6ab18ea32be499b612626e0c259 Mon Sep 17 00:00:00 2001
From: Satheesh Paul <psatheesh at marvell.com>
Date: Tue, 19 Apr 2022 12:04:38 +0530
Subject: [PATCH] net/cnxk: add message on flow parsing failure

[ upstream commit c8647cd7f3260eec8d55ee392240dcc10f7c0a4b ]

Set the error message with rte_flow_error_set() API
when flow parsing fails.

Fixes: 8c009b4505e ("net/cnxk: support flow API")

Signed-off-by: Satheesh Paul <psatheesh at marvell.com>
Reviewed-by: Kiran Kumar K <kirankumark at marvell.com>
---
 drivers/net/cnxk/cnxk_rte_flow.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/net/cnxk/cnxk_rte_flow.c b/drivers/net/cnxk/cnxk_rte_flow.c
index b08d7c34fa..32166ae764 100644
--- a/drivers/net/cnxk/cnxk_rte_flow.c
+++ b/drivers/net/cnxk/cnxk_rte_flow.c
@@ -298,5 +298,12 @@ cnxk_flow_validate(struct rte_eth_dev *eth_dev,
 	}
 
-	return roc_npc_flow_parse(npc, &in_attr, in_pattern, in_actions, &flow);
+	rc = roc_npc_flow_parse(npc, &in_attr, in_pattern, in_actions, &flow);
+
+	if (rc) {
+		rte_flow_error_set(error, 0, rc, NULL,
+				   "Flow validation failed");
+		return rc;
+	}
+	return 0;
 }
 
-- 
2.34.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-05-25 17:26:59.313959185 +0100
+++ 0030-net-cnxk-add-message-on-flow-parsing-failure.patch	2022-05-25 17:26:58.607828390 +0100
@@ -1 +1 @@
-From c8647cd7f3260eec8d55ee392240dcc10f7c0a4b Mon Sep 17 00:00:00 2001
+From b117088323fca6ab18ea32be499b612626e0c259 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c8647cd7f3260eec8d55ee392240dcc10f7c0a4b ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -15 +16 @@
- drivers/net/cnxk/cnxk_flow.c | 9 ++++++++-
+ drivers/net/cnxk/cnxk_rte_flow.c | 9 ++++++++-
@@ -18,5 +19,5 @@
-diff --git a/drivers/net/cnxk/cnxk_flow.c b/drivers/net/cnxk/cnxk_flow.c
-index ff962c141d..1034a2c5a4 100644
---- a/drivers/net/cnxk/cnxk_flow.c
-+++ b/drivers/net/cnxk/cnxk_flow.c
-@@ -300,5 +300,12 @@ cnxk_flow_validate(struct rte_eth_dev *eth_dev,
+diff --git a/drivers/net/cnxk/cnxk_rte_flow.c b/drivers/net/cnxk/cnxk_rte_flow.c
+index b08d7c34fa..32166ae764 100644
+--- a/drivers/net/cnxk/cnxk_rte_flow.c
++++ b/drivers/net/cnxk/cnxk_rte_flow.c
+@@ -298,5 +298,12 @@ cnxk_flow_validate(struct rte_eth_dev *eth_dev,



More information about the stable mailing list