From: Anoob Joseph Date: Fri, 9 Jul 2021 06:28:43 +0000 (+0530) Subject: crypto/cnxk: add PCI ID for cn9k X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b146c30d3c0e0c7bf2713ef67cd5473ad3c426f9;p=dpdk.git crypto/cnxk: add PCI ID for cn9k Add PCI ID for crypo_cn9k PMD. To avoid conflicting PCI ID in crypto_octeontx2 and crypto_cn9k PMDs, disable crypto_cn9k PMD when built with octeontx2 config. The lack of PCI ID is causing debug build to fail on Ubuntu 18.04 for crypto_cn9k PMD. Reported-by: Ali Alnubani Suggested-by: David Marchand Signed-off-by: Anoob Joseph --- diff --git a/config/arm/arm64_octeontx2_linux_gcc b/config/arm/arm64_octeontx2_linux_gcc index 9156ee5410..8fbdd3868d 100644 --- a/config/arm/arm64_octeontx2_linux_gcc +++ b/config/arm/arm64_octeontx2_linux_gcc @@ -14,3 +14,4 @@ endian = 'little' [properties] platform = 'octeontx2' +disable_drivers = 'common/cnxk' diff --git a/drivers/crypto/cnxk/cn9k_cryptodev.c b/drivers/crypto/cnxk/cn9k_cryptodev.c index e74e739b46..71d144fea1 100644 --- a/drivers/crypto/cnxk/cn9k_cryptodev.c +++ b/drivers/crypto/cnxk/cn9k_cryptodev.c @@ -21,6 +21,8 @@ uint8_t cn9k_cryptodev_driver_id; static struct rte_pci_id pci_id_cpt_table[] = { { + RTE_PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, + PCI_DEVID_CN9K_RVU_CPT_VF) }, /* sentinel */ {