public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Feifei Wang <wff_light@vip.163.com>
To: dev@dpdk.org
Cc: Feifei Wang <wangfeifei40@huawei.com>
Subject: [PATCH v8 1/7] net/hinic3: add support for new SPx series NIC
Date: Tue, 24 Mar 2026 09:55:04 +0800	[thread overview]
Message-ID: <20260324015516.201-2-wff_light@vip.163.com> (raw)
In-Reply-To: <20260324015516.201-1-wff_light@vip.163.com>

From: Feifei Wang <wangfeifei40@huawei.com>

Add new device id to support Huawei new SPx series Network Adapters.

Signed-off-by: Feifei Wang <wangfeifei40@huawei.com>
---
 doc/guides/nics/features/hinic3.ini    | 11 ++++++++---
 doc/guides/nics/hinic3.rst             |  5 ++++-
 doc/guides/rel_notes/release_26_03.rst |  8 ++++++++
 drivers/net/hinic3/base/hinic3_csr.h   | 18 +++++++++---------
 drivers/net/hinic3/base/hinic3_hwif.c  | 10 +++++++---
 drivers/net/hinic3/hinic3_ethdev.c     | 14 +++++++-------
 6 files changed, 43 insertions(+), 23 deletions(-)

diff --git a/doc/guides/nics/features/hinic3.ini b/doc/guides/nics/features/hinic3.ini
index bc70c887cb..74fea318ee 100644
--- a/doc/guides/nics/features/hinic3.ini
+++ b/doc/guides/nics/features/hinic3.ini
@@ -20,14 +20,18 @@ Allmulticast mode    = Y
 Unicast MAC filter   = Y
 Multicast MAC filter = Y
 RSS hash             = Y
+RSS key update       = Y
 RSS reta update      = Y
+SR-IOV               = Y
 VLAN filter          = Y
 Flow control         = Y
 CRC offload          = Y
+VLAN offload         = Y
+QinQ offload         = P
 L3 checksum offload  = Y
 L4 checksum offload  = Y
-Inner L3 checksum    = Y
-Inner L4 checksum    = Y
+Inner L3 checksum    = P
+Inner L4 checksum    = P
 Packet type parsing  = Y
 Basic stats          = Y
 Extended stats       = Y
@@ -40,12 +44,13 @@ ARMv8                = Y
 
 [rte_flow items]
 any                  = Y
-eth                  = Y
+eth                  = P
 icmp                 = Y
 ipv4                 = Y
 ipv6                 = Y
 tcp                  = Y
 udp                  = Y
 vxlan                = Y
+
 [rte_flow actions]
 queue                = Y
diff --git a/doc/guides/nics/hinic3.rst b/doc/guides/nics/hinic3.rst
index e10f6bb450..a6117c713f 100644
--- a/doc/guides/nics/hinic3.rst
+++ b/doc/guides/nics/hinic3.rst
@@ -16,16 +16,19 @@ Features
 - Receiver Side Scaling (RSS)
 - Flow filtering
 - Checksum offload
+- VLAN/QinQ stripping and inserting
 - TSO offload
 - Promiscuous mode
 - Port hardware statistics
+- Jumbo frames
 - Link state information
 - Link flow control
 - Scattered and gather for TX and RX
 - Allmulticast mode
 - MTU update
 - Multicast MAC filter
-- Flow API
+- NUMA support
+- Generic Flow API
 - Set Link down or up
 - VLAN filter and VLAN offload
 - SR-IOV - Partially supported at this point, VFIO only
diff --git a/doc/guides/rel_notes/release_26_03.rst b/doc/guides/rel_notes/release_26_03.rst
index 3d2ed19eb8..cbc71af8f0 100644
--- a/doc/guides/rel_notes/release_26_03.rst
+++ b/doc/guides/rel_notes/release_26_03.rst
@@ -81,6 +81,14 @@ New Features
   * Added application-initiated device reset.
   * Added support for receive flow steering.
 
+* **Updated Huawei hinic3 ethernet driver.**
+
+  * Added support for Huawei new SPx NICs, including SP230 and SP920(DPU).
+  * Added support for GENEVE tunnel TSO, IP-in-IP tunnel TSO of SP230.
+  * Added support for VXLAN-GPE CKSUM of SP620.
+  * Added support for tunnel packet outer UDP checksum.
+  * Added support for QinQ of SP620.
+
 * **Updated Intel idpf ethernet driver.**
 
   * Added support for time sync features.
