[dpdk-stable] patch 'net/bonding: fix error code on device creation' has been queued to stable release 19.11.4

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Jul 24 13:59:52 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.11.4

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/26/20. 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.

Thanks.

Luca Boccassi

---
>From cfc26947ca6bf20ff3b3ac1c62b5b55d27db0bb1 Mon Sep 17 00:00:00 2001
From: "Wei Hu (Xavier)" <xavier.huwei at huawei.com>
Date: Tue, 14 Jul 2020 16:19:43 +0800
Subject: [PATCH] net/bonding: fix error code on device creation

[ upstream commit 2dd4f08540cc32cc1a62579d66d055327638ac92 ]

Because the return value of rte_vdev_init() has multiple non-zero
values, when rte_vdev_init() return non-zero in the
rte_eth_bond_create() function, it should return the actual error code
rather than -ENOMEM.

Fixes: 68451eb6698c ("net/bonding: call through EAL on create/free")

Signed-off-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
---
 drivers/net/bonding/rte_eth_bond_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/bonding/rte_eth_bond_api.c b/drivers/net/bonding/rte_eth_bond_api.c
index f38eb3b47..d77dc4096 100644
--- a/drivers/net/bonding/rte_eth_bond_api.c
+++ b/drivers/net/bonding/rte_eth_bond_api.c
@@ -167,7 +167,7 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id)
 
 	ret = rte_vdev_init(name, devargs);
 	if (ret)
-		return -ENOMEM;
+		return ret;
 
 	ret = rte_eth_dev_get_port_by_name(name, &port_id);
 	RTE_ASSERT(!ret);
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-07-24 12:53:54.502992230 +0100
+++ 0154-net-bonding-fix-error-code-on-device-creation.patch	2020-07-24 12:53:48.519010782 +0100
@@ -1,15 +1,16 @@
-From 2dd4f08540cc32cc1a62579d66d055327638ac92 Mon Sep 17 00:00:00 2001
+From cfc26947ca6bf20ff3b3ac1c62b5b55d27db0bb1 Mon Sep 17 00:00:00 2001
 From: "Wei Hu (Xavier)" <xavier.huwei at huawei.com>
 Date: Tue, 14 Jul 2020 16:19:43 +0800
 Subject: [PATCH] net/bonding: fix error code on device creation
 
+[ upstream commit 2dd4f08540cc32cc1a62579d66d055327638ac92 ]
+
 Because the return value of rte_vdev_init() has multiple non-zero
 values, when rte_vdev_init() return non-zero in the
 rte_eth_bond_create() function, it should return the actual error code
 rather than -ENOMEM.
 
 Fixes: 68451eb6698c ("net/bonding: call through EAL on create/free")
-Cc: stable at dpdk.org
 
 Signed-off-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
 ---


More information about the stable mailing list