summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorZijian Zhang <zijianzhang@bytedance.com>2024-11-07 01:25:15 +0300
committerMartin KaFai Lau <martin.lau@kernel.org>2024-11-07 03:01:53 +0300
commit523dffccbadea0cfd65f1ff04944b864c558c4a8 (patch)
treed24282e570044652d02f6df96ee63f70724a3a1f /tools/perf/scripts/python/net_dropmonitor.py
parent4095031463d4e99b534d2cd82035a417295764ae (diff)
downloadlinux-523dffccbadea0cfd65f1ff04944b864c558c4a8.tar.xz
selftests/bpf: Fix total_bytes in msg_loop_rx in test_sockmap
total_bytes in msg_loop_rx should also take push into account, otherwise total_bytes will be a smaller value, which makes the msg_loop_rx end early. Besides, total_bytes has already taken pop into account, so we don't need to subtract some bytes from iov_buf in sendmsg_test. The additional subtraction may make total_bytes a negative number, and msg_loop_rx will just end without checking anything. Fixes: 18d4e900a450 ("bpf: Selftests, improve test_sockmap total bytes counter") Fixes: d69672147faa ("selftests, bpf: Add one test for sockmap with strparser") Signed-off-by: Zijian Zhang <zijianzhang@bytedance.com> Reviewed-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/r/20241106222520.527076-4-zijianzhang@bytedance.com Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions