Re: [bpf-next RFCv2 2/3] veth: support AF_XDP.

2018-12-21 Thread William Tu
On Fri, Dec 21, 2018 at 12:38 AM Björn Töpel wrote: > > Den ons 19 dec. 2018 kl 01:55 skrev William Tu : > > > > The patch adds support for AF_XDP async xmit. Users can use > > AF_XDP on both side of the veth and get better performance, with > > the cost of ksoftirqd doing the xmit. The veth_xsk

Re: [bpf-next RFCv2 2/3] veth: support AF_XDP.

2018-12-21 Thread Björn Töpel
Den ons 19 dec. 2018 kl 01:55 skrev William Tu : > > The patch adds support for AF_XDP async xmit. Users can use > AF_XDP on both side of the veth and get better performance, with > the cost of ksoftirqd doing the xmit. The veth_xsk_async_xmit > simply kicks the napi function, veth_poll, to run,

[bpf-next RFCv2 2/3] veth: support AF_XDP.

2018-12-18 Thread William Tu
The patch adds support for AF_XDP async xmit. Users can use AF_XDP on both side of the veth and get better performance, with the cost of ksoftirqd doing the xmit. The veth_xsk_async_xmit simply kicks the napi function, veth_poll, to run, and the transmit logic is implemented there. Tested using