net/e1000: support device I219

Message ID 20230530095404.1618218-1-qiming.yang@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Qi Zhang
Headers
Series net/e1000: support device I219 |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/github-robot: build fail github build: failed
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-testing fail build patch failure

Commit Message

Qiming Yang May 30, 2023, 9:54 a.m. UTC
  support device I219 LM22, V22, LM23 and V23.

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
---
 drivers/net/e1000/em_ethdev.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
  

Comments

Qi Zhang June 7, 2023, 12:55 a.m. UTC | #1
> -----Original Message-----
> From: Qiming Yang <qiming.yang@intel.com>
> Sent: Tuesday, May 30, 2023 5:54 PM
> To: dev@dpdk.org
> Cc: Yang, Qiming <qiming.yang@intel.com>
> Subject: [PATCH] net/e1000: support device I219
> 
> support device I219 LM22, V22, LM23 and V23.
> 
> Signed-off-by: Qiming Yang <qiming.yang@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi
  

Patch

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: