All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] net: netdevsim: fix inconsistent carrier state after link/unlink
@ 2025-12-30 16:03 yk
  2025-12-30 16:03 ` [PATCH net v2 1/2] " yk
  2025-12-30 16:03 ` [PATCH net v2 2/2] selftests: netdevsim: add carrier state consistency test yk
  0 siblings, 2 replies; 7+ messages in thread
From: yk @ 2025-12-30 16:03 UTC (permalink / raw)
  To: Jakub Kicinski, Andrew Lunn, netdev
  Cc: Yohei Kojima, David S. Miller, Eric Dumazet, Paolo Abeni,
	Shuah Khan, Breno Leitao, linux-kernel, linux-kselftest

From: Yohei Kojima <yk@y-koj.net>

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.

Changelog
=========
v1 -> v2
- Rebase to the latest net/main
- Separate TFO tests from this series
- Separate netdevsim test improvement from this series
- v1: https://lore.kernel.org/netdev/cover.1767032397.git.yk@y-koj.net/

Yohei Kojima (2):
  net: netdevsim: fix inconsistent carrier state after link/unlink
  selftests: netdevsim: add carrier state consistency test

 drivers/net/netdevsim/bus.c                   |  6 ++
 .../selftests/drivers/net/netdevsim/peer.sh   | 63 +++++++++++++++++++
 2 files changed, 69 insertions(+)

-- 
2.51.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-01-05 15:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-30 16:03 [PATCH net v2 0/2] net: netdevsim: fix inconsistent carrier state after link/unlink yk
2025-12-30 16:03 ` [PATCH net v2 1/2] " yk
2025-12-31 10:16   ` Breno Leitao
2025-12-31 16:06     ` Yohei Kojima
2026-01-04 18:54   ` Jakub Kicinski
2026-01-05 15:36     ` Yohei Kojima
2025-12-30 16:03 ` [PATCH net v2 2/2] selftests: netdevsim: add carrier state consistency test yk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.