selftests/xsk: generate data for multi-buffer packets
authorMagnus Karlsson <magnus.karlsson@intel.com>
Tue, 16 May 2023 10:31:08 +0000 (12:31 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 17 May 2023 05:31:51 +0000 (22:31 -0700)
commit2f6eae0df1a80bb636f43f1b954678da0a10fa49
treecc7adc904b2d766daf602be43a5c2b259d3cc6e0
parent86e41755b43227858ef04b452c25b9dbcf667622
selftests/xsk: generate data for multi-buffer packets

Add the ability to generate data in the packets that are correct for
multi-buffer packets. The ethernet header should only go into the
first fragment followed by data and the others should only have
data. We also need to modify the pkt_dump function so that it knows
what fragment has an ethernet header so it can print this.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/r/20230516103109.3066-10-magnus.karlsson@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/xskxceiver.c