Re: [RFC PATCH bpf-next 11/12] i40e: implement AF_XDP zero-copy support for Rx

2018-05-15 Thread Alexander Duyck
On Tue, May 15, 2018 at 12:06 PM, Björn Töpel wrote: > From: Björn Töpel > > A lot of things here. First we add support for the new > XDP_SETUP_XSK_UMEM command in ndo_bpf. This allows the AF_XDP socket > to pass a UMEM to the driver. The driver will then DMA map all the > frames in the UMEM for

[RFC PATCH bpf-next 11/12] i40e: implement AF_XDP zero-copy support for Rx

2018-05-15 Thread Björn Töpel
From: Björn Töpel A lot of things here. First we add support for the new XDP_SETUP_XSK_UMEM command in ndo_bpf. This allows the AF_XDP socket to pass a UMEM to the driver. The driver will then DMA map all the frames in the UMEM for the driver. Next, the Rx code will allocate frames from the UMEM