Commit 9dd05df
committed
net: warn if NAPI instance wasn't shut down
Drivers should always disable a NAPI instance before removing it.
If they don't the instance may be queued for polling.
Since commit 86e25f4 ("net: napi: Add napi_config")
we also remove the NAPI from the busy polling hash table
in napi_disable(), so not disabling would leave a stale
entry there.
Use of busy polling is relatively uncommon so bugs may be lurking
in the drivers. Add an explicit warning.
Reviewed-by: Joe Damato <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent b565a8c commit 9dd05df
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7071 | 7071 | | |
7072 | 7072 | | |
7073 | 7073 | | |
| 7074 | + | |
| 7075 | + | |
| 7076 | + | |
7074 | 7077 | | |
7075 | 7078 | | |
7076 | 7079 | | |
| |||
0 commit comments