]> git.baikalelectronics.ru Git - kernel.git/commit
net: refactor bpf_sk_reuseport_detach()
authorHawkins Jiawei <yin31149@gmail.com>
Fri, 5 Aug 2022 07:48:36 +0000 (15:48 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Aug 2022 04:48:04 +0000 (21:48 -0700)
commitf51104d2f2edee9bb7d664112b143f0a5d38d2dd
treea81b0a20c5193af4a84928ad6b4f21e3455c3c5f
parent51c34b34ac376316dd4b0ca76f02b46a5d2572d6
net: refactor bpf_sk_reuseport_detach()

Refactor sk_user_data dereference using more generic function
__rcu_dereference_sk_user_data_with_flags(), which improve its
maintainability

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
kernel/bpf/reuseport_array.c