[PATCH v1] crypto: fix build issues on crypto callbacks macro undefined

Power, Ciara ciara.power at intel.com
Wed Apr 17 13:40:56 CEST 2024



> -----Original Message-----
> From: Kundapura, Ganapati <ganapati.kundapura at intel.com>
> Sent: Tuesday, April 16, 2024 9:12 AM
> To: dev at dpdk.org
> Cc: Gujjar, Abhinandan S <abhinandan.gujjar at intel.com>; Power, Ciara
> <ciara.power at intel.com>; gakhil at marvell.com; fanzhang.oss at gmail.com
> 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 <ganapati.kundapura at intel.com>
> 

Acked-by: Ciara Power <ciara.power at intel.com>


More information about the dev mailing list