patch 'eal/linux: filter uevent Netlink in kernel' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 13:58:47 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
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/08/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/70da8c9404ed41e749672b04ddc963e39b1be65d
Thanks.
Kevin
---
>From 70da8c9404ed41e749672b04ddc963e39b1be65d Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Wed, 19 Aug 2026 12:08:50 -0700
Subject: [PATCH] eal/linux: filter uevent Netlink in kernel
[ upstream commit 17d915f1b2f838ccf42bb68f991031df928f9870 ]
The EAL uevent only needs/wants messages from the kernel.
Better to let kernel side do the filtering to avoid any overrun
issues in DPDK interrupt thread.
There is no exposed API definition here. The convention
is kernel is 1 and libudev uses 2.
Since kernel is now filtering, we can remove step in uevent parsing.
Fixes: 0d0f478d0483 ("eal/linux: add uevent parse and process")
Reported-by: Randy Tice <rtice at cisco.com>
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Reviewed-by: Long Li <longli at microsoft.com>
---
.mailmap | 1 +
lib/eal/linux/eal_dev.c | 12 ++++--------
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/.mailmap b/.mailmap
index ebbf30f509..93c70da6b6 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1366,4 +1366,5 @@ Rami Rosen <ramirose at gmail.com> <rami.rosen at intel.com>
Rami Rosen <ramirose at gmail.com> <roszenrami at gmail.com>
Randy Schacher <stuart.schacher at broadcom.com>
+Randy Tice <rtice at cisco.com>
Rani Sharoni <ranish at nvidia.com>
Ranjit Menon <ranjit.menon at intel.com>
diff --git a/lib/eal/linux/eal_dev.c b/lib/eal/linux/eal_dev.c
index 33b78464d5..0e5d0b4f96 100644
--- a/lib/eal/linux/eal_dev.c
+++ b/lib/eal/linux/eal_dev.c
@@ -30,4 +30,7 @@ static bool hotplug_handle;
#define EAL_UEV_MSG_ELEM_LEN 128
+/* Listen only to messages from kernel (not libudev) */
+#define EAL_UEV_GROUP_KERNEL 1
+
/*
* spinlock for device hot-unplug failure handling. If it try to access bus or
@@ -117,5 +120,5 @@ dev_uev_socket_fd_create(void)
addr.nl_family = AF_NETLINK;
addr.nl_pid = 0;
- addr.nl_groups = 0xffffffff;
+ addr.nl_groups = EAL_UEV_GROUP_KERNEL;
ret = bind(fd, (struct sockaddr *) &addr, sizeof(addr));
@@ -161,11 +164,4 @@ dev_uev_parse(const char *buf, struct rte_dev_event *event, int length)
break;
- /**
- * check device uevent from kernel side, no need to check
- * uevent from udev.
- */
- if (!strncmp(buf, "libudev", 7)) {
- return -1;
- }
if (!strncmp(buf, "ACTION=", 7)) {
buf += 7;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:39.394788367 +0000
+++ 0001-eal-linux-filter-uevent-Netlink-in-kernel.patch 2026-12-03 12:52:39.012938560 +0000
@@ -1 +1 @@
-From 17d915f1b2f838ccf42bb68f991031df928f9870 Mon Sep 17 00:00:00 2001
+From 70da8c9404ed41e749672b04ddc963e39b1be65d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 17d915f1b2f838ccf42bb68f991031df928f9870 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index fcb3d1bb3f..9b7713b6df 100644
+index ebbf30f509..93c70da6b6 100644
@@ -30 +31 @@
-@@ -1381,4 +1381,5 @@ Rami Rosen <ramirose at gmail.com> <rami.rosen at intel.com>
+@@ -1366,4 +1366,5 @@ Rami Rosen <ramirose at gmail.com> <rami.rosen at intel.com>
@@ -37 +38 @@
-index ec408649d0..5c22c5b16b 100644
+index 33b78464d5..0e5d0b4f96 100644
More information about the stable
mailing list