aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorMagnus Karlsson <[email protected]>2023-05-16 10:31:07 +0000
committerAlexei Starovoitov <[email protected]>2023-05-17 05:31:51 +0000
commit86e41755b43227858ef04b452c25b9dbcf667622 (patch)
tree3621d8a2076ec951d3beb2db708685890a307e91 /tools/bpf/bpftool/prog.c
parentselftests/xsx: test for huge pages only once (diff)
downloadkernel-86e41755b43227858ef04b452c25b9dbcf667622.tar.gz
kernel-86e41755b43227858ef04b452c25b9dbcf667622.zip
selftests/xsk: populate fill ring based on frags needed
Populate the fill ring based on the number of frags a packet needs. With multi-buffer support, a packet might require more than a single fragment/buffer, so the function xsk_populate_fill_ring() needs to consider how many buffers a packet will consume, and put that many buffers on the fill ring for each packet it should receive. As we are still not sending any multi-buffer packets, the function will only produce one buffer per packet at the moment. Signed-off-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions