[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200624101253.57daa0f0@carbon>
Date: Wed, 24 Jun 2020 10:12:53 +0200
From: Jesper Dangaard Brouer <brouer@...hat.com>
To: Lorenzo Bianconi <lorenzo@...nel.org>
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org, davem@...emloft.net,
ast@...nel.org, daniel@...earbox.net, toke@...hat.com,
lorenzo.bianconi@...hat.com, dsahern@...nel.org,
andrii.nakryiko@...il.com, brouer@...hat.com
Subject: Re: [PATCH v3 bpf-next 5/9] bpf: cpumap: add the possibility to
attach an eBPF program to cpumap
On Tue, 23 Jun 2020 23:39:30 +0200
Lorenzo Bianconi <lorenzo@...nel.org> wrote:
> Introduce the capability to attach an eBPF program to cpumap entries.
> The idea behind this feature is to add the possibility to define on
> which CPU run the eBPF program if the underlying hw does not support
> RSS. Current supported verdicts are XDP_DROP and XDP_PASS.
>
> This patch has been tested on Marvell ESPRESSObin using xdp_redirect_cpu
> sample available in the kernel tree to identify possible performance
> regressions. Results show there are no observable differences in
> packet-per-second:
>
> $./xdp_redirect_cpu --progname xdp_cpu_map0 --dev eth0 --cpu 1
> rx: 354.8 Kpps
> rx: 356.0 Kpps
> rx: 356.8 Kpps
> rx: 356.3 Kpps
> rx: 356.6 Kpps
> rx: 356.6 Kpps
> rx: 356.7 Kpps
> rx: 355.8 Kpps
> rx: 356.8 Kpps
> rx: 356.8 Kpps
>
> Co-developed-by: Jesper Dangaard Brouer <brouer@...hat.com>
> Signed-off-by: Jesper Dangaard Brouer <brouer@...hat.com>
> Signed-off-by: Lorenzo Bianconi <lorenzo@...nel.org>
Acked-by: Jesper Dangaard Brouer <brouer@...hat.com>
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
Powered by blists - more mailing lists