diff options
author | 2023-05-16 12:31:07 +0200 | |
---|---|---|
committer | 2023-05-16 22:31:51 -0700 | |
commit | 86e41755b43227858ef04b452c25b9dbcf667622 (patch) | |
tree | 3621d8a2076ec951d3beb2db708685890a307e91 /kernel/bpf/log.c | |
parent | selftests/xsx: test for huge pages only once (diff) | |
download | wireguard-linux-86e41755b43227858ef04b452c25b9dbcf667622.tar.xz wireguard-linux-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 <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 'kernel/bpf/log.c')
0 files changed, 0 insertions, 0 deletions