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

2018-12-18 Thread William Tu
On Tue, Dec 18, 2018 at 6:34 AM Björn Töpel wrote: > > Den mån 17 dec. 2018 kl 20:40 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 RFC 1/3] xsk: add xsk_umem_consume_tx_virtual.

2018-12-18 Thread Björn Töpel
Den mån 17 dec. 2018 kl 20:40 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 RFC 1/3] xsk: add xsk_umem_consume_tx_virtual.

2018-12-17 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/xsk.c