Thread (17 messages) flat view 17 messages, 7 authors, 2021-02-27

Re: [PATCH bpf-next v4 1/2] bpf, xdp: make bpf_redirect_map() a map operation

From: Toke Høiland-Jørgensen <hidden>
Date: 2021-02-26 12:27:58
Also in: bpf

Björn Töpel [off-list ref] writes:
On 2021-02-26 12:40, Björn Töpel wrote:
quoted
On 2021-02-26 12:37, Toke Høiland-Jørgensen wrote:
[...]
quoted
quoted
(That last paragraph above is why I asked if you updated the performance
numbers in the cover letter; removing an additional function call should
affect those, right?)
Yeah, it should. Let me spend some more time benchmarking on the DEVMAP
scenario.
I did a re-measure using samples/xdp_redirect_map.

The setup is 64B packets blasted to an i40e. As a baseline,

   # xdp_rxq_info --dev ens801f1 --action XDP_DROP

gives 24.8 Mpps.


Now, xdp_redirect_map. Same NIC, two ports, receive from port A,
redirect to port B:

baseline:    14.3 Mpps
this series: 15.4 Mpps

which is almost 8%!
Or 5 ns difference:

10**9/(14.3*10**6) - 10**9/(15.4*10**6)
4.995004995005004

Nice :)

-Toke
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help