diff options
| author | Tushar Vyavahare <[email protected]> | 2023-12-14 13:00:07 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-12-14 16:11:13 +0100 |
| commit | 2e1d6a04116c373fbd25beddba4267178535bc60 (patch) | |
| tree | 66ed3a51fb09661b55276001751737d0424961a8 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | c838fe1282df540ebf6e24e386ac34acb3ef3115 (diff) | |
selftests/xsk: Fix for SEND_RECEIVE_UNALIGNED test
Fix test broken by shared umem test and framework enhancement commit.
Correct the current implementation of pkt_stream_replace_half() by
ensuring that nb_valid_entries are not set to half, as this is not true
for all the tests. Ensure that the expected value for valid_entries for
the SEND_RECEIVE_UNALIGNED test equals the total number of packets sent,
which is 4096.
Create a new function called pkt_stream_pkt_set() that allows for packet
modification to meet specific requirements while ensuring the accurate
maintenance of the valid packet count to prevent inconsistencies in packet
tracking.
Fixes: 6d198a89c004 ("selftests/xsk: Add a test for shared umem feature")
Reported-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Tushar Vyavahare <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Maciej Fijalkowski <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions