diff options
| author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2026-05-28 20:34:52 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-03 05:13:18 +0300 |
| commit | e23d7c8c1d4ba435c457d7ffb2669175ec819b07 (patch) | |
| tree | af7fc619f288a4a752fbe13ca52a1f50668fde0d /include/linux/netdev_features.h | |
| parent | 9111f02861175854bcbd1d7ca4fff9d2b48bac62 (diff) | |
| download | linux-e23d7c8c1d4ba435c457d7ffb2669175ec819b07.tar.xz | |
dpaa2-switch: fix handling of NAPI on the remove path
All the NAPI instances for a DPSW device are attached to the first
switch port's net_device but shared by all ports. The NAPI instances get
disabled only once the last port goes down.
This causes an issue on the .remove() path where each port is
unregistered and freed one at a time, causing the NAPI instances to be
deleted even though they are not disabled.
In order to avoid this, split up the unregister_netdev() calls from the
free_netdev() so that we make sure all ports go down before we attempt
a deletion of NAPI instances. Also, make the netif_napi_del() explicit
as it is on the .probe() path.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://patch.msgid.link/20260528173452.1953102-6-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/netdev_features.h')
0 files changed, 0 insertions, 0 deletions
