]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: Support "max" string for BufferSize options (#20458)
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 18 Aug 2021 06:59:13 +0000 (07:59 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Aug 2021 06:59:13 +0000 (15:59 +0900)
commit406041b7de767316674eb6a2f98ad466577ce8a4
tree8b98dda5408551a51b266a65540cb6aed6f6f192
parent91546abf9e2aa07345fc7fd7260010edc4e21c2a
udev: Support "max" string for BufferSize options (#20458)

"max" indicates the hardware advertised maximum queue buffer size
should be used.

The max sizes can be checked by running `ethtool -g <dev>` (Preset maximums).
Since the buffer sizes can't be set to 0 by users, internally we use 0 to
indicate that the hardware advertised maximum should be used.
man/systemd.link.xml
src/shared/ethtool-util.c
src/shared/ethtool-util.h