patch 'net/memif: fix const pointer in socket check' has been queued to stable release 22.11.11

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Dec 1 12:51:32 CET 2025


Hi,

FYI, your patch has been queued to stable release 22.11.11

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

Thanks.

Luca Boccassi

---
>From cbeac943a0a04c4a2b3b52f54ce4bafe456994b7 Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Fri, 28 Nov 2025 14:56:14 +0100
Subject: [PATCH] net/memif: fix const pointer in socket check

[ upstream commit 367d26dd8ace9e5f74d7434a82332e9813efd4bc ]

With latest glibc (Fedora Rawhide):
../drivers/net/memif/rte_eth_memif.c: In function
	'memif_check_socket_filename':
../drivers/net/memif/rte_eth_memif.c:1848:13: warning: assignment discards
	'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 1848 |         tmp = strrchr(filename, '/');
      |             ^

Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")

Signed-off-by: David Marchand <david.marchand at redhat.com>
---
 drivers/net/memif/rte_eth_memif.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c
index 9379c201e9..ee186a9265 100644
--- a/drivers/net/memif/rte_eth_memif.c
+++ b/drivers/net/memif/rte_eth_memif.c
@@ -1701,7 +1701,8 @@ memif_set_rs(const char *key __rte_unused, const char *value, void *extra_args)
 static int
 memif_check_socket_filename(const char *filename)
 {
-	char *dir = NULL, *tmp;
+	char *dir = NULL;
+	const char *tmp;
 	uint32_t idx;
 	int ret = 0;
 
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-12-01 11:51:15.465893636 +0000
+++ 0007-net-memif-fix-const-pointer-in-socket-check.patch	2025-12-01 11:51:15.219263610 +0000
@@ -1 +1 @@
-From 367d26dd8ace9e5f74d7434a82332e9813efd4bc Mon Sep 17 00:00:00 2001
+From cbeac943a0a04c4a2b3b52f54ce4bafe456994b7 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 367d26dd8ace9e5f74d7434a82332e9813efd4bc ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 9de6f97cd9..8d7060cd7c 100644
+index 9379c201e9..ee186a9265 100644
@@ -26 +27 @@
-@@ -1836,7 +1836,8 @@ memif_set_rs(const char *key __rte_unused, const char *value, void *extra_args)
+@@ -1701,7 +1701,8 @@ memif_set_rs(const char *key __rte_unused, const char *value, void *extra_args)


More information about the stable mailing list