From: Qi Zhang Date: Mon, 6 Jan 2020 03:38:50 +0000 (+0800) Subject: net/ice: support 1/10G device IDs X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=566fbec564a1a8fa2dd27b981ab69208b5372e59;p=dpdk.git net/ice: support 1/10G device IDs Add support for 1/10G devices. Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- diff --git a/drivers/net/ice/base/ice_devids.h b/drivers/net/ice/base/ice_devids.h index 348d1907a4..46ffdee2d3 100644 --- a/drivers/net/ice/base/ice_devids.h +++ b/drivers/net/ice/base/ice_devids.h @@ -24,5 +24,9 @@ #define ICE_DEV_ID_C822N_QSFP 0x1891 /* Intel(R) Ethernet Connection C822N for SFP */ #define ICE_DEV_ID_C822N_SFP 0x1892 +/* Intel(R) Ethernet Connection C822N/X557-AT 10GBASE-T */ +#define ICE_DEV_ID_C822N_10G_BASE_T 0x1893 +/* Intel(R) Ethernet Connection C822N 1GbE */ +#define ICE_DEV_ID_C822N_SGMII 0x1894 #endif /* _ICE_DEVIDS_H_ */ diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index cf99fc358e..88cd906603 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -166,6 +166,8 @@ static const struct rte_pci_id pci_id_ice_map[] = { { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_C822N_BACKPLANE) }, { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_C822N_QSFP) }, { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_C822N_SFP) }, + { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_C822N_10G_BASE_T) }, + { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_C822N_SGMII) }, { .vendor_id = 0, /* sentinel */ }, };