]> git.ipfire.org Git - thirdparty/systemd.git/commit
udevd: Add ReceivePacketSteeringCPUMask for systemd.link
authorRenjaya Raga Zenta <ragazenta@gmail.com>
Tue, 13 Feb 2024 14:15:24 +0000 (21:15 +0700)
committerRenjaya Raga Zenta <ragazenta@gmail.com>
Wed, 28 Feb 2024 04:35:36 +0000 (11:35 +0700)
commit0f30bf5886f839984df545df74e9658daf3533d2
treefdbfdcbb7895f8203080d668d3f2f9dc93bf0ca6
parent815fce2c35b509f960c5beb63f58099d99534e68
udevd: Add ReceivePacketSteeringCPUMask for systemd.link

Takes a list of CPU indices or ranges separated by either whitespace or commas. Alternatively,
takes the special value "all" in which will include all available CPUs in the mask.
CPU ranges are specified by the lower and upper CPU indices separated by a dash (e.g. "2-6").
This option may be specified more than once, in which case the specified CPU affinity masks are merged.
If an empty string is assigned, the mask is reset, all assignments prior to this will have no effect.
Defaults to unset and RPS CPU list is unchanged. To disable RPS when it was previously enabled, use the
special value "disable".

Currently, this will set CPU mask to all `rx` queue of matched device (if it has multiple queues).

The `/sys/class/net/<dev>/queues/rx-<n>/rps_cpus` only accept cpu bitmap mask in hexadecimal.

Fix: #30323
man/systemd.link.xml
src/shared/cpu-set-util.c
src/shared/cpu-set-util.h
src/test/test-cpu-set-util.c
src/udev/net/link-config-gperf.gperf
src/udev/net/link-config.c
src/udev/net/link-config.h