Jakub Kicinski [off-list ref] :
Wrap napi_enable() / napi_disable() with netdev_lock().
Provide the "already locked" flavor of the API"
iavf needs the usual adjustment. A number of drivers call
napi_enable() under a spin lock, so they have to be modified
to take netdev_lock() first, then spin lock then call
napi_enable_locked().
Protecting napi_enable() implies that napi->napi_id is protected
by netdev_lock().
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
[...]
---
include/linux/netdevice.h | 11 ++----
drivers/net/ethernet/amd/pcnet32.c | 11 +++++-
drivers/net/ethernet/intel/iavf/iavf_main.c | 4 +-
drivers/net/ethernet/marvell/mvneta.c | 5 ++-
drivers/net/ethernet/via/via-velocity.c | 4 +-
For the via-velocity part:
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
--
Ueimor