> -----Original Message-----
> From: Kundapura, Ganapati <[email protected]>
> Sent: Tuesday, April 16, 2024 9:12 AM
> To: [email protected]
> Cc: Gujjar, Abhinandan S <[email protected]>; Power, Ciara
> <[email protected]>; [email protected]; [email protected]
> Subject: [PATCH v1] crypto: fix build issues on crypto callbacks macro
> undefined
>
> Crypto callbacks macro is defined with value 1 and being used with ifdef, on
> config value is changed to 0 to disable, crypto callback changes still being
> compiled.
>
> Defined crypto callbacks macro without value, undef to disable
>
> Wrapped crypto callback changes with RTE_CRYPTO_CALLBACKS macro to fix
> build issues when macro is undefined.
>
> As callback head nodes have valid pointer, this patch checks the next node
> from
> the head if callbacks registered.
>
> Fixes: 1c3ffb9 ("cryptodev: add enqueue and dequeue callbacks")
> Fixes: 5523a75 ("test/crypto: add case for enqueue/dequeue callbacks")
>
> Signed-off-by: Ganapati Kundapura <[email protected]>
>
Acked-by: Ciara Power <[email protected]>