network: automatically determine timeout of waiting for carrier regain
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Mar 2022 15:52:09 +0000 (00:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 31 Mar 2022 00:29:42 +0000 (09:29 +0900)
commitb732606950f8726c0280080c7d055a714c2888f5
tree353657948ee91663e518683004127cb459737bbb
parenta14b9ca2c38ddf55bf22b0103e3bae361bf9b8fc
network: automatically determine timeout of waiting for carrier regain

The commit 6706ce2fd2a13df0ae5e469b72d688eaf643dac4 made
IgnoreCarrierLoss= setting also take timespan, to make users handle
issues like #18738 or #20887. But still users needed to explicitly set
a timespan.

This makes networkd automatically determine the timeout when the
situations #18738 or #19832 is detected. Unfortunately, still users have
issue #20887 need to specify a value.

Closes #19832.
man/systemd.network.xml
src/network/networkd-link.c