[openSUSE/wicked] 03c3c7: bond: workaround 6.1 enslave regression (boo#1206674)

Branch: refs/heads/master Home: https://github.com/openSUSE/wicked Commit: 03c3c716f67874c5b97fd53155e91ceeeb49ed79 https://github.com/openSUSE/wicked/commit/03c3c716f67874c5b97fd53155e91ceeeb... Author: Marius Tomaschewski <mt@suse.de> Date: 2023-02-07 (Tue, 07 Feb 2023) Changed paths: M src/ifconfig.c Log Message: ----------- bond: workaround 6.1 enslave regression (boo#1206674) The kernel bonding accepts only enslave of interfaces in DOWN state and the bonding driver sets the slave UP itself after enslave, once it also inherited MTU, MAC address, ... to the slave as needed. All kernels between (at least) 4.12 up to 6.0 accepted to enslave using a single `ip link set down master bond0 dev eth0` rtnetlink message, which ensured that the (eth0) interface to enslave were set down if needed and wasn't rejected to enslave. Since kernel 6.1 (commit a4abfa627c3865c37e036bccb681619a50d3d93c) the enslave processing changed and the `down` flag in the enslave message is applied after enslave, causing that the UP flag added by enslave is removed again, the slave remains inactive and is not used by the bond, which remains in a no-carrier state. Changed to not pass the DOWN flag any more, but enslave only. Commit: 0ada1ece8a27c195b6b51d3ea649d66d4d2a8c08 https://github.com/openSUSE/wicked/commit/0ada1ece8a27c195b6b51d3ea649d66d4d... Author: cfconrad <cfamullaconrad@suse.com> Date: 2023-02-09 (Thu, 09 Feb 2023) Changed paths: M src/ifconfig.c Log Message: ----------- Merge pull request https://github.com/openSUSE/wicked/pull/952 bond: workaround 6.1 enslave regression (boo#1206674) Compare: https://github.com/openSUSE/wicked/compare/4af5d7576ece...0ada1ece8a27
participants (1)
-
cfconrad