Skip to content

Commit f7ff0ae

Browse files
Sunil Gouthamdavem330
authored andcommitted
net: thunderx: Add VNIC's PCI devid on future chips
This patch adds PCI device IDs of VNIC on newer chips and also registers VF driver with them. Device id remains same for all versions of chips but subsystem device id changes. Signed-off-by: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a5c3d49 commit f7ff0ae

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

drivers/net/ethernet/cavium/thunder/nic.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@
2121
#define PCI_DEVICE_ID_THUNDER_BGX 0xA026
2222

2323
/* Subsystem device IDs */
24-
#define PCI_SUBSYS_DEVID_88XX_NIC_PF 0xA11E
24+
#define PCI_SUBSYS_DEVID_88XX_NIC_PF 0xA11E
25+
#define PCI_SUBSYS_DEVID_81XX_NIC_PF 0xA21E
26+
#define PCI_SUBSYS_DEVID_83XX_NIC_PF 0xA31E
27+
28+
#define PCI_SUBSYS_DEVID_88XX_PASS1_NIC_VF 0xA11E
29+
#define PCI_SUBSYS_DEVID_88XX_NIC_VF 0xA134
30+
#define PCI_SUBSYS_DEVID_81XX_NIC_VF 0xA234
31+
#define PCI_SUBSYS_DEVID_83XX_NIC_VF 0xA334
32+
2533

2634
/* PCI BAR nos */
2735
#define PCI_CFG_REG_BAR_NUM 0

drivers/net/ethernet/cavium/thunder/nicvf_main.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,20 @@
2929
static const struct pci_device_id nicvf_id_table[] = {
3030
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM,
3131
PCI_DEVICE_ID_THUNDER_NIC_VF,
32-
PCI_VENDOR_ID_CAVIUM, 0xA134) },
32+
PCI_VENDOR_ID_CAVIUM,
33+
PCI_SUBSYS_DEVID_88XX_NIC_VF) },
3334
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM,
3435
PCI_DEVICE_ID_THUNDER_PASS1_NIC_VF,
35-
PCI_VENDOR_ID_CAVIUM, 0xA11E) },
36+
PCI_VENDOR_ID_CAVIUM,
37+
PCI_SUBSYS_DEVID_88XX_PASS1_NIC_VF) },
38+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM,
39+
PCI_DEVICE_ID_THUNDER_NIC_VF,
40+
PCI_VENDOR_ID_CAVIUM,
41+
PCI_SUBSYS_DEVID_81XX_NIC_VF) },
42+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_CAVIUM,
43+
PCI_DEVICE_ID_THUNDER_NIC_VF,
44+
PCI_VENDOR_ID_CAVIUM,
45+
PCI_SUBSYS_DEVID_83XX_NIC_VF) },
3646
{ 0, } /* end of table */
3747
};
3848

0 commit comments

Comments
 (0)