diff options
author | 2023-08-04 03:37:40 -0400 | |
---|---|---|
committer | 2023-08-09 20:29:02 -0700 | |
commit | a4b7193d8efdfde1ea89fe34e921ad031f79f993 (patch) | |
tree | 5188bd27455f49c34221d319c22a48351950de8c /tools/perf/scripts/python/syscall-counts.py | |
parent | selftests/bpf: fix a CI failure caused by vsock sockmap test (diff) | |
download | wireguard-linux-a4b7193d8efdfde1ea89fe34e921ad031f79f993.tar.xz wireguard-linux-a4b7193d8efdfde1ea89fe34e921ad031f79f993.zip |
selftests/bpf: Add sockmap test for redirecting partial skb data
Add a test case to check whether sockmap redirection works correctly
when data length returned by stream_parser is less than skb->len.
In addition, this test checks whether strp_done is called correctly.
The reason is that we returns skb->len - 1 from the stream_parser, so
the last byte in the skb will be held by strp->skb_head. Therefore,
if strp_done is not called to free strp->skb_head, we'll get a memleak
warning.
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Link: https://lore.kernel.org/r/20230804073740.194770-5-xukuohai@huaweicloud.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions