selftests/xsk: Move src_mac and dst_mac to the xsk_socket_info
authorTushar Vyavahare <tushar.vyavahare@intel.com>
Wed, 27 Sep 2023 13:52:36 +0000 (19:22 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 4 Oct 2023 13:26:01 +0000 (15:26 +0200)
commit985fd2145a2932c9d7bda219271e3f453d4607ef
tree6277baee7d3087cdbfded650213f5dcb1cd802c1
parent93ba112479070d9cd2445640b60f414178c3914c
selftests/xsk: Move src_mac and dst_mac to the xsk_socket_info

Move the src_mac and dst_mac fields from the ifobject structure to the
xsk_socket_info structure to achieve per-socket MAC address assignment.

Require this in order to steer traffic to various sockets in subsequent
patches.

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