mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 05:35:16 +07:00
0a714186d3
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>
29 lines
533 B
Makefile
29 lines
533 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright(c) 2013 - 2018 Intel Corporation.
|
|
|
|
#
|
|
# Makefile for the Intel(R) Ethernet Connection XL710 (i40e.ko) driver
|
|
#
|
|
|
|
ccflags-y += -I$(src)
|
|
subdir-ccflags-y += -I$(src)
|
|
|
|
obj-$(CONFIG_I40E) += i40e.o
|
|
|
|
i40e-objs := i40e_main.o \
|
|
i40e_ethtool.o \
|
|
i40e_adminq.o \
|
|
i40e_common.o \
|
|
i40e_hmc.o \
|
|
i40e_lan_hmc.o \
|
|
i40e_nvm.o \
|
|
i40e_debugfs.o \
|
|
i40e_diag.o \
|
|
i40e_txrx.o \
|
|
i40e_ptp.o \
|
|
i40e_client.o \
|
|
i40e_virtchnl_pf.o \
|
|
i40e_xsk.o
|
|
|
|
i40e-$(CONFIG_I40E_DCB) += i40e_dcb.o i40e_dcb_nl.o
|