diff options
author | Martin KaFai Lau <[email protected]> | 2023-03-27 17:42:32 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-03-28 09:50:49 +0200 |
commit | 580031ff9952b7dbf48dedba6b56a100ae002bef (patch) | |
tree | c66fe8f9677c8f2ea2c409fb7faca4ea6a07c41d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 45977e58ce65ed0459edc9a0466d9dfea09463f5 (diff) |
bpf: tcp: Use sock_gen_put instead of sock_put in bpf_iter_tcp
While reviewing the udp-iter batching patches, noticed the bpf_iter_tcp
calling sock_put() is incorrect. It should call sock_gen_put instead
because bpf_iter_tcp is iterating the ehash table which has the req sk
and tw sk. This patch replaces all sock_put with sock_gen_put in the
bpf_iter_tcp codepath.
Fixes: 04c7820b776f ("bpf: tcp: Bpf iter batching and lock_sock")
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions