]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: Add comment for setting_mtu #7460 (#7489)
authorSusant Sahani <145210+ssahani@users.noreply.github.com>
Tue, 28 Nov 2017 16:24:52 +0000 (21:54 +0530)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Nov 2017 16:24:52 +0000 (17:24 +0100)
Follow up #7460

src/network/networkd-link.c

index 0494ee3d44578a6b8973d00f54cc9d66b684f59a..473bd420d4fa81f8b897df3323e6719450daae74 100644 (file)
@@ -3108,6 +3108,9 @@ static int link_carrier_lost(Link *link) {
 
         assert(link);
 
+        /* Some devices reset itself while setting the MTU. This causes the DHCP client fall into a loop.
+           setting_mtu keep track whether the device got reset because of setting MTU and does not drop the
+           configuration and stop the clients as well. */
         if (link->setting_mtu)
                 return 0;