[v3,01/26] cryptodev: remove use of ethdev max queues definition
Checks
Commit Message
The number of queue pairs supported by cryptodev should not be dependent
on the number of ethdev Rx or Tx queues, so add a new define for
cryptodev specifically.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
config/rte_config.h | 1 +
lib/cryptodev/cryptodev_pmd.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
@@ -71,6 +71,7 @@
/* cryptodev defines */
#define RTE_CRYPTO_MAX_DEVS 64
+#define RTE_CRYPTO_MAX_QPS_PER_DEV 256
#define RTE_CRYPTODEV_NAME_LEN 64
#define RTE_CRYPTO_CALLBACKS 1
@@ -212,8 +212,8 @@ dummy_crypto_dequeue_burst(__rte_unused void *qp,
void
cryptodev_fp_ops_reset(struct rte_crypto_fp_ops *fp_ops)
{
- static struct rte_cryptodev_cb_rcu dummy_cb[RTE_MAX_QUEUES_PER_PORT];
- static void *dummy_data[RTE_MAX_QUEUES_PER_PORT];
+ static struct rte_cryptodev_cb_rcu dummy_cb[RTE_CRYPTO_MAX_QPS_PER_DEV];
+ static void *dummy_data[RTE_CRYPTO_MAX_QPS_PER_DEV];
static const struct rte_crypto_fp_ops dummy = {
.enqueue_burst = dummy_crypto_enqueue_burst,
.dequeue_burst = dummy_crypto_dequeue_burst,