diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2023-05-16 12:31:07 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-05-16 22:31:51 -0700 |
commit | 86e41755b43227858ef04b452c25b9dbcf667622 (patch) | |
tree | 3621d8a2076ec951d3beb2db708685890a307e91 /tools/bpf/bpftool/prog.c | |
parent | 041b68f688a38865434d7b8fbfe64beb03e54ff2 (diff) |
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 <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/r/20230516103109.3066-9-magnus.karlsson@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions