diff options
| author | Lorenz Bauer <[email protected]> | 2020-03-09 11:12:34 +0000 | 
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-03-09 22:34:58 +0100 | 
| commit | d19da360ee0f3e6c1375391db1a724b66fd43312 (patch) | |
| tree | b21f3e34ff2a865b68592c282f2148040cde2494 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 1a2e20132db7bb76dd4f97b8364bd167227dd15f (diff) | |
bpf: tcp: Move assertions into tcp_bpf_get_proto
We need to ensure that sk->sk_prot uses certain callbacks, so that
code that directly calls e.g. tcp_sendmsg in certain corner cases
works. To avoid spurious asserts, we must to do this only if
sk_psock_update_proto has not yet been called. The same invariants
apply for tcp_bpf_check_v6_needs_rebuild, so move the call as well.
Doing so allows us to merge tcp_bpf_init and tcp_bpf_reinit.
Signed-off-by: Lorenz Bauer <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Jakub Sitnicki <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions