summaryrefslogtreecommitdiffstats
path: root/net/xdp
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2021-09-22 09:56:05 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2021-09-28 00:18:35 +0200
commit6aab0bb0c5cdc02d6f182ada2d86afae0c22fc76 (patch)
treefa500dd2d34c7db93b6dcb3004596c3455ba3a92 /net/xdp
parentdb804cfc21e969a5a4ada4b8142f711def5ed339 (diff)
downloadlinux-6aab0bb0c5cdc02d6f182ada2d86afae0c22fc76.tar.gz
linux-6aab0bb0c5cdc02d6f182ada2d86afae0c22fc76.tar.bz2
linux-6aab0bb0c5cdc02d6f182ada2d86afae0c22fc76.zip
i40e: Use the xsk batched rx allocation interface
Use the new xsk batched rx allocation interface for the zero-copy data path. As the array of struct xdp_buff pointers kept by the driver is really a ring that wraps, the allocation routine is modified to detect a wrap and in that case call the allocation function twice. The allocation function cannot deal with wrapped rings, only arrays. As we now know exactly how many buffers we get and that there is no wrapping, the allocation function can be simplified even more as all if-statements in the allocation loop can be removed, improving performance. Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20210922075613.12186-6-magnus.karlsson@gmail.com
Diffstat (limited to 'net/xdp')
0 files changed, 0 insertions, 0 deletions