diff options
author | Lorenz Bauer <lmb@cloudflare.com> | 2020-03-09 11:12:33 +0000 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-03-09 22:34:58 +0100 |
commit | 1a2e20132db7bb76dd4f97b8364bd167227dd15f (patch) | |
tree | f8428f3a74bf1039a1acb7d63ed6a601eb660461 /net/core/sock_map.c | |
parent | 7b70973d7edb2f005511102d5a2e0116464a46a1 (diff) | |
download | lwn-1a2e20132db7bb76dd4f97b8364bd167227dd15f.tar.gz lwn-1a2e20132db7bb76dd4f97b8364bd167227dd15f.zip |
skmsg: Update saved hooks only once
Only update psock->saved_* if psock->sk_proto has not been initialized
yet. This allows us to get rid of tcp_bpf_reinit_sk_prot.
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-3-lmb@cloudflare.com
Diffstat (limited to 'net/core/sock_map.c')
0 files changed, 0 insertions, 0 deletions