]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkd-link.c
network/sysctl: round IPv6 MTU with the current device MTU rather than the maximum MTU
[thirdparty/systemd.git] / src / network / networkd-link.c
index a69402ee9fd3d2fd9889c8b3c04a28717a6064b8..61e0e16818e5e3c042529bfddd29b1212446465b 100644 (file)
@@ -1881,7 +1881,7 @@ static int link_admin_state_up(Link *link) {
 
         /* We set the ipv6 mtu after the device mtu, but the kernel resets
          * ipv6 mtu on NETDEV_UP, so we need to reset it. */
-        r = link_set_ipv6_mtu(link);
+        r = link_set_ipv6_mtu(link, LOG_INFO);
         if (r < 0)
                 log_link_warning_errno(link, r, "Cannot set IPv6 MTU, ignoring: %m");
 
@@ -2436,7 +2436,7 @@ static int link_update_mtu(Link *link, sd_netlink_message *message) {
 
         if (IN_SET(link->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED)) {
                 /* The kernel resets IPv6 MTU after changing device MTU. So, we need to re-set IPv6 MTU again. */
-                r = link_set_ipv6_mtu(link);
+                r = link_set_ipv6_mtu(link, LOG_INFO);
                 if (r < 0)
                         log_link_warning_errno(link, r, "Failed to set IPv6 MTU, ignoring: %m");
         }