> -----Original Message-----
> From: Pavan Nikhilesh <pbhagavat...@marvell.com>
> Sent: Wednesday, April 27, 2022 11:23 PM
> To: Ruifeng Wang <ruifeng.w...@arm.com>; Yipeng Wang
> <yipeng1.w...@intel.com>; Sameh Gobriel <sameh.gobr...@intel.com>;
> Bruce Richardson <bruce.richard...@intel.com>; Vladimir Medvedkin
> <vladimir.medved...@intel.com>
> Cc: jer...@marvell.com; dev@dpdk.org; Pavan Nikhilesh
> <pbhagavat...@marvell.com>
> Subject: [PATCH v7 2/2] 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 <pbhagavat...@marvell.com>
> ---
> .../{rte_crc_arm64.h => hash_crc_arm64.h} | 69 ++------
> lib/hash/hash_crc_generic.h | 72 +++++++++
> lib/hash/hash_crc_x86.h | 89 +++++++++++
> lib/hash/meson.build | 1 -
> lib/hash/rte_hash_crc.h | 147 +++++-------------
> 5 files changed, 210 insertions(+), 168 deletions(-) rename
> lib/hash/{rte_crc_arm64.h => hash_crc_arm64.h} (65%) create mode 100644
> lib/hash/hash_crc_generic.h
>
Reviewed-by: Ruifeng Wang <ruifeng.w...@arm.com>