aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2018-08-28 14:44:32 +0200
committerAlexei Starovoitov <ast@kernel.org>2018-08-29 12:25:53 -0700
commit0a714186d3c0f7c563a03537f98716457c1f5ae0 (patch)
tree88e7c8fa045cce01f5b5c4b7aa69ca0ed090aa87 /security
parenti40e: move common Rx functions to i40e_txrx_common.h (diff)
downloadlinux-dev-0a714186d3c0f7c563a03537f98716457c1f5ae0.tar.xz
linux-dev-0a714186d3c0f7c563a03537f98716457c1f5ae0.zip
i40e: add AF_XDP zero-copy Rx support
This patch adds zero-copy Rx support for AF_XDP sockets. Instead of allocating buffers of type MEM_TYPE_PAGE_SHARED, the Rx frames are allocated as MEM_TYPE_ZERO_COPY when AF_XDP is enabled for a certain queue. All AF_XDP specific functions are added to a new file, i40e_xsk.c. Note that when AF_XDP zero-copy is enabled, the XDP action XDP_PASS will allocate a new buffer and copy the zero-copy frame prior passing it to the kernel stack. Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions