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 3EF35A034D; Wed, 29 Dec 2021 10:27:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CD6940151; Wed, 29 Dec 2021 10:27:43 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 6986840040 for ; Wed, 29 Dec 2021 10:27:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640770061; x=1672306061; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zy0oGRoPD+YkbOOQceX4wrt3h7n51yEEnvXsPd6rzLY=; b=hTa25gq6pK835MJqJxizW+ftdAlG6+Rn5flLvSC4Skz44n+iqnvZjCZb hcpOTvzK7Hxg+yWdtOCjBUXDainijuI4nsJn/DKV7J4Jf4bxNnShHXz0k kcgDsevGVoPZIvWNesZAymRpSkS6b7ZDc4r+yi6wTkn7bojYBx1kT2TCM kQe8uh3My9WOYSyGyUphOiIRsfZzeF62Nc6IAnhiDk1vgJSZtGs6PlpdS VE8+p7QKHneslh0+LvrGpmLqqnCt1Uwbf/19vkwzBEy3Y5ydry6QSZB5j Ix+hTzAJb6R8XnBe7kPOhRBFtipx8D6waxxSgJy6+ONGO8Nhgp5hMtYf6 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10211"; a="228322144" X-IronPort-AV: E=Sophos;i="5.88,244,1635231600"; d="scan'208";a="228322144" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2021 01:27:40 -0800 X-IronPort-AV: E=Sophos;i="5.88,244,1635231600"; d="scan'208";a="470290408" Received: from unknown (HELO intel-cd-odc-robin.cd.intel.com) ([10.240.178.191]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2021 01:27:38 -0800 From: Robin Zhang To: dev@dpdk.org Cc: qiming.yang@intel.com, qi.z.zhang@intel.com, junfeng.guo@intel.com, stevex.yang@intel.com, Robin Zhang Subject: [PATCH] net/ice/base: support E824S and E825 devices Date: Wed, 29 Dec 2021 09:25:51 +0000 Message-Id: <20211229092551.2646-1-robinx.zhang@intel.com> X-Mailer: git-send-email 2.34.1 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. Signed-off-by: Robin Zhang --- 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 13a7a9702a..e9a28faa72 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -192,6 +192,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.34.1