[PATCH v7 2/2] hash: unify crc32 selection for x86 and Arm

Ruifeng Wang Ruifeng.Wang at arm.com
Fri Apr 29 09:19:50 CEST 2022


> -----Original Message-----
> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
> Sent: Wednesday, April 27, 2022 11:23 PM
> To: Ruifeng Wang <Ruifeng.Wang at arm.com>; Yipeng Wang
> <yipeng1.wang at intel.com>; Sameh Gobriel <sameh.gobriel at intel.com>;
> Bruce Richardson <bruce.richardson at intel.com>; Vladimir Medvedkin
> <vladimir.medvedkin at intel.com>
> Cc: jerinj at marvell.com; dev at dpdk.org; Pavan Nikhilesh
> <pbhagavatula at 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 <pbhagavatula at 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.wang at arm.com>



More information about the dev mailing list