patch 'ethdev: fix flow_ops_mutex 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:31 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/5ee31f568fddfd2eb199e05991d5a09153f2f25a
Thanks.
Luca Boccassi
---
>From 5ee31f568fddfd2eb199e05991d5a09153f2f25a Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Wed, 29 Apr 2026 11:46:39 -0700
Subject: [PATCH] ethdev: fix flow_ops_mutex for multi-process
[ upstream commit 0c097afb269157ba55518c0f97419ecd54ca2e45 ]
The flow_ops_mutex in rte_eth_dev_data lives in shared memory and is
accessed by both primary and secondary processes. It must be
initialized with PTHREAD_PROCESS_SHARED.
Bugzilla ID: 662
Fixes: 80d1a9aff7f6 ("ethdev: make flow API thread safe")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
---
lib/ethdev/ethdev_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ethdev/ethdev_driver.c b/lib/ethdev/ethdev_driver.c
index 65d999c764..d1d7653636 100644
--- a/lib/ethdev/ethdev_driver.c
+++ b/lib/ethdev/ethdev_driver.c
@@ -118,7 +118,7 @@ rte_eth_dev_allocate(const char *name)
eth_dev->data->port_id = port_id;
eth_dev->data->backer_port_id = RTE_MAX_ETHPORTS;
eth_dev->data->mtu = RTE_ETHER_MTU;
- pthread_mutex_init(ð_dev->data->flow_ops_mutex, NULL);
+ rte_thread_mutex_init_shared(ð_dev->data->flow_ops_mutex);
RTE_ASSERT(rte_eal_process_type() == RTE_PROC_PRIMARY);
eth_dev_shared_data->allocated_ports++;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-06-11 14:20:02.227288264 +0100
+++ 0022-ethdev-fix-flow_ops_mutex-for-multi-process.patch 2026-06-11 14:20:01.186745302 +0100
@@ -1 +1 @@
-From 0c097afb269157ba55518c0f97419ecd54ca2e45 Mon Sep 17 00:00:00 2001
+From 5ee31f568fddfd2eb199e05991d5a09153f2f25a Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 0c097afb269157ba55518c0f97419ecd54ca2e45 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 2ec665be0f..70ddce5bfc 100644
+index 65d999c764..d1d7653636 100644
@@ -24 +25 @@
-@@ -135,7 +135,7 @@ rte_eth_dev_allocate(const char *name)
+@@ -118,7 +118,7 @@ rte_eth_dev_allocate(const char *name)
More information about the stable
mailing list