]> git.ipfire.org Git - thirdparty/linux.git/commit
Merge branch 'net-netdevsim-fix-inconsistent-carrier-state-after-link-unlink'
authorJakub Kicinski <kuba@kernel.org>
Wed, 7 Jan 2026 02:04:02 +0000 (18:04 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 Jan 2026 02:04:03 +0000 (18:04 -0800)
commit653267321f05316f159e05b3ef562aa700632db6
treec583be60cb6a191f2c8363139064db4572fdfc07
parent353cfc0ef3f34ef7fe313ae38dac37f2454a7cf5
parent75df712cddfd6c76e0e255584766385648ad9529
Merge branch 'net-netdevsim-fix-inconsistent-carrier-state-after-link-unlink'

Yohei Kojima says:

====================
net: netdevsim: fix inconsistent carrier state after link/unlink

This series fixes netdevsim's inconsistent behavior between carrier
and link/unlink state.

More specifically, this fixes a bug that the carrier goes DOWN although
two netdevsim were peered, depending on the order of peering and ifup.
Especially in a NetworkManager-enabled environment, netdevsim test fails
because of this.

The first patch fixes the bug itself in netdevsim/bus.c by adding
netif_carrier_on() into a proper function. The second patch adds a
regression test for this bug.
====================

Link: https://patch.msgid.link/cover.1767624906.git.yk@y-koj.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>