diff options
author | Tushar Vyavahare <[email protected]> | 2023-09-27 19:22:37 +0530 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-10-04 15:26:02 +0200 |
commit | 8913e653e9b8e08f15c2c25d1b7a6d897350985b (patch) | |
tree | d535601c54348839eb12749e358d11e00cb3950d /tools/perf/scripts/python/libxed.py | |
parent | 985fd2145a2932c9d7bda219271e3f453d4607ef (diff) |
selftests/xsk: Iterate over all the sockets in the receive pkts function
Improve the receive_pkt() function to enable it to receive packets from
multiple sockets. Define a sock_num variable to iterate through all the
sockets in the Rx path. Add nb_valid_entries to check that all the
expected number of packets are received.
Revise the function __receive_pkts() to only inspect the receive ring
once, handle any received packets, and promptly return. Implement a bitmap
to store the value of number of sockets. Update Makefile to include
find_bit.c for compiling xskxceiver.
Signed-off-by: Tushar Vyavahare <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions