DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Long Li <longli@microsoft.com>,
	Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH v5 0/4] eal: uevent overrun mitigation
Date: Wed, 19 Aug 2026 12:08:49 -0700	[thread overview]
Message-ID: <20260819191036.679330-1-stephen@networkplumber.org> (raw)
In-Reply-To: <20260817201602.120526-1-rtice@cisco.com>

This set of patches is an extension of the proposed patch
to handle netlink uevent socket overrun reported by Randy Tice.
Mostly impacts users of Azure VF events (MLX5 and MANA).

DPDK uses netlink uevent to track hotplug events reported
by the kernel. Since this is a one-way non-blocking channel
there is no fool proof way to prevent missing events if DPDK
interrupt thread does not keep up.

What this series does is:
  - use netlink group to only receive events from kernel
  - increase socket buffer to have more headroom
  - report the problem more clearly in log
  - document requirement for control threads

Stephen Hemminger (4):
  eal/linux: filter uevent Netlink in kernel
  eal/linux: increase uevent socket buffer
  eal/linux: report uevent socket overrun
  doc: add warning about control threads

 .mailmap                                      |  1 +
 .../prog_guide/env_abstraction_layer.rst      | 14 +++++
 lib/eal/linux/eal_dev.c                       | 56 ++++++++++++++++---
 3 files changed, 62 insertions(+), 9 deletions(-)

-- 
2.53.0


  parent reply	other threads:[~2026-08-19 19:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-13 20:16 [PATCH] eal/linux: harden uevent recv error handling Randy Tice
2026-08-13 22:57 ` Stephen Hemminger
2026-08-17 18:53 ` [PATCH v2] " Randy Tice
2026-08-17 19:23 ` [PATCH v3] " Randy Tice
2026-08-17 20:16 ` [PATCH v4] " Randy Tice
2026-08-18  2:15   ` Stephen Hemminger
2026-08-19 19:08   ` Stephen Hemminger [this message]
2026-08-19 19:08     ` [PATCH v5 1/4] eal/linux: filter uevent Netlink in kernel Stephen Hemminger
2026-08-19 19:08     ` [PATCH v5 2/4] eal/linux: increase uevent socket buffer Stephen Hemminger
2026-08-19 19:08     ` [PATCH v5 3/4] eal/linux: report uevent socket overrun Stephen Hemminger
2026-08-19 19:08     ` [PATCH v5 4/4] doc: add warning about control threads Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260819191036.679330-1-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=longli@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox