commit | cb21802b39632ba1fa9b31ea134d2079a47600ef | [log] [tgz] |
---|---|---|
author | Lorenz Bauer <lmb@cloudflare.com> | Mon Mar 09 11:12:37 2020 +0000 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Mon Mar 09 22:34:58 2020 +0100 |
tree | f136611115fda88b630e6b8f3ad0363665eb61a6 | |
parent | f747632b608f90217a4e9ebb1deba8a37612aa32 [diff] |
bpf: sockmap: Simplify sock_map_init_proto We can take advantage of the fact that both callers of sock_map_init_proto are holding a RCU read lock, and have verified that psock is valid. Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20200309111243.6982-7-lmb@cloudflare.com