summaryrefslogtreecommitdiffstats
path: root/net/xdp/xsk_diag.c
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2020-05-20 21:20:59 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-05-21 17:31:27 -0700
commit39d6443c8daf9fefcfcf89de7ae87240956a0b84 (patch)
treee42dfb8274fa542b0e014ed8a68fd467516b8055 /net/xdp/xsk_diag.c
parent7117132b22538d24728295ffafa183a0a782fe03 (diff)
downloadlinux-39d6443c8daf9fefcfcf89de7ae87240956a0b84.tar.gz
linux-39d6443c8daf9fefcfcf89de7ae87240956a0b84.tar.bz2
linux-39d6443c8daf9fefcfcf89de7ae87240956a0b84.zip
mlx5, xsk: Migrate to new MEM_TYPE_XSK_BUFF_POOL
Use the new MEM_TYPE_XSK_BUFF_POOL API in lieu of MEM_TYPE_ZERO_COPY in mlx5e. It allows to drop a lot of code from the driver (which is now common in AF_XDP core and was related to XSK RX frame allocation, DMA mapping, etc.) and slightly improve performance (RX +0.8 Mpps, TX +0.4 Mpps). rfc->v1: Put back the sanity check for XSK params, use XSK API to get the total headroom size. (Maxim) v1->v2: Fix DMA address handling, set XDP metadata to invalid. (Maxim) v2->v3: Handle frame_sz, use xsk_buff_xdp_get_frame_dma, use xsk_buff API for DMA sync on TX, add performance numbers. (Maxim) v3->v4: Remove unused variable num_xsk_frames. (Jakub) Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200520192103.355233-12-bjorn.topel@gmail.com
Diffstat (limited to 'net/xdp/xsk_diag.c')
0 files changed, 0 insertions, 0 deletions