patch 'net/hinic: fix mutexes for multi-process' has been queued to stable release 25.11.3
Kevin Traynor
ktraynor at redhat.com
Thu Jul 23 19:14:49 CEST 2026
Hi,
FYI, your patch has been queued to stable release 25.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/27/26. 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/d6f7d196d2c789d9e10c86ed5db6e593512911c4
Thanks.
Kevin
---
>From d6f7d196d2c789d9e10c86ed5db6e593512911c4 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Wed, 29 Apr 2026 11:46:44 -0700
Subject: [PATCH] net/hinic: fix mutexes for multi-process
[ upstream commit 4a0cb075206c80559c12726fa5a61a670fbe92a3 ]
The hinic driver supports secondary processes. Mutexes in structures
allocated in shared memory must be initialized with
PTHREAD_PROCESS_SHARED. All callers of hinic_mutex_init() pass NULL
as the attribute argument, so route it through the EAL helper and
drop the unused parameter handling.
Bugzilla ID: 662
Fixes: ae865766b334 ("net/hinic: replace spinlock with mutex")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
---
drivers/net/hinic/base/hinic_compat.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/hinic/base/hinic_compat.h b/drivers/net/hinic/base/hinic_compat.h
index d3994c50e9..707a3b92b9 100644
--- a/drivers/net/hinic/base/hinic_compat.h
+++ b/drivers/net/hinic/base/hinic_compat.h
@@ -20,4 +20,5 @@
#include <rte_cycles.h>
#include <rte_log.h>
+#include <rte_thread.h>
typedef uint8_t u8;
@@ -199,7 +200,8 @@ static inline u16 ilog2(u32 n)
static inline int hinic_mutex_init(pthread_mutex_t *pthreadmutex,
- const pthread_mutexattr_t *mattr)
+ __rte_unused const pthread_mutexattr_t *mattr)
{
- return pthread_mutex_init(pthreadmutex, mattr);
+ rte_thread_mutex_init_shared(pthreadmutex);
+ return 0;
}
--
2.55.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-23 17:57:59.437638271 +0100
+++ 0026-net-hinic-fix-mutexes-for-multi-process.patch 2026-07-23 17:57:58.640796607 +0100
@@ -1 +1 @@
-From 4a0cb075206c80559c12726fa5a61a670fbe92a3 Mon Sep 17 00:00:00 2001
+From d6f7d196d2c789d9e10c86ed5db6e593512911c4 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 4a0cb075206c80559c12726fa5a61a670fbe92a3 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list