]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev/net: initialize coalesce tristate variables 20541/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 25 Aug 2021 18:34:23 +0000 (03:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 25 Aug 2021 18:36:18 +0000 (03:36 +0900)
Otherwise, 99-default.link may introduce something like the
following warnings:
----
Aug 26 03:23:59 systemd-udevd[519]: wlan0: Could not set coalesce settings, ignoring: Operation not supported
Aug 26 03:24:00 systemd-udevd[547]: wlp59s0: Could not set coalesce settings, ignoring: Operation not supported
----

Follow-up for 6c35ea5ef0231d519ff24d43a57a72cebab6a121.

src/udev/net/link-config.c

index 69f65143503484fa5e816a333c01245ff174042a..4963ba2fae81485e6995e533f2af7a2cbd3a166c 100644 (file)
@@ -142,6 +142,8 @@ int link_load_one(LinkConfigContext *ctx, const char *filename) {
                 .tx_flow_control = -1,
                 .autoneg_flow_control = -1,
                 .txqueuelen = UINT32_MAX,
+                .coalesce.use_adaptive_rx_coalesce = -1,
+                .coalesce.use_adaptive_tx_coalesce = -1,
         };
 
         for (i = 0; i < ELEMENTSOF(link->features); i++)