]> git.droids-corp.org - dpdk.git/commit
hash: unify CRC32 selection for x86 and Arm
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Fri, 13 May 2022 18:27:10 +0000 (23:57 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 19 May 2022 14:00:51 +0000 (10:00 -0400)
commitf80ae1aa9a61ed3f3de85a964e7494a8256f98b9
treef6f33ed025b94a54660242f9deda76c40e781f69
parent3011c5a46ed87f1b1f1f85f5c743a3b19fd04c17
hash: unify CRC32 selection for x86 and Arm

Merge CRC32 hash calculation public API implementation for x86 and Arm.
Select the best available CRC32 algorithm when unsupported algorithm
on a given CPU architecture is requested by an application.

Previously, if an application directly includes `rte_crc_arm64.h`
without including `rte_hash_crc.h` it will fail to compile.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
lib/hash/meson.build
lib/hash/rte_crc_arm64.h
lib/hash/rte_crc_generic.h [new file with mode: 0644]
lib/hash/rte_crc_x86.h
lib/hash/rte_hash_crc.h