diff options
| author | Breno Leitao <leitao@debian.org> | 2025-10-14 12:17:25 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-10-16 03:43:17 +0300 |
| commit | 1a8fed52f7be14e45785e8e54d0d0b50fc17dbd8 (patch) | |
| tree | fc73d1f9b7642729e226254aeb40e73e97ffb0ea /drivers/cdx/controller/cdx_controller.c | |
| parent | cf51d617c3829bd85666380be348aed71a1c44df (diff) | |
| download | linux-1a8fed52f7be14e45785e8e54d0d0b50fc17dbd8.tar.xz | |
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 3762ec05a9fbda ("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: 3762ec05a9fbda ("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>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
