network: drop meaningless condition about setting MTU

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.
This commit is contained in:
Yu Watanabe
2021-06-08 06:33:27 +09:00
parent b9bf3f22a8
commit 793117b3fd
-6
View 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);