vbdev_crypto: skip handling QAT_ASYM devices

Historically only QAT_SYM devices for crypto
were supported. The DPDK submodule explicitly
disabled its compilation.
For details please see:
https://review.spdk.io/gerrit/c/spdk/dpdk/+/9217

Starting with DPDK 21.11 QAT_SYM and QAT_ASYM were
merged together, so it is no longer possible to
disable it QAT_ASYM as it was before.

As vbdev_crypto didn't make use of it,
this driver is now skipped in preparation for
update to DPDK 21.11.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: Ib606a4b450cd224d96bc21a64384297b2182967c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11178
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Tomasz Zawadzki 2022-01-20 16:01:29 +01:00
parent 11f0a6ec0f
commit ca89b502aa
2 changed files with 7 additions and 0 deletions

View File

@ -260,6 +260,12 @@ create_vbdev_dev(uint8_t index, uint16_t num_lcores)
cdrv_id = device->cdev_info.driver_id;
cdev_id = device->cdev_id = index;
/* QAT_ASYM devices are not supported at this time. */
if (strcmp(device->cdev_info.driver_name, QAT_ASYM) == 0) {
free(device);
return 0;
}
/* Before going any further, make sure we have enough resources for this
* device type to function. We need a unique queue pair per core accross each
* device type to remain lockless....

View File

@ -43,6 +43,7 @@
#define AESNI_MB "crypto_aesni_mb"
#define QAT "crypto_qat"
#define QAT_ASYM "crypto_qat_asym"
/* Supported ciphers */
#define AES_CBC "AES_CBC" /* QAT and AESNI_MB */