Update 776-4-net-use-jhash-for-software-skb-hashes.patch

This commit is contained in:
padavanonly
2025-04-13 13:17:32 +08:00
committed by GitHub
parent 0e1e9efc30
commit 6868c2971f

View File

@@ -9,7 +9,7 @@ are tad overkill for calculating flow hashes, and take a lot of cpu time too.
- hash = siphash(flow_keys_hash_start(keys),
- flow_keys_hash_length(keys), keyval);
+ hash = jhash(flow_keys_hash_start(keys), flow_keys_hash_length(keys), *(u32*)keyval);
+ hash = siphash(flow_keys_hash_start(keys), flow_keys_hash_length(keys), keyval);
if (!hash)
hash = 1;