patch 'net/hinic: fix mutexes for multi-process' has been queued to stable release 24.11.7

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Jun 11 15:19:36 CEST 2026


Hi,

FYI, your patch has been queued to stable release 24.11.7

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/13/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/bluca/dpdk-stable

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

Thanks.

Luca Boccassi

---
>From 20d0356be03d161b0f13a92244ec77515f9a3f2f 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 | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/drivers/net/hinic/base/hinic_compat.h b/drivers/net/hinic/base/hinic_compat.h
index ab9d1b9a02..707a3b92b9 100644
--- a/drivers/net/hinic/base/hinic_compat.h
+++ b/drivers/net/hinic/base/hinic_compat.h
@@ -19,6 +19,7 @@
 #include <rte_spinlock.h>
 #include <rte_cycles.h>
 #include <rte_log.h>
+#include <rte_thread.h>
 
 typedef uint8_t   u8;
 typedef int8_t    s8;
@@ -198,15 +199,10 @@ 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)
 {
-	int err;
-
-	err = pthread_mutex_init(pthreadmutex, mattr);
-	if (unlikely(err))
-		PMD_DRV_LOG(ERR, "Fail to initialize mutex, error: %d", err);
-
-	return err;
+	rte_thread_mutex_init_shared(pthreadmutex);
+	return 0;
 }
 
 static inline int hinic_mutex_destroy(pthread_mutex_t *pthreadmutex)
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-06-11 14:20:02.428361232 +0100
+++ 0027-net-hinic-fix-mutexes-for-multi-process.patch	2026-06-11 14:20:01.194745497 +0100
@@ -1 +1 @@
-From 4a0cb075206c80559c12726fa5a61a670fbe92a3 Mon Sep 17 00:00:00 2001
+From 20d0356be03d161b0f13a92244ec77515f9a3f2f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 4a0cb075206c80559c12726fa5a61a670fbe92a3 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -19,2 +20,2 @@
- drivers/net/hinic/base/hinic_compat.h | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
+ drivers/net/hinic/base/hinic_compat.h | 12 ++++--------
+ 1 file changed, 4 insertions(+), 8 deletions(-)
@@ -23 +24 @@
-index d3994c50e9..707a3b92b9 100644
+index ab9d1b9a02..707a3b92b9 100644
@@ -34 +35 @@
-@@ -198,9 +199,10 @@ static inline u16 ilog2(u32 n)
+@@ -198,15 +199,10 @@ static inline u16 ilog2(u32 n)
@@ -41 +42,7 @@
--	return pthread_mutex_init(pthreadmutex, mattr);
+-	int err;
+-
+-	err = pthread_mutex_init(pthreadmutex, mattr);
+-	if (unlikely(err))
+-		PMD_DRV_LOG(ERR, "Fail to initialize mutex, error: %d", err);
+-
+-	return err;


More information about the stable mailing list