patch 'net/mlx5: fix return value of vport action' has been queued to stable release 22.11.3

Xueming Li xuemingl at nvidia.com
Thu Aug 10 01:58:54 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=d8bdfa579e421030173f06fffd047112cc9c8f2c

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From d8bdfa579e421030173f06fffd047112cc9c8f2c Mon Sep 17 00:00:00 2001
From: Bing Zhao <bingz at nvidia.com>
Date: Fri, 30 Jun 2023 12:21:34 +0300
Subject: [PATCH] net/mlx5: fix return value of vport action
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit d0f8a9ae22a02455233052ee06c6c3bacd3c59f3 ]

The "rte_flow_error" should be set in case a invalid pointer access
to the message member.

Fixes: 1939eb6f660c ("net/mlx5: support flow port action with HWS")

Signed-off-by: Bing Zhao <bingz at nvidia.com>
Acked-by: Ori Kam <orika at nvidia.com>
---
 drivers/net/mlx5/mlx5_flow_hw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index 60afc268bc..ccd78990a6 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -6991,7 +6991,8 @@ flow_hw_configure(struct rte_eth_dev *dev,
 	if (is_proxy) {
 		ret = flow_hw_create_vport_actions(priv);
 		if (ret) {
-			rte_errno = -ret;
+			rte_flow_error_set(error, -ret, RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
+					   NULL, "Failed to create vport actions.");
 			goto err;
 		}
 		ret = flow_hw_create_ctrl_tables(dev);
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-08-09 21:51:20.079508300 +0800
+++ 0075-net-mlx5-fix-return-value-of-vport-action.patch	2023-08-09 21:51:18.224352000 +0800
@@ -1 +1 @@
-From d0f8a9ae22a02455233052ee06c6c3bacd3c59f3 Mon Sep 17 00:00:00 2001
+From d8bdfa579e421030173f06fffd047112cc9c8f2c Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit d0f8a9ae22a02455233052ee06c6c3bacd3c59f3 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +21 @@
-index 697da91f03..0a9b7700e0 100644
+index 60afc268bc..ccd78990a6 100644
@@ -22 +24 @@
-@@ -7831,7 +7831,8 @@ flow_hw_configure(struct rte_eth_dev *dev,
+@@ -6991,7 +6991,8 @@ flow_hw_configure(struct rte_eth_dev *dev,


More information about the stable mailing list