cryptodev: allocate max space for internal queue array
authorAkhil Goyal <gakhil@marvell.com>
Wed, 20 Oct 2021 11:27:48 +0000 (16:57 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 20 Oct 2021 13:33:16 +0000 (15:33 +0200)
commit7f3876ad549f564ace89dd12f5d1a61d310277f2
tree35dc624d965b190cd440154477055f7052fc272d
parent691e1f4d56c49a5303f2a341c040a38b4fb8daad
cryptodev: allocate max space for internal queue array

At queue_pair config stage, allocate memory for maximum
number of queue pair pointers that a device can support.

This will allow fast path APIs(enqueue_burst/dequeue_burst) to
refer pointer to internal QP data without checking for currently
configured QPs.
This is required to hide the rte_cryptodev and rte_cryptodev_data
structure from user.

Signed-off-by: Akhil Goyal <gakhil@marvell.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/cryptodev/rte_cryptodev.c