* [PATCH] net/mana: support MANA in PF mode
@ 2025-06-25 23:50 longli
0 siblings, 0 replies; only message in thread
From: longli @ 2025-06-25 23:50 UTC (permalink / raw)
To: Stephen Hemminger, Wei Hu; +Cc: dev, Long Li
From: Long Li <longli@microsoft.com>
MANA can operate in both PF and VF mode. In PF mode, the PCI device
has a different device ID.
Add this ID to the PCI table for supporting MANA in PF mode.
Signed-off-by: Long Li <longli@microsoft.com>
---
drivers/net/mana/mana.c | 4 ++++
drivers/net/mana/mana.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c
index 2934da29f7..a02bd73836 100644
--- a/drivers/net/mana/mana.c
+++ b/drivers/net/mana/mana.c
@@ -1636,6 +1636,10 @@ static const struct rte_pci_id mana_pci_id_map[] = {
RTE_PCI_DEVICE(PCI_VENDOR_ID_MICROSOFT,
PCI_DEVICE_ID_MICROSOFT_MANA)
},
+ {
+ RTE_PCI_DEVICE(PCI_VENDOR_ID_MICROSOFT,
+ PCI_DEVICE_ID_MICROSOFT_MANA_PF)
+ },
{
.vendor_id = 0
},
diff --git a/drivers/net/mana/mana.h b/drivers/net/mana/mana.h
index 855d98911b..2b319da943 100644
--- a/drivers/net/mana/mana.h
+++ b/drivers/net/mana/mana.h
@@ -6,6 +6,7 @@
#define __MANA_H__
#define PCI_VENDOR_ID_MICROSOFT 0x1414
+#define PCI_DEVICE_ID_MICROSOFT_MANA_PF 0x00b9
#define PCI_DEVICE_ID_MICROSOFT_MANA 0x00ba
struct mana_shared_data {
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-25 23:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-25 23:50 [PATCH] net/mana: support MANA in PF mode longli
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).