From e651210751d326db0353456ead251f92371e188d Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Wed, 4 Jan 2017 23:04:03 -0800 Subject: [PATCH] net/qede: add 50G device PCI id Add 50G device support for 57980 series Signed-off-by: Rasesh Mody --- config/common_base | 2 +- doc/guides/nics/qede.rst | 4 ++-- drivers/net/qede/qede_ethdev.c | 3 +++ drivers/net/qede/qede_ethdev.h | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config/common_base b/config/common_base index ae42d171c7..6f99a59199 100644 --- a/config/common_base +++ b/config/common_base @@ -331,7 +331,7 @@ CONFIG_RTE_LIBRTE_PMD_BOND=y CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB=n CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB_L1=n -# QLogic 10G/25G/40G/100G PMD +# QLogic 10G/25G/40G/50G/100G PMD # CONFIG_RTE_LIBRTE_QEDE_PMD=y CONFIG_RTE_LIBRTE_QEDE_DEBUG_INIT=n diff --git a/doc/guides/nics/qede.rst b/doc/guides/nics/qede.rst index c410edccb8..46ae2be1e3 100644 --- a/doc/guides/nics/qede.rst +++ b/doc/guides/nics/qede.rst @@ -32,7 +32,7 @@ QEDE Poll Mode Driver ====================== The QEDE poll mode driver library (**librte_pmd_qede**) implements support -for **QLogic FastLinQ QL4xxxx 10G/25G/40G/100G CNA** family of adapters as well +for **QLogic FastLinQ QL4xxxx 10G/25G/40G/50G/100G CNA** family of adapters as well as their virtual functions (VF) in SR-IOV context. It is supported on several standard Linux distros like RHEL7.x, SLES12.x and Ubuntu. It is compile-tested under FreeBSD OS. @@ -72,7 +72,7 @@ Non-supported Features Supported QLogic Adapters ------------------------- -- QLogic FastLinQ QL4xxxx 10G/25G/40G/100G CNAs. +- QLogic FastLinQ QL4xxxx 10G/25G/40G/50G/100G CNAs. Prerequisites ------------- diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 7d5b8b36be..12f2a74d71 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -2295,6 +2295,9 @@ static struct rte_pci_id pci_id_qede_map[] = { { QEDE_RTE_PCI_DEVICE(PCI_DEVICE_ID_QLOGIC_57980S_100) }, + { + QEDE_RTE_PCI_DEVICE(PCI_DEVICE_ID_QLOGIC_57980S_50) + }, { QEDE_RTE_PCI_DEVICE(PCI_DEVICE_ID_QLOGIC_AH_50G) }, diff --git a/drivers/net/qede/qede_ethdev.h b/drivers/net/qede/qede_ethdev.h index 19a4ece3e0..9701d73607 100644 --- a/drivers/net/qede/qede_ethdev.h +++ b/drivers/net/qede/qede_ethdev.h @@ -102,6 +102,7 @@ #define CHIP_NUM_57980S_25 0x1656 #define CHIP_NUM_57980S_IOV 0x1664 #define CHIP_NUM_57980S_100 0x1644 +#define CHIP_NUM_57980S_50 0x1654 #define CHIP_NUM_AH_50G 0x8070 #define CHIP_NUM_AH_10G 0x8071 #define CHIP_NUM_AH_40G 0x8072 @@ -115,6 +116,7 @@ #define PCI_DEVICE_ID_QLOGIC_57980S_25 CHIP_NUM_57980S_25 #define PCI_DEVICE_ID_QLOGIC_57980S_IOV CHIP_NUM_57980S_IOV #define PCI_DEVICE_ID_QLOGIC_57980S_100 CHIP_NUM_57980S_100 +#define PCI_DEVICE_ID_QLOGIC_57980S_50 CHIP_NUM_57980S_50 #define PCI_DEVICE_ID_QLOGIC_AH_50G CHIP_NUM_AH_50G #define PCI_DEVICE_ID_QLOGIC_AH_10G CHIP_NUM_AH_10G #define PCI_DEVICE_ID_QLOGIC_AH_40G CHIP_NUM_AH_40G -- 2.20.1