selftests/xsk: Move pkt_stream to the xsk_socket_info
authorTushar Vyavahare <tushar.vyavahare@intel.com>
Wed, 27 Sep 2023 13:52:34 +0000 (19:22 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 4 Oct 2023 13:26:01 +0000 (15:26 +0200)
commit8367eb954e24f0842e42c0b21ddb4513e0e9a235
treec22a6ab229a32e52a8f5d4633d37b581471d80c4
parent2147c8d07e1abc8dfc3433ca18eed5295e230ede
selftests/xsk: Move pkt_stream to the xsk_socket_info

Move the packet stream from the ifobject struct to the xsk_socket_info
struct to enable the use of different streams for different sockets. This
will facilitate the sending and receiving of data from multiple sockets
simultaneously using the SHARED_XDP_UMEM feature.

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