crypto: fix crypto callbacks macro
PATCH 1/1 crypto: fix crypto callbacks macro
The crypto callbacks macro is being used with ifdef instead of if, so when the config file value is changed to 0 to disable, the code is still being compiled in.
--- lib/cryptodev/rte_cryptodev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/cryptodev/rte_cryptodev.h +2 -2
@@ -1909,7 +1909,7 @@ rte_cryptodev_dequeue_burst(uint8_t dev_id, uint16_t qp_id, nb_ops = fp_ops->dequeue_burst (qp, ops, nb_ops); -#ifdef RTE_CRYPTO_CALLBACKS +#if RTE_CRYPTO_CALLBACKS if (unlikely (fp_ops->qp.deq_cb !=NULL )) {struct rte_cryptodev_cb_rcu *list;struct rte_cryptodev_cb *cb;
@@ -1976,7 +1976,7 @@ rte_cryptodev_enqueue_burst(uint8_t dev_id, uint16_t qp_id, fp_ops = &rte_crypto_fp_ops[dev_id]; qp = fp_ops->qp.data[qp_id]; -#ifdef RTE_CRYPTO_CALLBACKS +#if RTE_CRYPTO_CALLBACKS if (unlikely (fp_ops->qp.enq_cb !=NULL )) {struct rte_cryptodev_cb_rcu *list;struct rte_cryptodev_cb *cb;
Signature · 1 line
2.25.1
Quoted 46 lines
-----Original Message-----
From: Power, Ciara <[email protected]>
Sent: Monday, April 15, 2024 1:36 PM
To: [email protected]
Cc: Power, Ciara <[email protected]>; Gujjar, Abhinandan S <[email protected]>; [email protected]; Akhil Goyal <[email protected]>; Fan Zhang <[email protected]>
Subject: [PATCH] crypto: fix crypto callbacks macroThe crypto callbacks macro is being used with ifdef instead of if, so when the config file value is changed to 0 to disable, the code is still being compiled in.
Fixes 1c3ffb95595e ("cryptodev: add enqueue and dequeue callbacks")Signed-off-by Ciara Power <[email protected]>--- lib/cryptodev/rte_cryptodev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)lib/cryptodev/rte_cryptodev.h index renamed from lib/cryptodev/rte_cryptodev.h +0
-0
00ba6a234a..357d4bcf9c100644lib/cryptodev/rte_cryptodev.h +1
-1@@ -1909,7 +1909,7 @@ rte_cryptodev_dequeue_burst(uint8_t dev_id,uint16_t qp_id, nb_ops = fp_ops->dequeue_burst (qp, ops, nb_ops); -#ifdef RTE_CRYPTO_CALLBACKS +#if RTE_CRYPTO_CALLBACKS if (unlikely (fp_ops->qp.deq_cb !=NULL )) {struct rte_cryptodev_cb_rcu *list;lib/cryptodev/rte_cryptodev.h +1
-1struct rte_cryptodev_cb *cb;@@ -1976,7 +1976,7 @@ rte_cryptodev_enqueue_burst(uint8_t dev_id,uint16_t qp_id, fp_ops = &rte_crypto_fp_ops[dev_id]; qp = fp_ops->qp.data[qp_id]; -#ifdef RTE_CRYPTO_CALLBACKS +#if RTE_CRYPTO_CALLBACKS if (unlikely (fp_ops->qp.enq_cb !=NULL )) {struct rte_cryptodev_cb_rcu *list;
Quoted 3 lines
struct
rte_cryptodev_cb*cb;
--
2.25.1
Rejecting this patch, as an alternative fix was sent along with some other fixes: https://patchwork.dpdk.org/project/dpdk/patch/[email protected]/