linux/drivers/net/netdevsim
Breno Leitao 1a8fed52f7 netdevsim: set the carrier when the device goes up
Bringing a linked netdevsim device down and then up causes communication
failure because both interfaces lack carrier. Basically a ifdown/ifup on
the interface make the link broken.

Commit 3762ec05a9 ("netdevsim: add NAPI support") added supported
for NAPI, calling netif_carrier_off() in nsim_stop(). This patch
re-enables the carrier symmetrically on nsim_open(), in case the device
is linked and the peer is up.

Signed-off-by: Breno Leitao <leitao@debian.org>
Fixes: 3762ec05a9 ("netdevsim: add NAPI support")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251014-netdevsim_fix-v2-1-53b40590dae1@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-15 17:43:17 -07:00
..
bpf.c
bus.c
dev.c
ethtool.c ethtool: add FEC bins histogram report 2025-09-26 16:49:18 -07:00
fib.c
health.c
hwstats.c
ipsec.c
macsec.c
Makefile netdevsim: a basic test PSP implementation 2025-09-30 15:17:21 +02:00
netdev.c netdevsim: set the carrier when the device goes up 2025-10-15 17:43:17 -07:00
netdevsim.h netdevsim: a basic test PSP implementation 2025-09-30 15:17:21 +02:00
psample.c
psp.c netdevsim: a basic test PSP implementation 2025-09-30 15:17:21 +02:00
udp_tunnels.c