patch 'mempool: fix errno in empty create' has been queued to stable release 22.11.8
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Feb 17 18:04:51 CET 2025
Hi,
FYI, your patch has been queued to stable release 22.11.8
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/19/25. 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/5ed49f4417a6080b711a60ef5209bc5f4b3d9666
Thanks.
Luca Boccassi
---
>From 5ed49f4417a6080b711a60ef5209bc5f4b3d9666 Mon Sep 17 00:00:00 2001
From: Ariel Otilibili <ariel.otilibili at 6wind.com>
Date: Mon, 20 Jan 2025 13:21:55 +0100
Subject: [PATCH] mempool: fix errno in empty create
[ upstream commit a81d8ceff4e961995c78df6dbc9353dbbfbd8c32 ]
When returning from rte_mempool_set_ops_byname(), rte_errno is not set
for error exits.
The API requires rte_errno to be set in that case.
Bugzilla ID: 1559
Fixes: c2c6b2f41305 ("mempool: fix default ops for an empty mempool")
Signed-off-by: Ariel Otilibili <ariel.otilibili at 6wind.com>
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
---
lib/mempool/rte_mempool.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/mempool/rte_mempool.c b/lib/mempool/rte_mempool.c
index 258754cf67..9d9c91be2a 100644
--- a/lib/mempool/rte_mempool.c
+++ b/lib/mempool/rte_mempool.c
@@ -928,8 +928,10 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
else
ret = rte_mempool_set_ops_byname(mp, "ring_mp_mc", NULL);
- if (ret)
+ if (ret) {
+ rte_errno = -ret;
goto exit_unlock;
+ }
/*
* local_cache pointer is set even if cache_size is zero.
--
2.47.2
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-02-17 16:13:19.561126997 +0000
+++ 0078-mempool-fix-errno-in-empty-create.patch 2025-02-17 16:13:16.874441592 +0000
@@ -1 +1 @@
-From a81d8ceff4e961995c78df6dbc9353dbbfbd8c32 Mon Sep 17 00:00:00 2001
+From 5ed49f4417a6080b711a60ef5209bc5f4b3d9666 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a81d8ceff4e961995c78df6dbc9353dbbfbd8c32 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index d8e39e5c20..1e4f24783c 100644
+index 258754cf67..9d9c91be2a 100644
More information about the stable
mailing list