net/thunderx: support 81xx SoC
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Thu, 21 Jul 2016 14:01:47 +0000 (19:31 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
81xx NIC subsystem differs in new PCI subsystem_device_id and
NICVF_CAP_CQE_RX2 capability.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
doc/guides/nics/thunderx.rst
drivers/net/thunderx/base/nicvf_hw.c
drivers/net/thunderx/base/nicvf_hw.h
drivers/net/thunderx/nicvf_ethdev.c

index 248b1af..acc05a4 100644 (file)
@@ -60,6 +60,7 @@ Features of the ThunderX PMD are:
 Supported ThunderX SoCs
 -----------------------
 - CN88xx
+- CN81xx
 
 Prerequisites
 -------------
index 2b12d9c..4bdd183 100644 (file)
@@ -143,6 +143,9 @@ nicvf_base_init(struct nicvf *nic)
        if (nicvf_hw_version(nic) == PCI_SUB_DEVICE_ID_CN88XX_PASS2_NICVF)
                nic->hwcap |= NICVF_CAP_TUNNEL_PARSING;
 
+       if (nicvf_hw_version(nic) == PCI_SUB_DEVICE_ID_CN81XX_NICVF)
+               nic->hwcap |= NICVF_CAP_TUNNEL_PARSING | NICVF_CAP_CQE_RX2;
+
        return NICVF_OK;
 }
 
index 5629d9c..a6cda82 100644 (file)
@@ -42,6 +42,7 @@
 #define        PCI_DEVICE_ID_THUNDERX_NICVF                    0xA034
 #define        PCI_SUB_DEVICE_ID_CN88XX_PASS1_NICVF            0xA11E
 #define        PCI_SUB_DEVICE_ID_CN88XX_PASS2_NICVF            0xA134
+#define        PCI_SUB_DEVICE_ID_CN81XX_NICVF                  0xA234
 
 #define NICVF_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
 
index 0875ba5..b758c9f 100644 (file)
@@ -1757,6 +1757,13 @@ static const struct rte_pci_id pci_id_nicvf_map[] = {
                .subsystem_vendor_id = PCI_VENDOR_ID_CAVIUM,
                .subsystem_device_id = PCI_SUB_DEVICE_ID_CN88XX_PASS2_NICVF,
        },
+       {
+               .class_id = RTE_CLASS_ANY_ID,
+               .vendor_id = PCI_VENDOR_ID_CAVIUM,
+               .device_id = PCI_DEVICE_ID_THUNDERX_NICVF,
+               .subsystem_vendor_id = PCI_VENDOR_ID_CAVIUM,
+               .subsystem_device_id = PCI_SUB_DEVICE_ID_CN81XX_NICVF,
+       },
        {
                .vendor_id = 0,
        },