From: Yu Watanabe Date: Wed, 20 Jan 2021 06:29:56 +0000 (+0900) Subject: udev: rename TxQueueLength= -> TransmitQueueLength= X-Git-Tag: v248-rc1~218^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f8dc96c06ead4f9bd88e82a8e91ecdeaec4ae04;p=thirdparty%2Fsystemd.git udev: rename TxQueueLength= -> TransmitQueueLength= As we usually (unfortunately not always though) do not use abbreviations. Tx may be standard abbreviation, but we already have e.g. TransmitChecksumOffload=. So, let's use Transmit instead of Tx. Follow-up for ef4a91a7e8d8337a9d65177b09eb7580b25b8f5d. --- diff --git a/man/systemd.link.xml b/man/systemd.link.xml index 0b7055bf591..9fefb0c372c 100644 --- a/man/systemd.link.xml +++ b/man/systemd.link.xml @@ -410,7 +410,7 @@ - TxQueueLength= + TransmitQueueLength= Specifies the transmit queue length of the device in number of packets. An unsigned integer in the range 0…4294967294. When unset, the kernel's default will be used. diff --git a/src/udev/net/link-config-gperf.gperf b/src/udev/net/link-config-gperf.gperf index 1dff9ac8b38..e7abd2d4369 100644 --- a/src/udev/net/link-config-gperf.gperf +++ b/src/udev/net/link-config-gperf.gperf @@ -41,7 +41,7 @@ Link.Name, config_parse_ifname, 0, Link.AlternativeName, config_parse_ifnames, IFNAME_VALID_ALTERNATIVE, offsetof(link_config, alternative_names) Link.AlternativeNamesPolicy, config_parse_alternative_names_policy, 0, offsetof(link_config, alternative_names_policy) Link.Alias, config_parse_ifalias, 0, offsetof(link_config, alias) -Link.TxQueueLength, config_parse_txqueuelen, 0, offsetof(link_config, txqueuelen) +Link.TransmitQueueLength, config_parse_txqueuelen, 0, offsetof(link_config, txqueuelen) Link.MTUBytes, config_parse_mtu, AF_UNSPEC, offsetof(link_config, mtu) Link.BitsPerSecond, config_parse_si_uint64, 0, offsetof(link_config, speed) Link.Duplex, config_parse_duplex, 0, offsetof(link_config, duplex) diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index dbd804ce764..baad48b43b5 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -430,7 +430,7 @@ static int link_config_apply_rtnl_settings(sd_netlink **rtnl, const link_config r = rtnl_set_link_properties(rtnl, ifindex, config->alias, mac, config->txqueuelen, config->mtu, config->gso_max_size, config->gso_max_segments); if (r < 0) - log_device_warning_errno(device, r, "Could not set Alias=, MACAddress=, TxQueueLength=, MTU=, " + log_device_warning_errno(device, r, "Could not set Alias=, MACAddress=, TransmitQueueLength=, MTU=, " "GenericSegmentOffloadMaxBytes= or GenericSegmentOffloadMaxSegments=, ignoring: %m"); return 0; diff --git a/test/fuzz/fuzz-link-parser/directives.link b/test/fuzz/fuzz-link-parser/directives.link index a94573bdd65..de11d08ea1f 100644 --- a/test/fuzz/fuzz-link-parser/directives.link +++ b/test/fuzz/fuzz-link-parser/directives.link @@ -20,7 +20,7 @@ Name= AlternativeNamesPolicy= AlternativeName= Alias= -TxQueueLength= +TransmitQueueLength= MTUBytes= BitsPerSecond= Duplex=