From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 98DD7A034C; Fri, 25 Feb 2022 03:02:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E3954014E; Fri, 25 Feb 2022 03:02:47 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id E29AE40141 for ; Fri, 25 Feb 2022 03:02:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645754565; x=1677290565; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/ex9/QHdnmGqLK1atCr0o9cD3gaaF/UpMIzEjmomyrw=; b=WXQxLnjtlsrZuwfflP4oGQkZHiAz2yv5GgW3MW/VYSxe6Y27KtY38DUM 9JyVIhd/WVMMBRuKe6XymqpsA326loS254VHrIZ5hpUYEMS+z7dks03TK MbhXwT3ml4zuN5aoBtNbSXu6V9oe5wJnDMXBEoCcnl9VvMZ3RlWSXoSWx lzxBY25+K75DvrFIpH8Dm0rnERIo8hfa7kgff3AChaBo4eAUEFR229nQK jEUwvwK+HAu7IH7SS2xX2y6TLqy+TY5686HSQnoVCM2NXmhtYDJC3nS1j dDq8aJTRaAVSo6Zrt5shFxxnAYYNVTR4H57eTt0stuq8BbVd9Y27eOU4l Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10268"; a="235906969" X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="235906969" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 18:02:41 -0800 X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="549038485" Received: from intel-odc-robin.cd.intel.com ([10.240.178.186]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 18:02:39 -0800 From: Robin Zhang To: dev@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com, junfeng.guo@intel.com, stevex.yang@intel.com Cc: Robin Zhang Subject: [PATCH v3] net/ice/base: support E824S and E825 devices Date: Fri, 25 Feb 2022 02:00:14 +0000 Message-Id: <20220225020014.2256619-1-robinx.zhang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211229092551.2646-1-robinx.zhang@intel.com> References: <20211229092551.2646-1-robinx.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add support for E824S and E825 family devices. This will be documented later in release notes due to we don't have mature product now. Signed-off-by: Robin Zhang --- v3: - refine commit message. drivers/net/ice/base/ice_common.c | 6 ++++++ drivers/net/ice/base/ice_devids.h | 13 +++++++++++++ drivers/net/ice/ice_ethdev.c | 6 ++++++ 3 files changed, 25 insertions(+) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index ae55bebaa2..db87bacd97 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -167,6 +167,12 @@ static enum ice_status ice_set_mac_type(struct ice_hw *hw) case ICE_DEV_ID_E823C_QSFP: case ICE_DEV_ID_E823C_SFP: case ICE_DEV_ID_E823C_SGMII: + case ICE_DEV_ID_E824S: + case ICE_DEV_ID_E825C_BACKPLANE: + case ICE_DEV_ID_E825C_QSFP: + case ICE_DEV_ID_E825C_SFP: + case ICE_DEV_ID_E825C_1GBE: + case ICE_DEV_ID_E825X: hw->mac_type = ICE_MAC_GENERIC; break; default: diff --git a/drivers/net/ice/base/ice_devids.h b/drivers/net/ice/base/ice_devids.h index e52bb71403..96f2528c5e 100644 --- a/drivers/net/ice/base/ice_devids.h +++ b/drivers/net/ice/base/ice_devids.h @@ -58,5 +58,18 @@ #define ICE_DEV_ID_E822L_10G_BASE_T 0x1899 /* Intel(R) Ethernet Connection E822-L 1GbE */ #define ICE_DEV_ID_E822L_SGMII 0x189A +/* Intel(R) Ethernet Connection E824-S */ +#define ICE_DEV_ID_E824S 0x0DBD +/* Intel(R) Ethernet Connection E825-C for backplane */ +#define ICE_DEV_ID_E825C_BACKPLANE 0x579C +/* Intel(R) Ethernet Connection E825-C for QSFP */ +#define ICE_DEV_ID_E825C_QSFP 0x579D +/* Intel(R) Ethernet Connection E825-C for SFP */ +#define ICE_DEV_ID_E825C_SFP 0x579E +/* Intel(R) Ethernet Connection E825-C 1GbE */ +#define ICE_DEV_ID_E825C_1GBE 0x579F +/* Intel(R) Ethernet Connection E825-X */ +#define ICE_DEV_ID_E825X 0x0DCD + #endif /* _ICE_DEVIDS_H_ */ diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 1a469afeac..13adcf90ed 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -196,6 +196,12 @@ static const struct rte_pci_id pci_id_ice_map[] = { { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822L_SFP) }, { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822L_10G_BASE_T) }, { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822L_SGMII) }, + { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E824S) }, + { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E825C_BACKPLANE) }, + { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E825C_QSFP) }, + { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E825C_SFP) }, + { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E825C_1GBE) }, + { RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E825X) }, { .vendor_id = 0, /* sentinel */ }, }; -- 2.25.1