Re: [bpf-next RFCv2 1/3] xsk: add xsk_umem_consume_tx_virtual.

2018-12-21 Thread William Tu
On Thu, Dec 20, 2018 at 11:48 AM Björn Töpel wrote: > > Den ons 19 dec. 2018 kl 01:55 skrev William Tu : > > > > Currently the xsk_umem_consume_tx expects only the physical NICs so > > the api returns a dma address. This patch introduce the new function > > to return the virtual address, when XSK

Re: [bpf-next RFCv2 1/3] xsk: add xsk_umem_consume_tx_virtual.

2018-12-20 Thread Björn Töpel
Den ons 19 dec. 2018 kl 01:55 skrev William Tu : > > Currently the xsk_umem_consume_tx expects only the physical NICs so > the api returns a dma address. This patch introduce the new function > to return the virtual address, when XSK is used by a virtual device. > > Signed-off-by: William Tu > --

[bpf-next RFCv2 1/3] xsk: add xsk_umem_consume_tx_virtual.

2018-12-18 Thread William Tu
Currently the xsk_umem_consume_tx expects only the physical NICs so the api returns a dma address. This patch introduce the new function to return the virtual address, when XSK is used by a virtual device. Signed-off-by: William Tu --- include/net/xdp_sock.h | 7 +++ net/xdp/xdp_umem.c