On Tue, Oct 2, 2018 at 1:01 AM Björn Töpel <bjorn.to...@gmail.com> wrote: > > From: Björn Töpel <bjorn.to...@intel.com> > > 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, ixgbe_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.to...@intel.com> > ---
Thanks! Tested-by: William Tu <u9012...@gmail.com> > drivers/net/ethernet/intel/ixgbe/Makefile | 3 +- > drivers/net/ethernet/intel/ixgbe/ixgbe.h | 27 +- > drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c | 17 +- > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 78 ++- > .../ethernet/intel/ixgbe/ixgbe_txrx_common.h | 15 + > drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 628 ++++++++++++++++++ > 6 files changed, 747 insertions(+), 21 deletions(-) > create mode 100644 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c >