aboutsummaryrefslogtreecommitdiffstats
path: root/net/xdp/Makefile
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2020-05-20 21:20:49 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-05-21 17:31:26 -0700
commit44ac082b30dc2a05a7e23ed7e17b5f9513873386 (patch)
treec3a094687c7d6d0ebf5b5e437db42699deddea05 /net/xdp/Makefile
parentselftests/bpf: Convert bpf_iter_test_kern{3, 4}.c to define own bpf_iter_meta (diff)
downloadlinux-dev-44ac082b30dc2a05a7e23ed7e17b5f9513873386.tar.xz
linux-dev-44ac082b30dc2a05a7e23ed7e17b5f9513873386.zip
xsk: Fix xsk_umem_xdp_frame_sz()
Calculating the "data_hard_end" for an XDP buffer coming from AF_XDP zero-copy mode, the return value of xsk_umem_xdp_frame_sz() is added to "data_hard_start". Currently, the chunk size of the UMEM is returned by xsk_umem_xdp_frame_sz(). This is not correct, if the fixed UMEM headroom is non-zero. Fix this by returning the chunk_size without the UMEM headroom. Fixes: 2a637c5b1aaf ("xdp: For Intel AF_XDP drivers add XDP frame_sz") Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200520192103.355233-2-bjorn.topel@gmail.com
Diffstat (limited to 'net/xdp/Makefile')
0 files changed, 0 insertions, 0 deletions