diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2021-04-23 12:27:27 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-04-27 18:13:49 +0300 |
commit | bb0247807744dc93407771e13ba20af0b270ca6a (patch) | |
tree | be1bd4b75aa83649fc5fd39178f7c2d917d0e478 /Documentation | |
parent | 10bf4e83167cc68595b85fd73bb91e8f2c086e36 (diff) | |
download | linux-bb0247807744dc93407771e13ba20af0b270ca6a.tar.xz |
bpf, cpumap: Bulk skb using netif_receive_skb_list
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 cpumap entry and then to the networking stack. UDP
frames are generated using pktgen. Packets are discarded by the UDP
layer.
$ xdp_redirect_cpu --cpu <cpu> --progname xdp_cpu_map0 --dev <eth>
bpf-next: ~2.35Mpps
bpf-next + cpumap skb-list: ~2.72Mpps
Rename drops counter in kmem_alloc_drops since now it reports just
kmem_cache_alloc_bulk failures
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/c729f83e5d7482d9329e0f165bdbe5adcefd1510.1619169700.git.lorenzo@kernel.org
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions