diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-01-14 19:53:13 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-01-15 19:13:34 -0800 |
commit | 1b23cdbd2bbc4b40e21c12ae86c2781e347ff0f8 (patch) | |
tree | b7850b8a31313cd675088a784039fc236d308756 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5112457f3d8e41f987908266068af88ef9f3ab78 (diff) |
net: protect netdev->napi_list with netdev_lock()
Hold netdev->lock when NAPIs are getting added or removed.
This will allow safe access to NAPI instances of a net_device
without rtnl_lock.
Create a family of helpers which assume the lock is already taken.
Switch iavf to them, as it makes extensive use of netdev->lock,
already.
Reviewed-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250115035319.559603-6-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions