[dpdk-stable] patch 'net/bonding: check flow setting' has been queued to stable release 20.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 26 15:52:25 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.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 07/28/21. 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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/6807067d712ff88124851b6f9ee06cc8503758a5

Thanks.

Luca Boccassi

---
>From 6807067d712ff88124851b6f9ee06cc8503758a5 Mon Sep 17 00:00:00 2001
From: Martin Havlik <xhavli56 at stud.fit.vutbr.cz>
Date: Tue, 22 Jun 2021 11:25:29 +0200
Subject: [PATCH] net/bonding: check flow setting

[ upstream commit d844400966d0071680d618c21a896ec8c73a50e6 ]

Return value from bond_ethdev_8023ad_flow_set() is now checked
and appropriate message is logged on error.

Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control")

Signed-off-by: Martin Havlik <xhavli56 at stud.fit.vutbr.cz>
Acked-by: Min Hu (Connor) <humin29 at huawei.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
---
 drivers/net/bonding/rte_eth_bond_pmd.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index 8abb25a920..a1d3703e96 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -1808,8 +1808,14 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev,
 					internals->mode4.dedicated_queues.flow[slave_eth_dev->data->port_id],
 					&flow_error);
 
-		bond_ethdev_8023ad_flow_set(bonded_eth_dev,
+		errval = bond_ethdev_8023ad_flow_set(bonded_eth_dev,
 				slave_eth_dev->data->port_id);
+		if (errval != 0) {
+			RTE_BOND_LOG(ERR,
+				"bond_ethdev_8023ad_flow_set: port=%d, err (%d)",
+				slave_eth_dev->data->port_id, errval);
+			return errval;
+		}
 	}
 
 	/* Start device */
-- 
2.30.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-07-26 13:53:16.080783013 +0100
+++ 0002-net-bonding-check-flow-setting.patch	2021-07-26 13:53:15.769290941 +0100
@@ -1 +1 @@
-From d844400966d0071680d618c21a896ec8c73a50e6 Mon Sep 17 00:00:00 2001
+From 6807067d712ff88124851b6f9ee06cc8503758a5 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d844400966d0071680d618c21a896ec8c73a50e6 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 4c43bf9166..a6755661c4 100644
+index 8abb25a920..a1d3703e96 100644
@@ -23 +24 @@
-@@ -1819,8 +1819,14 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev,
+@@ -1808,8 +1808,14 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev,


More information about the stable mailing list