diff options
| author | Kuniyuki Iwashima <[email protected]> | 2025-07-02 23:01:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-09 01:32:39 +0000 |
| commit | eb1ac9ff6c4a5720b1a1476233be374c5dc44bff (patch) | |
| tree | 0aec0ddcc7428bbc438e572b0bab7eb9e76f1562 /tools/testing/selftests/drivers/net/hw/rss_api.py | |
| parent | ipv6: anycast: Unify two error paths in ipv6_sock_ac_join(). (diff) | |
| download | kernel-eb1ac9ff6c4a5720b1a1476233be374c5dc44bff.tar.gz kernel-eb1ac9ff6c4a5720b1a1476233be374c5dc44bff.zip | |
ipv6: anycast: Don't hold RTNL for IPV6_JOIN_ANYCAST.
inet6_sk(sk)->ipv6_ac_list is protected by lock_sock().
In ipv6_sock_ac_join(), only __dev_get_by_index(), __dev_get_by_flags(),
and __in6_dev_get() require RTNL.
__dev_get_by_flags() is only used by ipv6_sock_ac_join() and can be
converted to RCU version.
Let's replace RCU version helper and drop RTNL from IPV6_JOIN_ANYCAST.
setsockopt_needs_rtnl() will be removed in the next patch.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/rss_api.py')
0 files changed, 0 insertions, 0 deletions
