]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev/net: add IRQAffinityNUMA= option for NUMA-aware filtering
authorQuentin Deslandes <qde@naccy.de>
Mon, 16 Feb 2026 19:43:37 +0000 (20:43 +0100)
committerQuentin Deslandes <qde@naccy.de>
Wed, 20 May 2026 09:39:11 +0000 (11:39 +0200)
commit7dfbbfb90dd162ce14d94a4a18a5856235c3fac2
tree70fcef7e45bc9519152c356a71e077e10b4c9ef3
parenta9e821549bc757ed34b3f6dd7aee0997be126e1e
udev/net: add IRQAffinityNUMA= option for NUMA-aware filtering

Add support for filtering IRQ affinity to CPUs on a specific NUMA node
via the new IRQAffinityNUMA= option in .link files. The option accepts:
- "local": use the NUMA node local to the NIC's PCIe slot
- Explicit node number (0, 1, 2, ...): use CPUs on the specified node

When both IRQAffinity= and IRQAffinityNUMA= are specified, their
intersection is used. If the intersection is empty, an error is logged
and IRQ affinity configuration is skipped.

When "local" is specified but the device's NUMA node cannot be
determined (numa_node shows -1), a warning is logged and IRQ affinity
configuration is skipped.
src/shared/numa-util.c
src/shared/numa-util.h
src/udev/net/link-config-gperf.gperf
src/udev/net/link-config.c
src/udev/net/link-config.h
test/units/TEST-17-UDEV.irq-affinity.sh