diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-08-18 16:41:11 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-08-18 16:55:03 +0200 |
commit | 0d341eccef06cb27bb79064b92264a45e859192d (patch) | |
tree | fcc57567dc2ee19cb6741e3fd5cbc2b67825605a /src/udev | |
parent | bdbb61f69ff9f0d63f204a374c49ed3b2853ff5d (diff) | |
download | systemd-0d341eccef06cb27bb79064b92264a45e859192d.tar.gz |
udev: make RxChannels= or friends also accept "max"
Follow-up for 406041b7de767316674eb6a2f98ad466577ce8a4.
Also, this makes
- the settings accept an empty string,
- if the specified value is too large, also use the advertised maximum
value.
- mention the range of the value in the man page.
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/net/link-config-gperf.gperf | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/udev/net/link-config-gperf.gperf b/src/udev/net/link-config-gperf.gperf index e2f07d758b..d0190da5cb 100644 --- a/src/udev/net/link-config-gperf.gperf +++ b/src/udev/net/link-config-gperf.gperf @@ -58,15 +58,15 @@ Link.TCP6SegmentationOffload, config_parse_tristate, 0, Link.UDPSegmentationOffload, config_parse_warn_compat, DISABLED_LEGACY, 0 Link.GenericReceiveOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_GRO]) Link.LargeReceiveOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_LRO]) -Link.RxChannels, config_parse_channel, 0, offsetof(LinkConfig, channels) -Link.TxChannels, config_parse_channel, 0, offsetof(LinkConfig, channels) -Link.OtherChannels, config_parse_channel, 0, offsetof(LinkConfig, channels) -Link.CombinedChannels, config_parse_channel, 0, offsetof(LinkConfig, channels) +Link.RxChannels, config_parse_ring_buffer_or_channel, 0, offsetof(LinkConfig, channels.rx) +Link.TxChannels, config_parse_ring_buffer_or_channel, 0, offsetof(LinkConfig, channels.tx) +Link.OtherChannels, config_parse_ring_buffer_or_channel, 0, offsetof(LinkConfig, channels.other) +Link.CombinedChannels, config_parse_ring_buffer_or_channel, 0, offsetof(LinkConfig, channels.combined) Link.Advertise, config_parse_advertise, 0, offsetof(LinkConfig, advertise) -Link.RxBufferSize, config_parse_nic_buffer_size, 0, offsetof(LinkConfig, ring) -Link.RxMiniBufferSize, config_parse_nic_buffer_size, 0, offsetof(LinkConfig, ring) -Link.RxJumboBufferSize, config_parse_nic_buffer_size, 0, offsetof(LinkConfig, ring) -Link.TxBufferSize, config_parse_nic_buffer_size, 0, offsetof(LinkConfig, ring) +Link.RxBufferSize, config_parse_ring_buffer_or_channel, 0, offsetof(LinkConfig, ring.rx) +Link.RxMiniBufferSize, config_parse_ring_buffer_or_channel, 0, offsetof(LinkConfig, ring.rx_mini) +Link.RxJumboBufferSize, config_parse_ring_buffer_or_channel, 0, offsetof(LinkConfig, ring.rx_jumbo) +Link.TxBufferSize, config_parse_ring_buffer_or_channel, 0, offsetof(LinkConfig, ring.tx) Link.RxFlowControl, config_parse_tristate, 0, offsetof(LinkConfig, rx_flow_control) Link.TxFlowControl, config_parse_tristate, 0, offsetof(LinkConfig, tx_flow_control) Link.AutoNegotiationFlowControl, config_parse_tristate, 0, offsetof(LinkConfig, autoneg_flow_control) |