]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: rename TxQueueLength= -> TransmitQueueLength=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 20 Jan 2021 06:29:56 +0000 (15:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Feb 2021 05:43:49 +0000 (14:43 +0900)
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.

man/systemd.link.xml
src/udev/net/link-config-gperf.gperf
src/udev/net/link-config.c
test/fuzz/fuzz-link-parser/directives.link

index 0b7055bf591a948401b30626d1f848332ca7506b..9fefb0c372c91fb228a1d7b9e9f139c4db674ebe 100644 (file)
         </listitem>
       </varlistentry>
       <varlistentry>
-        <term><varname>TxQueueLength=</varname></term>
+        <term><varname>TransmitQueueLength=</varname></term>
         <listitem>
           <para>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.</para>
index 1dff9ac8b38696be2c54e502de8d22bba1e66fa4..e7abd2d436929a80257c7ce8d3c0ea35f2d749be 100644 (file)
@@ -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)
index dbd804ce7644bf439e2e93971a669441523442a3..baad48b43b5f89e371288fdef3cd4ecf402fbf35 100644 (file)
@@ -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;
index a94573bdd651b534e799be9148343a0f53b287e9..de11d08ea1f51db1452e245bff23b778dbed322b 100644 (file)
@@ -20,7 +20,7 @@ Name=
 AlternativeNamesPolicy=
 AlternativeName=
 Alias=
-TxQueueLength=
+TransmitQueueLength=
 MTUBytes=
 BitsPerSecond=
 Duplex=