Commit 185e5b8
net: introduce netdev_napi_exit()
After 1b23cdb ("net: protect netdev->napi_list with netdev_lock()")
it makes sense to iterate through dev->napi_list while holding
the device lock.
Also call synchronize_net() at most one time.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250117232113.1612899-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 12d5151 commit 185e5b8
1 file changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11568 | 11568 | | |
11569 | 11569 | | |
11570 | 11570 | | |
| 11571 | + | |
| 11572 | + | |
| 11573 | + | |
| 11574 | + | |
| 11575 | + | |
| 11576 | + | |
| 11577 | + | |
| 11578 | + | |
| 11579 | + | |
| 11580 | + | |
| 11581 | + | |
| 11582 | + | |
| 11583 | + | |
| 11584 | + | |
| 11585 | + | |
| 11586 | + | |
11571 | 11587 | | |
11572 | 11588 | | |
11573 | 11589 | | |
| |||
11579 | 11595 | | |
11580 | 11596 | | |
11581 | 11597 | | |
11582 | | - | |
11583 | | - | |
11584 | 11598 | | |
11585 | 11599 | | |
11586 | 11600 | | |
| |||
11602 | 11616 | | |
11603 | 11617 | | |
11604 | 11618 | | |
11605 | | - | |
11606 | | - | |
11607 | | - | |
11608 | | - | |
| 11619 | + | |
11609 | 11620 | | |
11610 | 11621 | | |
11611 | 11622 | | |
| |||
0 commit comments