Re: [PATCH bpf-next] cpumap: bulk skb using netif_receive_skb_list

2021-04-08 Thread Jesper Dangaard Brouer
On Thu, 8 Apr 2021 12:10:19 +0200 Lorenzo Bianconi wrote: > > On Thu, Apr 1, 2021 at 9:49 AM Lorenzo Bianconi wrote: > > > > > > > > > On Thu, Apr 1, 2021 at 1:57 AM Lorenzo Bianconi > > > > wrote: > > > > > > > > > > > [...] > > > > > > > > - /* Inject into ne

Re: [PATCH bpf-next] cpumap: bulk skb using netif_receive_skb_list

2021-04-08 Thread Lorenzo Bianconi
> On Thu, Apr 1, 2021 at 9:49 AM Lorenzo Bianconi wrote: > > > > > On Thu, Apr 1, 2021 at 1:57 AM Lorenzo Bianconi > > > wrote: > > > > > > > > [...] > > > > > > - /* Inject into network stack */ > > > > - ret = netif_receive_skb_core(skb); > > > > -

Re: [PATCH bpf-next] cpumap: bulk skb using netif_receive_skb_list

2021-04-01 Thread Song Liu
On Thu, Apr 1, 2021 at 9:49 AM Lorenzo Bianconi wrote: > > > On Thu, Apr 1, 2021 at 1:57 AM Lorenzo Bianconi wrote: > > > > > [...] > > > > - /* Inject into network stack */ > > > - ret = netif_receive_skb_core(skb); > > > - if (re

Re: [PATCH bpf-next] cpumap: bulk skb using netif_receive_skb_list

2021-04-01 Thread Lorenzo Bianconi
> On Thu, Apr 1, 2021 at 1:57 AM Lorenzo Bianconi wrote: > > [...] > > - /* Inject into network stack */ > > - ret = netif_receive_skb_core(skb); > > - if (ret == NET_RX_DROP) > > - drops++; > > I gu

Re: [PATCH bpf-next] cpumap: bulk skb using netif_receive_skb_list

2021-04-01 Thread Song Liu
On Thu, Apr 1, 2021 at 1:57 AM Lorenzo Bianconi wrote: > > Rely on netif_receive_skb_list routine to send skbs converted from > xdp_frames in cpu_map_kthread_run in order to improve i-cache usage. > The proposed patch has been tested running xdp_redirect_cpu bpf sample > available in the kernel tr

[PATCH bpf-next] cpumap: bulk skb using netif_receive_skb_list

2021-04-01 Thread Lorenzo Bianconi
Rely on netif_receive_skb_list routine to send skbs converted from xdp_frames in cpu_map_kthread_run in order to improve i-cache usage. The proposed patch has been tested running xdp_redirect_cpu bpf sample available in the kernel tree that is used to redirect UDP frames from ixgbe driver to a cpum