Re: [PATCH net-next] tuntap: XDP_TX can use native XDP

2018-03-15 Thread Jason Wang
On 2018年03月15日 21:32, Michael S. Tsirkin wrote: On Thu, Mar 15, 2018 at 04:39:25PM +0800, Jason Wang wrote: On 2018年03月14日 11:37, Michael S. Tsirkin wrote: return NULL; case XDP_TX: - xdp_xmit = true; - /* fa

Re: [PATCH net-next] tuntap: XDP_TX can use native XDP

2018-03-15 Thread Michael S. Tsirkin
On Thu, Mar 15, 2018 at 04:39:25PM +0800, Jason Wang wrote: > > > On 2018年03月14日 11:37, Michael S. Tsirkin wrote: > > > return NULL; > > > case XDP_TX: > > > - xdp_xmit = true; > > > - /* fall through */ > > > +

Re: [PATCH net-next] tuntap: XDP_TX can use native XDP

2018-03-15 Thread Jason Wang
On 2018年03月14日 11:37, Michael S. Tsirkin wrote: return NULL; case XDP_TX: - xdp_xmit = true; - /* fall through */ + get_page(alloc_frag->page); + alloc_frag->offset +=

Re: [PATCH net-next] tuntap: XDP_TX can use native XDP

2018-03-14 Thread David Miller
From: Jason Wang Date: Wed, 14 Mar 2018 11:23:40 +0800 > Now we have ndo_xdp_xmit, switch to use it instead of the slow generic > XDP TX routine. XDP_TX on TAP gets ~20% improvements from ~1.5Mpps to > ~1.8Mpps on 2.60GHz Core(TM) i7-5600U. > > Signed-off-by: Jason Wang Applied, thanks Jason.

Re: [PATCH net-next] tuntap: XDP_TX can use native XDP

2018-03-13 Thread Michael S. Tsirkin
On Wed, Mar 14, 2018 at 11:23:40AM +0800, Jason Wang wrote: > Now we have ndo_xdp_xmit, switch to use it instead of the slow generic > XDP TX routine. XDP_TX on TAP gets ~20% improvements from ~1.5Mpps to > ~1.8Mpps on 2.60GHz Core(TM) i7-5600U. > > Signed-off-by: Jason Wang Acked-by: Michael S.

[PATCH net-next] tuntap: XDP_TX can use native XDP

2018-03-13 Thread Jason Wang
Now we have ndo_xdp_xmit, switch to use it instead of the slow generic XDP TX routine. XDP_TX on TAP gets ~20% improvements from ~1.5Mpps to ~1.8Mpps on 2.60GHz Core(TM) i7-5600U. Signed-off-by: Jason Wang --- drivers/net/tun.c | 19 --- 1 file changed, 8 insertions(+), 11 deleti