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 for crypto_cn9k PMD. Reported-by: Ali Alnubani <alia...@mellanox.com> Suggested-by: David Marchand <david.march...@redhat.com> Signed-off-by: Anoob Joseph <ano...@marvell.com> --- config/arm/arm64_octeontx2_linux_gcc | 1 + drivers/crypto/cnxk/cn9k_cryptodev.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config/arm/arm64_octeontx2_linux_gcc b/config/arm/arm64_octeontx2_linux_gcc index 9156ee5..8fbdd38 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 e74e739..71d144f 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 */ { -- 2.7.4