[Intel-wired-lan] [PATCH v2 3/5] ixgbe: add AF_XDP zero-copy Rx support
William Tu
u9012063 at gmail.com
Tue Oct 2 18:26:24 UTC 2018
On Tue, Oct 2, 2018 at 1:01 AM Björn Töpel <bjorn.topel at gmail.com> wrote:
>
> From: Björn Töpel <bjorn.topel at 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.topel at intel.com>
> ---
Thanks!
Tested-by: William Tu <u9012063 at 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
>
More information about the Intel-wired-lan
mailing list