Ben,

Thanks so much.

Hemant

-----Original Message-----
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Benoit Ganne 
(bganne) via lists.fd.io
Sent: Wednesday, August 31, 2022 3:11 AM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] hash api?

> I did poke around hash.h but didn’t find the api I need. Would vpp 
> consider adding crc32 and crc16? ECMP and Network Packet Broker use 
> hashes.

We typically use crc32c if supported by HW or xxhash, see 
clib_bihash_hash_16_8_32() for example.
For ECMP we also have ip4_compute_flow_hash() and ip6_compute_flow_hash() which 
supports various options (non-symmetric vs symmetric hash etc.).

ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21840): https://lists.fd.io/g/vpp-dev/message/21840
Mute This Topic: https://lists.fd.io/mt/93350589/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to