diff options
author | Xu Kuohai <[email protected]> | 2023-08-04 03:37:38 -0400 |
---|---|---|
committer | Martin KaFai Lau <[email protected]> | 2023-08-09 20:29:02 -0700 |
commit | 809e4dc71a0f2b8d2836035d98603694fff11d5d (patch) | |
tree | fdf0084d2ad5413f90c4c28314df01f039ea7e87 /tools/perf/scripts/python/task-analyzer.py | |
parent | 7e96ec0e6605b69bb21bbf6c0ff9051e656ec2b1 (diff) |
bpf, sockmap: Fix bug that strp_done cannot be called
strp_done is only called when psock->progs.stream_parser is not NULL,
but stream_parser was set to NULL by sk_psock_stop_strp(), called
by sk_psock_drop() earlier. So, strp_done can never be called.
Introduce SK_PSOCK_RX_ENABLED to mark whether there is strp on psock.
Change the condition for calling strp_done from judging whether
stream_parser is set to judging whether this flag is set. This flag is
only set once when strp_init() succeeds, and will never be cleared later.
Fixes: c0d95d3380ee ("bpf, sockmap: Re-evaluate proto ops when psock is removed from sockmap")
Signed-off-by: Xu Kuohai <[email protected]>
Reviewed-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions