crypto/cnxk: add PCI ID for cn9k
authorAnoob Joseph <anoobj@marvell.com>
Fri, 9 Jul 2021 06:28:43 +0000 (11:58 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 9 Jul 2021 11:18:56 +0000 (13:18 +0200)
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 <alialnu@nvidia.com>
Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
config/arm/arm64_octeontx2_linux_gcc
drivers/crypto/cnxk/cn9k_cryptodev.c

index 9156ee5..8fbdd38 100644 (file)
@@ -14,3 +14,4 @@ endian = 'little'
 
 [properties]
 platform = 'octeontx2'
+disable_drivers = 'common/cnxk'
index e74e739..71d144f 100644 (file)
@@ -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 */
        {