DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/nfp: support Corigine PCIe ID for the nfp PMD
@ 2022-08-26  5:50 Chaoyong He
  2022-08-26  6:08 ` Baowen Zheng
  0 siblings, 1 reply; 2+ messages in thread
From: Chaoyong He @ 2022-08-26  5:50 UTC (permalink / raw)
  To: dev; +Cc: oss-drivers, niklas.soderlund, James Hershaw

From: James Hershaw <james.hershaw@corigine.com>

Previously the nfp driver as supported NFP chips with the Netronome PCIe
ID. This patch extends the PMD to also support NFP chips with the
Corigine PCIe vendor ID (0x1da8), which at this point are assumed to be
otherwise identical from a software perspective.

Signed-off-by: James Hershaw <james.hershaw@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
---
 drivers/net/nfp/nfp_common.h    |  2 ++
 drivers/net/nfp/nfp_ethdev.c    | 12 ++++++++++++
 drivers/net/nfp/nfp_ethdev_vf.c |  8 ++++++++
 3 files changed, 22 insertions(+)

diff --git a/drivers/net/nfp/nfp_common.h b/drivers/net/nfp/nfp_common.h
index 6d917e4..6ceb7e9 100644
--- a/drivers/net/nfp/nfp_common.h
+++ b/drivers/net/nfp/nfp_common.h
@@ -16,6 +16,8 @@
 
 #define NFP_NET_PMD_VERSION "0.1"
 #define PCI_VENDOR_ID_NETRONOME         0x19ee
+#define PCI_VENDOR_ID_CORIGINE          0x1da8
+
 #define PCI_DEVICE_ID_NFP3800_PF_NIC    0x3800
 #define PCI_DEVICE_ID_NFP3800_VF_NIC    0x3803
 #define PCI_DEVICE_ID_NFP4000_PF_NIC    0x4000
diff --git a/drivers/net/nfp/nfp_ethdev.c b/drivers/net/nfp/nfp_ethdev.c
index 5cdd34e..3ab82d3 100644
--- a/drivers/net/nfp/nfp_ethdev.c
+++ b/drivers/net/nfp/nfp_ethdev.c
@@ -1071,6 +1071,18 @@
 			       PCI_DEVICE_ID_NFP6000_PF_NIC)
 	},
 	{
+		RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE,
+			       PCI_DEVICE_ID_NFP3800_PF_NIC)
+	},
+	{
+		RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE,
+			       PCI_DEVICE_ID_NFP4000_PF_NIC)
+	},
+	{
+		RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE,
+			       PCI_DEVICE_ID_NFP6000_PF_NIC)
+	},
+	{
 		.vendor_id = 0,
 	},
 };
diff --git a/drivers/net/nfp/nfp_ethdev_vf.c b/drivers/net/nfp/nfp_ethdev_vf.c
index d304d78..affea9d 100644
--- a/drivers/net/nfp/nfp_ethdev_vf.c
+++ b/drivers/net/nfp/nfp_ethdev_vf.c
@@ -505,6 +505,14 @@
 			       PCI_DEVICE_ID_NFP6000_VF_NIC)
 	},
 	{
+		RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE,
+			       PCI_DEVICE_ID_NFP3800_VF_NIC)
+	},
+	{
+		RTE_PCI_DEVICE(PCI_VENDOR_ID_CORIGINE,
+			       PCI_DEVICE_ID_NFP6000_VF_NIC)
+	},
+	{
 		.vendor_id = 0,
 	},
 };
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [PATCH] net/nfp: support Corigine PCIe ID for the nfp PMD
  2022-08-26  5:50 [PATCH] net/nfp: support Corigine PCIe ID for the nfp PMD Chaoyong He
@ 2022-08-26  6:08 ` Baowen Zheng
  0 siblings, 0 replies; 2+ messages in thread
From: Baowen Zheng @ 2022-08-26  6:08 UTC (permalink / raw)
  To: Chaoyong He, dev; +Cc: oss-drivers, Niklas Soderlund, James Hershaw

On August 26, 2022 1:50 PM, James wrote:
>Previously the nfp driver as supported NFP chips with the Netronome PCIe ID.
There seems to be a typo, the word "as" should be has?

>This patch extends the PMD to also support NFP chips with the Corigine PCIe
>vendor ID (0x1da8), which at this point are assumed to be otherwise identical
>from a software perspective.
>
>Signed-off-by: James Hershaw <james.hershaw@corigine.com>
>Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
>---
> drivers/net/nfp/nfp_common.h    |  2 ++
> drivers/net/nfp/nfp_ethdev.c    | 12 ++++++++++++
> drivers/net/nfp/nfp_ethdev_vf.c |  8 ++++++++
> 3 files changed, 22 insertions(+)
>
>diff --git a/drivers/net/nfp/nfp_common.h b/drivers/net/nfp/nfp_common.h
>index 6d917e4..6ceb7e9 100644
>--- a/drivers/net/nfp/nfp_common.h
>+++ b/drivers/net/nfp/nfp_common.h
>@@ -16,6 +16,8 @@
[...]
>1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-29  7:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26  5:50 [PATCH] net/nfp: support Corigine PCIe ID for the nfp PMD Chaoyong He
2022-08-26  6:08 ` Baowen Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).