* [Cake] flow_hash_from_keys_small?
@ 2026-05-25 15:46 dave seddon
0 siblings, 0 replies; only message in thread
From: dave seddon @ 2026-05-25 15:46 UTC (permalink / raw)
To: Cake List; +Cc: Tom Herbert
G'day,
Here are a couple of patches that make cake ever so slightly faster.
Longer
For the last few months, I've been working on Tom's xdp2 project, comparing
the performance of the kernel's existing flow dissector versus what xdp2
(c/c++) and a xdp2-rs (rust) can produce.
For real world performance tests the lab has x2 pairs of machines:
- AMD Ryzen 5 PRO 2400G CPU with Intel X710
- AMD Ryzen 5 PRO 2400G CPU with ConnectX-4 Lx
After extensive analysis, I compared the flow metadata between the kernel
and xdp2, and found that simplifying the flow hash yields a small
performance improvement. I have NOT tested this on Intel CPUs.
The kernel used for the performance testing is
[das@hp1:~]$ uname -a Linux hp1 7.1.0-rc4 #1-NixOS SMP PREEMPT_DYNAMIC Tue
Jan 1 00:00:00 UTC 1980 x86_64 GNU/Linux
The draft letter for the kernel network mailing list, which describes the
changes, is here:
https://github.com/randomizedcoder/xdp2/blob/flow-keys-compat-reorder/kernel-patches/series1-flow-hash-small/v1/0000-cover-letter.patch
Documentation patch
https://github.com/randomizedcoder/xdp2/blob/flow-keys-compat-reorder/kernel-patches/series1-flow-hash-small/v1/0001-Documentation-networking-add-flow_dissector-consumer.patch
Patches
https://github.com/randomizedcoder/xdp2/blob/flow-keys-compat-reorder/kernel-patches/series1-flow-hash-small/v1/0002-net-flow_dissector-add-flow_hash_from_keys_small-5-t.patch#L82
https://github.com/randomizedcoder/xdp2/blob/flow-keys-compat-reorder/kernel-patches/series1-flow-hash-small/v1/0003-net-sched-sch_cake-use-flow_hash_from_keys_small-for.patch#L50
I'm interested in any feedback, particularly regarding the naming
"flow_hash_from_keys_small".
Thanks in advance
--
Regards,
Dave Seddon
+1 415 857 5102
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-25 15:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-25 15:46 [Cake] flow_hash_from_keys_small? dave seddon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox