Re: [PATCH 3/5] ixgbe: add AF_XDP zero-copy Rx support

2018-09-26 Thread Björn Töpel
Den tis 25 sep. 2018 kl 16:57 skrev Jakub Kicinski : > > On Mon, 24 Sep 2018 18:35:55 +0200, Björn Töpel wrote: > > + if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) > > + return -EINVAL; > > + > > + if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) > > + return -EINVAL; >

Re: [PATCH 3/5] ixgbe: add AF_XDP zero-copy Rx support

2018-09-25 Thread Jakub Kicinski
On Mon, 24 Sep 2018 18:35:55 +0200, Björn Töpel wrote: > + if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) > + return -EINVAL; > + > + if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) > + return -EINVAL; Hm, should you add UMEM checks to all the places these may get enab

[PATCH 3/5] ixgbe: add AF_XDP zero-copy Rx support

2018-09-24 Thread Björn Töpel
From: Björn Töpel 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.