diff options
author | Cong Wang <cong.wang@bytedance.com> | 2024-12-10 04:20:38 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-12-20 19:59:47 +0300 |
commit | 54f89b3178d5448dd4457afbb98fc1ab99090a65 (patch) | |
tree | db313b7069a0cf84afe847dfdb5dccd49b98da70 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 716f2bca1ce93bb95364f1fc0555c1650507b588 (diff) | |
download | linux-54f89b3178d5448dd4457afbb98fc1ab99090a65.tar.xz |
tcp_bpf: Charge receive socket buffer in bpf_tcp_ingress()
When bpf_tcp_ingress() is called, the skmsg is being redirected to the
ingress of the destination socket. Therefore, we should charge its
receive socket buffer, instead of sending socket buffer.
Because sk_rmem_schedule() tests pfmemalloc of skb, we need to
introduce a wrapper and call it for skmsg.
Fixes: 604326b41a6f ("bpf, sockmap: convert to generic sk_msg interface")
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20241210012039.1669389-2-zijianzhang@bytedance.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions