Skip to content

Commit 6679cf0

Browse files
Xue Chaojingdavem330
authored andcommitted
hinic: Add pci device ids
This patch adds PCI device IDs to support following cards: 1. Add device id 0x0205 for HINIC 100GE dual port mezz card. 2. Add device id 0x0210 for HINIC 25GE quad port mezz card. 3. Delete device id 0x0201 for HINIC 100GE dual port card, because this is used by other product. 4. Macro of device id 0x200 is modified for HINIC 100GE dual port card. Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 10b63e8 commit 6679cf0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/net/ethernet/huawei/hinic/hinic_main.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ static unsigned int rx_weight = 64;
5151
module_param(rx_weight, uint, 0644);
5252
MODULE_PARM_DESC(rx_weight, "Number Rx packets for NAPI budget (default=64)");
5353

54-
#define HINIC_DEV_ID_QUAD_PORT_25GE 0x1822
55-
#define HINIC_DEV_ID_DUAL_PORT_25GE 0x0200
56-
#define HINIC_DEV_ID_DUAL_PORT_100GE 0x0201
54+
#define HINIC_DEV_ID_QUAD_PORT_25GE 0x1822
55+
#define HINIC_DEV_ID_DUAL_PORT_100GE 0x0200
56+
#define HINIC_DEV_ID_DUAL_PORT_100GE_MEZZ 0x0205
57+
#define HINIC_DEV_ID_QUAD_PORT_25GE_MEZZ 0x0210
5758

5859
#define HINIC_WQ_NAME "hinic_dev"
5960

@@ -1113,8 +1114,9 @@ static void hinic_shutdown(struct pci_dev *pdev)
11131114

11141115
static const struct pci_device_id hinic_pci_table[] = {
11151116
{ PCI_VDEVICE(HUAWEI, HINIC_DEV_ID_QUAD_PORT_25GE), 0},
1116-
{ PCI_VDEVICE(HUAWEI, HINIC_DEV_ID_DUAL_PORT_25GE), 0},
11171117
{ PCI_VDEVICE(HUAWEI, HINIC_DEV_ID_DUAL_PORT_100GE), 0},
1118+
{ PCI_VDEVICE(HUAWEI, HINIC_DEV_ID_DUAL_PORT_100GE_MEZZ), 0},
1119+
{ PCI_VDEVICE(HUAWEI, HINIC_DEV_ID_QUAD_PORT_25GE_MEZZ), 0},
11181120
{ 0, 0}
11191121
};
11201122
MODULE_DEVICE_TABLE(pci, hinic_pci_table);

0 commit comments

Comments
 (0)