diff options
author | Tushar Vyavahare <tushar.vyavahare@intel.com> | 2023-09-27 16:52:37 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-10-04 16:26:02 +0300 |
commit | 8913e653e9b8e08f15c2c25d1b7a6d897350985b (patch) | |
tree | d535601c54348839eb12749e358d11e00cb3950d /scripts/gdb | |
parent | 985fd2145a2932c9d7bda219271e3f453d4607ef (diff) | |
download | linux-8913e653e9b8e08f15c2c25d1b7a6d897350985b.tar.xz |
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 <tushar.vyavahare@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20230927135241.2287547-5-tushar.vyavahare@intel.com
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions