]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: introduce netdev_napi_exit()
authorEric Dumazet <edumazet@google.com>
Fri, 17 Jan 2025 23:21:13 +0000 (23:21 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 19 Jan 2025 01:41:21 +0000 (17:41 -0800)
commit185e5b869071812bcb278cf0973b8a7bbce0dc27
tree0d8983a671132a8b35b4438fca48c2d3ac75f3c3
parent12d5151be01017401b8d2681f3c975265a233eaf
net: introduce netdev_napi_exit()

After 1b23cdbd2bbc ("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>
net/core/dev.c