> -----Original Message-----
> From: Kusztal, ArkadiuszX <[email protected]>
> Sent: Friday, March 15, 2024 10:45 AM
> To: [email protected]
> Cc: [email protected]; Power, Ciara <[email protected]>; Kusztal,
> ArkadiuszX <[email protected]>
> Subject: [PATCH v2] app/crypto-perf-test: fix unset crc algorithm
>
> Because net crc api is not thread-safe, setting crc algorithm by the
> application
> will prevent race condition in the calc function.
> Race condition still may occur when any of the threads will call this function
> again. Function is called with the highest possible SIMD extension, which is
> AVX512, but if this is not found, CRC API will pick the other highest possible
> extension, or scalar if no SIMD available.
>
> Signed-off-by: Arkadiusz Kusztal <[email protected]>
> ---
> v2:
> - narrowed down the case to the docsis only
>
> app/test-crypto-perf/main.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
Acked-by: Ciara Power <[email protected]>