[v2] net/nfp: support Corigine PCIe ID for the nfp PMD
Checks
Commit Message
From: James Hershaw <james.hershaw@corigine.com>
Previously the nfp driver has 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(+)
Comments
On 9/20/2022 11:28 AM, Niklas Söderlund wrote:
> From: James Hershaw<james.hershaw@corigine.com>
>
> Previously the nfp driver has 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>
Applied to dpdk-next-net/main, thanks.
@@ -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
@@ -1072,6 +1072,18 @@ static const struct rte_pci_id pci_id_nfp_pf_net_map[] = {
RTE_PCI_DEVICE(PCI_VENDOR_ID_NETRONOME,
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,
},
@@ -504,6 +504,14 @@ static const struct rte_pci_id pci_id_nfp_vf_net_map[] = {
RTE_PCI_DEVICE(PCI_VENDOR_ID_NETRONOME,
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,
},