> The function memcmp() returns an integer less than, equal to,
> or greater than zero. In current code, if the first memcmp()
> returns less than zero and the second memcmp() returns greater
> than zero, the sum of results may still be 0 and indicates
> verify succussed.
>
> This commit converts the return value to be zero or greater
> than zero. That will make sure the sum of results be correct.
>
> Fixes: df52cb3b6e13 ("app/crypto-perf: move verify as single test type")
>
> Signed-off-by: Suanming Mou <[email protected]>
> Acked-by: Anoob Joseph <[email protected]>
Cc: [email protected]
Series
Applied to dpdk-next-crypto
- [PATCH 1/2] app/test-crypto-perf: fix invalid memcmp results Suanming Mou
- [PATCH 2/2] app/test-crypto-perf: fix encrypt operation ... Suanming Mou
- RE: [EXT] [PATCH 2/2] app/test-crypto-perf: fix encr... Anoob Joseph
- RE: [EXT] [PATCH 2/2] app/test-crypto-perf: fix ... Suanming Mou
- RE: [EXT] [PATCH 1/2] app/test-crypto-perf: fix invalid ... Anoob Joseph
- [PATCH v2 1/2] app/test-crypto-perf: fix invalid memcmp ... Suanming Mou
- [PATCH v2 2/2] app/test-crypto-perf: fix encrypt ope... Suanming Mou
- RE: [EXT] [PATCH v2 2/2] app/test-crypto-perf: f... Anoob Joseph
- RE: [PATCH v2 1/2] app/test-crypto-perf: fix invalid... Power, Ciara
- RE: [EXT] [PATCH v2 1/2] app/test-crypto-perf: fix i... Akhil Goyal

