diff options
| author | Lorenz Bauer <[email protected]> | 2020-03-09 11:12:32 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-03-09 22:34:58 +0100 |
| commit | 7b70973d7edb2f005511102d5a2e0116464a46a1 (patch) | |
| tree | ef6bdfbf69c5c495f1f1878eaf5000da0c0afa45 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 3e7c67d90e3ed2f34fce42699f11b150dd1d3999 (diff) | |
bpf: sockmap: Only check ULP for TCP sockets
The sock map code checks that a socket does not have an active upper
layer protocol before inserting it into the map. This requires casting
via inet_csk, which isn't valid for UDP sockets.
Guard checks for ULP by checking inet_sk(sk)->is_icsk first.
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/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions