module/crypto: increase the number of queue pairs for AESNI_MB
Default was 8 which meant max of 8 bdevs. Bump it up to 64. Fixes issue #1232 Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I966e90de5c27910df0e4da0d1062d9d1665f8de6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1063 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
0ebd0dce19
commit
302f7aa6e4
@ -131,6 +131,7 @@ uint8_t g_number_of_claimed_volumes = 0;
|
||||
#define AES_CBC_IV_LENGTH 16
|
||||
#define AES_CBC_KEY_LENGTH 16
|
||||
#define AES_XTS_KEY_LENGTH 16 /* XTS uses 2 keys, each of this size. */
|
||||
#define AESNI_MB_NUM_QP 64
|
||||
|
||||
/* Common for suported devices. */
|
||||
#define IV_OFFSET (sizeof(struct rte_crypto_op) + \
|
||||
@ -374,6 +375,7 @@ vbdev_crypto_init_crypto_drivers(void)
|
||||
struct device_qp *dev_qp;
|
||||
unsigned int max_sess_size = 0, sess_size;
|
||||
uint16_t num_lcores = rte_lcore_count();
|
||||
char aesni_args[32];
|
||||
|
||||
/* Only the first call, via RPC or module init should init the crypto drivers. */
|
||||
if (g_session_mp != NULL) {
|
||||
@ -381,7 +383,8 @@ vbdev_crypto_init_crypto_drivers(void)
|
||||
}
|
||||
|
||||
/* We always init AESNI_MB */
|
||||
rc = rte_vdev_init(AESNI_MB, NULL);
|
||||
snprintf(aesni_args, sizeof(aesni_args), "max_nb_queue_pairs=%d", AESNI_MB_NUM_QP);
|
||||
rc = rte_vdev_init(AESNI_MB, aesni_args);
|
||||
if (rc) {
|
||||
SPDK_ERRLOG("error creating virtual PMD %s\n", AESNI_MB);
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user