]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: add MEM_TYPE_ZERO_COPY
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 4 Jun 2018 12:05:54 +0000 (14:05 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 5 Jun 2018 13:46:26 +0000 (15:46 +0200)
commitb1b156054013c91b251cacf90e2edb2ce3f3960a
tree6d7665f8ddb9640c9aade3e3cbf3cb5b1e099c60
parentd2f396fa144e1feba6a60527c112e3191148da69
xdp: add MEM_TYPE_ZERO_COPY

Here, a new type of allocator support is added to the XDP return
API. A zero-copy allocated xdp_buff cannot be converted to an
xdp_frame. Instead is the buff has to be copied. This is not supported
at all in this commit.

Also, an opaque "handle" is added to xdp_buff. This can be used as a
context for the zero-copy allocator implementation.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/net/xdp.h
net/core/xdp.c