summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2020-11-27 20:17:26 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-12-01 01:00:26 +0300
commited1182dc004dbcc7cfe64fb0e8ac520b25431715 (patch)
treefafafc9c3d4d5e48f9fd276fa76fb6b4ea5e5078 /COPYING
parent4d521943f76bd0d1e68ea5e02df7aadd30b2838a (diff)
downloadlinux-ed1182dc004dbcc7cfe64fb0e8ac520b25431715.tar.xz
xdp: Handle MEM_TYPE_XSK_BUFF_POOL correctly in xdp_return_buff()
It turns out that it does exist a path where xdp_return_buff() is being passed an XDP buffer of type MEM_TYPE_XSK_BUFF_POOL. This path is when AF_XDP zero-copy mode is enabled, and a buffer is redirected to a DEVMAP with an attached XDP program that drops the buffer. This change simply puts the handling of MEM_TYPE_XSK_BUFF_POOL back into xdp_return_buff(). Fixes: 82c41671ca4f ("xdp: Simplify xdp_return_{frame, frame_rx_napi, buff}") Reported-by: Maxim Mikityanskiy <maximmi@nvidia.com> Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Maxim Mikityanskiy <maximmi@nvidia.com> Link: https://lore.kernel.org/bpf/20201127171726.123627-1-bjorn.topel@gmail.com
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions