selftests/xsk: Iterate over all the sockets in the send pkts function
authorTushar Vyavahare <tushar.vyavahare@intel.com>
Wed, 27 Sep 2023 13:52:39 +0000 (19:22 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 4 Oct 2023 13:26:02 +0000 (15:26 +0200)
commitfd0815ae9b8aa136c11dfa040740ca035e4602c0
tree6291ed7ed04e8e3d64f07d57e395b32dd6cbcef5
parent46e43786cc60b5816a71e1ff6244d91618f01d90
selftests/xsk: Iterate over all the sockets in the send pkts function

Update send_pkts() to handle multiple sockets for sending packets.
Multiple TX sockets are utilized alternately based on the batch size for
improve packet transmission.

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-7-tushar.vyavahare@intel.com
tools/testing/selftests/bpf/xskxceiver.c