]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: drop meaningless condition about setting MTU
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 24 May 2021 05:53:05 +0000 (14:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 7 Jun 2021 21:33:27 +0000 (06:33 +0900)
The condition does not fix infinite loop of interface reset, as the
interface is reset after netlink reply is received, thus setting_mtu is
false.

See also #18738.

src/network/networkd-link.c

index 74a73419d6f465cd1385877a222de7571036b532..13faa26b2a08ef405b2dae1f244f276052984e4c 100644 (file)
@@ -2815,12 +2815,6 @@ static int link_carrier_lost(Link *link) {
                 /* let's shortcut things for CAN which doesn't need most of what's done below. */
                 return link_handle_bound_by_list(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;
-
         r = link_stop_engines(link, false);
         if (r < 0) {
                 link_enter_failed(link);