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 A936642BE2; Tue, 30 May 2023 12:11:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A628140F18; Tue, 30 May 2023 12:11:46 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 0A96540A82 for ; Tue, 30 May 2023 12:11:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685441506; x=1716977506; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=sqVm6GOSOlM7yP0MiFEzfUKO8vyhOs3Ccg852wFxyA8=; b=lSNOSkSYEcqP56CaRQhs1/ibmESLYjG9VnV/NeQ2ZnmAmyARyDjXeY0X GjyPNhi3Xi0vGrZH5TF9fimIjJsZ2xQj9/odPkJ/Q/+T2dpuS3oHrTSOt SRzwDH4r+moWWglDojSjNqRMDhM8sgSpQ+XhupT2D2NK2vDeG0l3pM+l9 Opy+6+bvd8Bw9ShRxXnKwrNEc9afoEbORhuIDKh2sybunA2WNV4QuwOX7 sKiU2dUGXbp7dPaZ+GHhKu1y0LUGqAboS5DSBpI0CmwoBj0AoWfUPeFia /MXzbon1er9ZM0DZTSSrTGulZFwp55zlwbY2fWkD9MC4fdw4DjVutzKB6 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="418356345" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="418356345" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2023 03:11:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="850703804" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="850703804" Received: from dpdk-qiming3.sh.intel.com ([10.67.111.4]) by fmsmga001.fm.intel.com with ESMTP; 30 May 2023 03:11:44 -0700 From: Qiming Yang To: dev@dpdk.org Cc: Qiming Yang Subject: [PATCH] net/e1000: support device I219 Date: Tue, 30 May 2023 09:54:04 +0000 Message-Id: <20230530095404.1618218-1-qiming.yang@intel.com> X-Mailer: git-send-email 2.25.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 support device I219 LM22, V22, LM23 and V23. Signed-off-by: Qiming Yang --- drivers/net/e1000/em_ethdev.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 8ee9be12ad..0afedcd00c 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -155,6 +155,10 @@ static const struct rte_pci_id pci_id_em_map[] = { { RTE_PCI_DEVICE(E1000_INTEL_VENDOR_ID, E1000_DEV_ID_PCH_CNP_I219_V6) }, { RTE_PCI_DEVICE(E1000_INTEL_VENDOR_ID, E1000_DEV_ID_PCH_CNP_I219_LM7) }, { RTE_PCI_DEVICE(E1000_INTEL_VENDOR_ID, E1000_DEV_ID_PCH_CNP_I219_V7) }, + { RTE_PCI_DEVICE(E1000_INTEL_VENDOR_ID, E1000_DEV_ID_PCH_RPL_I219_LM22) }, + { RTE_PCI_DEVICE(E1000_INTEL_VENDOR_ID, E1000_DEV_ID_PCH_RPL_I219_V22) }, + { RTE_PCI_DEVICE(E1000_INTEL_VENDOR_ID, E1000_DEV_ID_PCH_RPL_I219_LM23) }, + { RTE_PCI_DEVICE(E1000_INTEL_VENDOR_ID, E1000_DEV_ID_PCH_RPL_I219_V23) }, { .vendor_id = 0, /* sentinel */ }, }; @@ -227,6 +231,11 @@ eth_em_dev_is_ich8(struct e1000_hw *hw) case E1000_DEV_ID_PCH_CNP_I219_V6: case E1000_DEV_ID_PCH_CNP_I219_LM7: case E1000_DEV_ID_PCH_CNP_I219_V7: + case E1000_DEV_ID_PCH_RPL_I219_LM22: + case E1000_DEV_ID_PCH_RPL_I219_V22: + case E1000_DEV_ID_PCH_RPL_I219_LM23: + case E1000_DEV_ID_PCH_RPL_I219_V23: + return 1; default: return 0; @@ -482,6 +491,8 @@ em_set_pba(struct e1000_hw *hw) case e1000_pch_lpt: case e1000_pch_spt: case e1000_pch_cnp: + case e1000_pch_adp: + case e1000_pch_tgp: pba = E1000_PBA_26K; break; default: @@ -852,7 +863,9 @@ em_hardware_init(struct e1000_hw *hw) hw->fc.refresh_time = 0x0400; } else if (hw->mac.type == e1000_pch_lpt || hw->mac.type == e1000_pch_spt || - hw->mac.type == e1000_pch_cnp) { + hw->mac.type == e1000_pch_cnp || + hw->mac.type == e1000_pch_adp || + hw->mac.type == e1000_pch_tgp) { hw->fc.requested_mode = e1000_fc_full; } @@ -1033,6 +1046,8 @@ em_get_max_pktlen(struct rte_eth_dev *dev) case e1000_pch_lpt: case e1000_pch_spt: case e1000_pch_cnp: + case e1000_pch_adp: + case e1000_pch_tgp: case e1000_82574: case e1000_80003es2lan: /* 9K Jumbo Frame size */ case e1000_82583: -- 2.25.1