diff --git a/drivers/net/hinic3/base/hinic3_csr.h b/drivers/net/hinic3/base/hinic3_csr.h
index 94b10601c4..eceb34e9fd 100644
--- a/drivers/net/hinic3/base/hinic3_csr.h
+++ b/drivers/net/hinic3/base/hinic3_csr.h
@@ -5,15 +5,15 @@
 #ifndef _HINIC3_CSR_H_
 #define _HINIC3_CSR_H_
 
-#ifdef CONFIG_SP_VID_DID
-#define PCI_VENDOR_ID_SPNIC    0x1F3F
-#define HINIC3_DEV_ID_STANDARD 0x9020
-#define HINIC3_DEV_ID_VF       0x9001
-#else
-#define PCI_VENDOR_ID_HUAWEI   0x19e5
-#define HINIC3_DEV_ID_STANDARD 0x0222
-#define HINIC3_DEV_ID_VF       0x375F
-#endif
+#define PCI_VENDOR_ID_HUAWEI	0x19e5
+
+#define HINIC3_DEV_ID_SP620	0x0222
+#define HINIC3_DEV_ID_VF_SP620	0x375F
+
+#define HINIC3_DEV_ID_SP230	0x0229
+#define HINIC3_DEV_ID_VF_SP230	0x3750
+
+#define HINIC3_DEV_ID_SP920	0x0224
 
 /*
  * Bit30/bit31 for bar index flag.
diff --git a/drivers/net/hinic3/base/hinic3_hwif.c b/drivers/net/hinic3/base/hinic3_hwif.c
index 080254bf44..c82b223fa0 100644
--- a/drivers/net/hinic3/base/hinic3_hwif.c
+++ b/drivers/net/hinic3/base/hinic3_hwif.c
@@ -138,7 +138,11 @@
 
 #define HINIC3_GET_REG_ADDR(reg) ((reg) & (HINIC3_REGS_FLAG_MASK))
 
-#define HINIC3_IS_VF_DEV(pdev) ((pdev)->id.device_id == HINIC3_DEV_ID_VF)
+static inline bool hinic3_is_vf_dev(const struct rte_pci_device *pdev)
+{
+	return pdev->id.device_id == HINIC3_DEV_ID_VF_SP620 ||
+	       pdev->id.device_id == HINIC3_DEV_ID_VF_SP230;
+}
 
 uint32_t
 hinic3_hwif_read_reg(struct hinic3_hwif *hwif, uint32_t reg)
@@ -552,7 +556,7 @@ hinic3_get_bar_addr(struct hinic3_hwdev *hwdev)
 	void *db_base = NULL;
 	int cfg_bar;
 
-	cfg_bar = HINIC3_IS_VF_DEV(pci_dev) ? HINIC3_VF_PCI_CFG_REG_BAR
+	cfg_bar = hinic3_is_vf_dev(pci_dev) ? HINIC3_VF_PCI_CFG_REG_BAR
 					    : HINIC3_PF_PCI_CFG_REG_BAR;
 	cfg_regs_base = pci_dev->mem_resource[cfg_bar].addr;
 
@@ -561,7 +565,7 @@ hinic3_get_bar_addr(struct hinic3_hwdev *hwdev)
 			    "mem_resource addr is null, cfg_regs_base is NULL");
 		return -EFAULT;
 	}
-	if (!HINIC3_IS_VF_DEV(pci_dev)) {
+	if (!hinic3_is_vf_dev(pci_dev)) {
 		mgmt_reg_base =
 			pci_dev->mem_resource[HINIC3_PCI_MGMT_REG_BAR].addr;
 		if (mgmt_reg_base == NULL) {
diff --git a/drivers/net/hinic3/hinic3_ethdev.c b/drivers/net/hinic3/hinic3_ethdev.c
index 0f72728a95..da2d6722d2 100644
--- a/drivers/net/hinic3/hinic3_ethdev.c
+++ b/drivers/net/hinic3/hinic3_ethdev.c
@@ -3521,13 +3521,13 @@ hinic3_dev_uninit(struct rte_eth_dev *dev)
 }
 
 static const struct rte_pci_id pci_id_hinic3_map[] = {
-#ifdef CONFIG_SP_VID_DID
-	{RTE_PCI_DEVICE(PCI_VENDOR_ID_SPNIC, HINIC3_DEV_ID_STANDARD)},
-	{RTE_PCI_DEVICE(PCI_VENDOR_ID_SPNIC, HINIC3_DEV_ID_VF)},
-#else
-	{RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HINIC3_DEV_ID_STANDARD)},
-	{RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HINIC3_DEV_ID_VF)},
-#endif
+	{RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HINIC3_DEV_ID_SP620)},
+	{RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HINIC3_DEV_ID_VF_SP620)},
+
+	{RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HINIC3_DEV_ID_SP230)},
+	{RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HINIC3_DEV_ID_VF_SP230)},
+
+	{RTE_PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, HINIC3_DEV_ID_SP920)},
 
 	{.vendor_id = 0},
 };
-- 
2.45.1.windows.1


  reply	other threads:[~2026-03-24  1:55 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-31 10:05 [PATCH 0/7] hinic3 change for support new SPx NIC Feifei Wang
2026-01-31 10:05 ` [PATCH 1/7] net/hinic3: add support for new SPx series NIC Feifei Wang
2026-03-16 13:43   ` [V2 0/7] hinic3 change for support new SPx NIC Feifei Wang
2026-03-16 13:43     ` [V2 1/7] net/hinic3: add support for new SPx series NIC Feifei Wang
2026-03-16 13:43     ` [V2 2/7] net/hinic3: add enhance cmdq " Feifei Wang
2026-03-16 13:43     ` [V2 3/7] net/hinic3: use different callback func to split new/old cmdq operations Feifei Wang
2026-03-16 13:43     ` [V2 4/7] net/hinic3: add fun init ops to support Compact CQE Feifei Wang
2026-03-16 13:43     ` [V2 5/7] net/hinic3: add rx " Feifei Wang
2026-03-16 13:43     ` [V2 6/7] net/hinic3: add tx " Feifei Wang
2026-03-16 13:43     ` [V2 7/7] net/hinic3: use different callback func to support htn fdir Feifei Wang
2026-03-16 15:45     ` [V2 0/7] hinic3 change for support new SPx NIC Stephen Hemminger
2026-03-19  2:50       ` 回复: " wangfeifei (J)
2026-03-19 13:52     ` [v6 " Feifei Wang
2026-03-19 13:52       ` [V6 1/7] net/hinic3: add support for new SPx series NIC Feifei Wang
2026-03-19 13:52       ` [V6 2/7] net/hinic3: add enhance cmdq " Feifei Wang
2026-03-19 13:52       ` [V6 3/7] net/hinic3: use different callback func to split new/old cmdq operations Feifei Wang
2026-03-19 13:52       ` [V6 4/7] net/hinic3: add fun init ops to support Compact CQE Feifei Wang
2026-03-19 13:52       ` [V6 5/7] net/hinic3: add rx " Feifei Wang
2026-03-19 13:52       ` [V6 6/7] net/hinic3: add tx " Feifei Wang
2026-03-19 13:52       ` [V6 7/7] net/hinic3: use different callback func to support htn fdir Feifei Wang
2026-03-21 17:32       ` [v6 0/7] hinic3 change for support new SPx NIC Stephen Hemminger
2026-03-22 16:32       ` Stephen Hemminger
2026-03-23  8:04     ` [PATCH v7 " Feifei Wang
2026-03-23  8:04       ` [PATCH v7 1/7] net/hinic3: add support for new SPx series NIC Feifei Wang
2026-03-23 19:51         ` Stephen Hemminger
2026-03-23  8:04       ` [PATCH v7 2/7] net/hinic3: add enhance cmdq " Feifei Wang
2026-03-23  8:04       ` [PATCH v7 3/7] net/hinic3: use different callback func to split new/old cmdq operations Feifei Wang
2026-03-23  8:04       ` [PATCH v7 4/7] net/hinic3: add fun init ops to support Compact CQE Feifei Wang
2026-03-23  8:04       ` [PATCH v7 5/7] net/hinic3: add rx " Feifei Wang
2026-03-23  8:04       ` [PATCH v7 6/7] net/hinic3: add tx " Feifei Wang
2026-03-23  8:04       ` [PATCH v7 7/7] net/hinic3: use different callback func to support htn fdir Feifei Wang
2026-03-23 19:50         ` Stephen Hemminger
2026-03-24  1:19           ` 回复: " wangfeifei (J)
2026-03-24  1:55     ` [PATCH v8 0/7] hinic3 change for support new SPx NIC Feifei Wang
2026-03-24  1:55       ` Feifei Wang [this message]
2026-03-24  1:55       ` [PATCH v8 2/7] net/hinic3: add enhance cmdq support for new SPx series NIC Feifei Wang
2026-03-24  1:55       ` [PATCH v8 3/7] net/hinic3: use different callback func to split new/old cmdq operations Feifei Wang
2026-03-24  1:55       ` [PATCH v8 4/7] net/hinic3: add fun init ops to support Compact CQE Feifei Wang
2026-03-24  1:55       ` [PATCH v8 5/7] net/hinic3: add rx " Feifei Wang
2026-03-24  1:55       ` [PATCH v8 6/7] net/hinic3: add tx " Feifei Wang
2026-03-24  1:55       ` [PATCH v8 7/7] net/hinic3: use different callback func to support htn fdir Feifei Wang
2026-03-24  3:27       ` [PATCH v8 0/7] hinic3 change for support new SPx NIC Stephen Hemminger
2026-03-24  3:31       ` Stephen Hemminger
2026-03-24 14:41       ` Stephen Hemminger
2026-03-24 14:42       ` Stephen Hemminger
2026-03-25  1:30         ` 回复: " wangfeifei (J)
2026-03-25 13:37         ` Thomas Monjalon
2026-03-25 14:02           ` Thomas Monjalon
2026-03-18  2:19   ` [v3 " Feifei Wang
2026-03-18  2:19     ` [V3 1/7] net/hinic3: add support for new SPx series NIC Feifei Wang
2026-03-18  2:19     ` [V3 2/7] net/hinic3: add enhance cmdq " Feifei Wang
2026-03-18  2:19     ` [V3 3/7] net/hinic3: use different callback func to split new/old cmdq operations Feifei Wang
2026-03-18  2:19     ` [V3 4/7] net/hinic3: add fun init ops to support Compact CQE Feifei Wang
2026-03-18  2:19     ` [V3 5/7] net/hinic3: add rx " Feifei Wang
2026-03-18  2:19     ` [V3 6/7] net/hinic3: add tx " Feifei Wang
2026-03-18  2:19     ` [V3 7/7] net/hinic3: use different callback func to support htn fdir Feifei Wang
2026-03-18  6:20   ` [v4 0/7] hinic3 change for support new SPx NIC Feifei Wang
2026-03-18  6:20     ` [V4 1/7] net/hinic3: add support for new SPx series NIC Feifei Wang
2026-03-18  6:20     ` [V4 2/7] net/hinic3: add enhance cmdq " Feifei Wang
2026-03-18  6:20     ` [V4 3/7] net/hinic3: use different callback func to split new/old cmdq operations Feifei Wang
2026-03-18  6:20     ` [V4 4/7] net/hinic3: add fun init ops to support Compact CQE Feifei Wang
2026-03-18  6:20     ` [V4 5/7] net/hinic3: add rx " Feifei Wang
2026-03-18  6:20     ` [V4 6/7] net/hinic3: add tx " Feifei Wang
2026-03-18  6:20     ` [V4 7/7] net/hinic3: use different callback func to support htn fdir Feifei Wang
2026-03-18 12:31   ` [v5 0/7] hinic3 change for support new SPx NIC Feifei Wang
2026-03-18 12:31     ` [V5 1/7] net/hinic3: add support for new SPx series NIC Feifei Wang
2026-03-18 12:31     ` [V5 2/7] net/hinic3: add enhance cmdq " Feifei Wang
2026-03-18 12:31     ` [V5 3/7] net/hinic3: use different callback func to split new/old cmdq operations Feifei Wang
2026-03-18 12:31     ` [V5 4/7] net/hinic3: add fun init ops to support Compact CQE Feifei Wang
2026-03-18 12:32     ` [V5 5/7] net/hinic3: add rx " Feifei Wang
2026-03-18 12:32     ` [V5 6/7] net/hinic3: add tx " Feifei Wang
2026-03-18 12:32     ` [V5 7/7] net/hinic3: use different callback func to support htn fdir Feifei Wang
2026-01-31 10:05 ` [PATCH 2/7] net/hinic3: add enhance cmdq support for new SPx series NIC Feifei Wang
2026-01-31 10:05 ` [PATCH 3/7] net/hinic3: use different callback func to split new/old cmdq operations Feifei Wang
2026-01-31 10:06 ` [PATCH 4/7] net/hinic3: add fun init ops to support Compact CQE Feifei Wang
2026-01-31 10:06 ` [PATCH 5/7] net/hinic3: add rx " Feifei Wang
2026-01-31 10:06 ` [PATCH 6/7] net/hinic3: add tx " Feifei Wang
2026-01-31 10:06 ` [PATCH 7/7] net/hinic3: use different callback func to support htn fdir Feifei Wang
2026-01-31 18:17   ` [REVIEW] net/hinic3: use different callback func to support htnfdir Stephen Hemminger
2026-02-02  1:17     ` 回复: " wangfeifei (J)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260324015516.201-2-wff_light@vip.163.com \
    --to=wff_light@vip.163.com \
    --cc=dev@dpdk.org \
    --cc=wangfeifei40@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox