On Wed, Apr 10, 2019 at 6:00 AM Jesper Dangaard Brouer <brouer@xxxxxxxxxx> wrote: > > This patchset utilize a number of different kernel bulk APIs for optimizing > the performance for the XDP cpumap redirect feature. Could you please share some numbers about the optimization? Thanks, Song > > Patch-1: ptr_ring batch consume > Patch-2: Send SKB-lists to network stack > Patch-3: Introduce SKB helper to alloc SKB outside net-core > Patch-4: kmem_cache bulk alloc of SKBs > Patch-5: Prefetch struct page to solve CPU stall > > --- > > Jesper Dangaard Brouer (5): > bpf: cpumap use ptr_ring_consume_batched > bpf: cpumap use netif_receive_skb_list > net: core: introduce build_skb_around > bpf: cpumap do bulk allocation of SKBs > bpf: cpumap memory prefetchw optimizations for struct page > > > include/linux/netdevice.h | 1 + > include/linux/skbuff.h | 2 + > kernel/bpf/cpumap.c | 66 +++++++++++++++++++++++++++++------------- > net/core/dev.c | 18 +++++++++++ > net/core/skbuff.c | 71 +++++++++++++++++++++++++++++++++------------ > 5 files changed, 118 insertions(+), 40 deletions(-) > > --