]> 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)
commitad4a1bdd1358cc8094d09052d64251a351e30936
treea81b0a20c5193af4a84928ad6b4f21e3455c3c5f
parent61e6a86fc58f2d8ed862eb803f9f188bc6cc298e
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