Re: [bpf-next V2 PATCH 4/4] xdp: change ndo_xdp_xmit API to support bulking

2018-05-11 Thread Jesper Dangaard Brouer
On Fri, 11 May 2018 20:12:12 +0200 Jesper Dangaard Brouer wrote: > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index 03ed492c4e14..debdb6286170 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -1185,9 +1185,13 @@ struct dev_ifalias { > *

[bpf-next V2 PATCH 4/4] xdp: change ndo_xdp_xmit API to support bulking

2018-05-11 Thread Jesper Dangaard Brouer
This patch change the API for ndo_xdp_xmit to support bulking xdp_frames. When kernel is compiled with CONFIG_RETPOLINE, XDP sees a huge slowdown. Most of the slowdown is caused by DMA API indirect function calls, but also the net_device->ndo_xdp_xmit() call. Benchmarked patch with CONFIG_RETPOLI