Skip to content

Commit 724e47a

Browse files
Zhao Chendavem330
authored andcommitted
net-next/hinic: add pci device ids for 25ge and 100ge card
This patch adds PCI device IDs to support 25GE and 100GE card: 1. Add device id 0x0201 for HINIC 100GE dual port card. 2. Add device id 0x0200 for HINIC 25GE dual port card. 3. Macro of device id 0x1822 is modified for HINIC 25GE quad port card. Signed-off-by: Zhao Chen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d869dea commit 724e47a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ 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 PCI_DEVICE_ID_HI1822_PF 0x1822
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
5557

5658
#define HINIC_WQ_NAME "hinic_dev"
5759

@@ -1097,7 +1099,9 @@ static void hinic_remove(struct pci_dev *pdev)
10971099
}
10981100

10991101
static const struct pci_device_id hinic_pci_table[] = {
1100-
{ PCI_VDEVICE(HUAWEI, PCI_DEVICE_ID_HI1822_PF), 0},
1102+
{ PCI_VDEVICE(HUAWEI, HINIC_DEV_ID_QUAD_PORT_25GE), 0},
1103+
{ PCI_VDEVICE(HUAWEI, HINIC_DEV_ID_DUAL_PORT_25GE), 0},
1104+
{ PCI_VDEVICE(HUAWEI, HINIC_DEV_ID_DUAL_PORT_100GE), 0},
11011105
{ 0, 0}
11021106
};
11031107
MODULE_DEVICE_TABLE(pci, hinic_pci_table);

0 commit comments

Comments
 (0)