patch 'eal/linux: increase uevent socket buffer' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 13:58:48 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/0d6e58be08126f857369030e6a4759952c32279e
Thanks.
Kevin
---
>From 0d6e58be08126f857369030e6a4759952c32279e Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Wed, 19 Aug 2026 12:08:51 -0700
Subject: [PATCH] eal/linux: increase uevent socket buffer
[ upstream commit 050aadddb3fb3fb1474e0d5d38605c385c067c8d ]
The kernel netlink socket into DPDK can get overrun if DPDK
interrupt thread is not keeping up. To reduce the possibility,
increase the socket receive buffer to 4M.
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>
---
lib/eal/linux/eal_dev.c | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/lib/eal/linux/eal_dev.c b/lib/eal/linux/eal_dev.c
index 0e5d0b4f96..8c2a2064a0 100644
--- a/lib/eal/linux/eal_dev.c
+++ b/lib/eal/linux/eal_dev.c
@@ -33,4 +33,7 @@ static bool hotplug_handle;
#define EAL_UEV_GROUP_KERNEL 1
+/* Large uevent buffer */
+#define EAL_UEV_MSG_RCVBUF (4 * 1024 * 1024)
+
/*
* spinlock for device hot-unplug failure handling. If it try to access bus or
@@ -104,4 +107,27 @@ static int cmp_dev_name(const struct rte_device *dev,
}
+/*
+ * To avoid losing uevents increase the netlink receive buffer size,
+ * and override the kernel clamp value if necessary.
+ */
+static int
+dev_uev_set_rcvbuf(int fd, int n)
+{
+ int ret, val;
+ socklen_t len = sizeof(val);
+
+ ret = setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &n, sizeof(n));
+ if (ret < 0)
+ return ret;
+
+ /* kernel may have clamped our request */
+ ret = getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len);
+ if (ret >= 0 && len == sizeof(val) && val == n * 2)
+ return 0; /* request worked */
+
+ /* try again to override kernel restriction */
+ return setsockopt(fd, SOL_SOCKET, SO_RCVBUFFORCE, &n, sizeof(n));
+}
+
static int
dev_uev_socket_fd_create(void)
@@ -128,4 +154,7 @@ dev_uev_socket_fd_create(void)
}
+ if (dev_uev_set_rcvbuf(fd, EAL_UEV_MSG_RCVBUF) < 0)
+ EAL_LOG(NOTICE, "Failed to set rcvbuf.");
+
if (rte_intr_fd_set(intr_handle, fd))
goto err;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:39.419784879 +0000
+++ 0002-eal-linux-increase-uevent-socket-buffer.patch 2026-12-03 12:52:39.013644328 +0000
@@ -1 +1 @@
-From 050aadddb3fb3fb1474e0d5d38605c385c067c8d Mon Sep 17 00:00:00 2001
+From 0d6e58be08126f857369030e6a4759952c32279e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 050aadddb3fb3fb1474e0d5d38605c385c067c8d ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 5c22c5b16b..254026f386 100644
+index 0e5d0b4f96..8c2a2064a0 100644
More information about the stable
mailing list