From: Feifei Wang <wff_light@vip.163.com>
To: dev@dpdk.org
Cc: Feifei Wang <wangfeifei40@huawei.com>
Subject: [PATCH 1/7] net/hinic3: add support for new SPx series NIC
Date: Sat, 31 Jan 2026 18:05:57 +0800 [thread overview]
Message-ID: <20260131100608.12429-2-wff_light@vip.163.com> (raw)
In-Reply-To: <20260131100608.12429-1-wff_light@vip.163.com>
From: Feifei Wang <wangfeifei40@huawei.com>
Add new device id to suuport Huawei new SPx series Network Adapters.
Signed-off-by: Feifei Wang <wangfeifei40@huawei.com>
---
drivers/net/hinic3/base/hinic3_csr.h | 16 ++++++++--------
drivers/net/hinic3/base/hinic3_hwif.c | 4 +++-
drivers/net/hinic3/hinic3_ethdev.c | 14 +++++++-------
3 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/drivers/net/hinic3/base/hinic3_csr.h b/drivers/net/hinic3/base/hinic3_csr.h
index 94b10601c4..e601ffafa7 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 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_920 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..24afec3d1b 100644
--- a/drivers/net/hinic3/base/hinic3_hwif.c
+++ b/drivers/net/hinic3/base/hinic3_hwif.c
@@ -138,7 +138,9 @@
#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)
+#define HINIC3_IS_VF_DEV(pdev) ( \
+ (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)
diff --git a/drivers/net/hinic3/hinic3_ethdev.c b/drivers/net/hinic3/hinic3_ethdev.c
index 0e25175ba1..a5116264b0 100644
--- a/drivers/net/hinic3/hinic3_ethdev.c
+++ b/drivers/net/hinic3/hinic3_ethdev.c
@@ -3525,13 +3525,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_VF_SP920)},
{.vendor_id = 0},
};
--
2.45.1.windows.1
next prev parent reply other threads:[~2026-01-31 10:06 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 ` Feifei Wang [this message]
2026-03-16 13:43 ` [V2 " 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 ` [PATCH v8 1/7] net/hinic3: add support for new SPx series NIC Feifei Wang
2026-03-24 1:55 ` [PATCH v8 2/7] net/hinic3: add enhance cmdq " 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=20260131100608.12429-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