crypto/cnxk: add PCI ID for cn9k
Checks
Commit Message
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 <alialnu@mellanox.com>
Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
config/arm/arm64_octeontx2_linux_gcc | 1 +
drivers/crypto/cnxk/cn9k_cryptodev.c | 2 ++
2 files changed, 3 insertions(+)
Comments
> 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 <alialnu@mellanox.com>
> Suggested-by: David Marchand <david.marchand@redhat.com>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> ---
Thomas,
Can you pick this directly on main?
Regards,
Akhil
On Fri, Jul 9, 2021 at 8:29 AM Anoob Joseph <anoobj@marvell.com> wrote:
>
> 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 <alialnu@mellanox.com>
> Suggested-by: David Marchand <david.marchand@redhat.com>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Applied, thanks.
@@ -14,3 +14,4 @@ endian = 'little'
[properties]
platform = 'octeontx2'
+disable_drivers = 'common/cnxk'
@@ -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 */
{