From: longli@linuxonhyperv.com
To: Stephen Hemminger <stephen@networkplumber.org>,
Wei Hu <weh@microsoft.com>
Cc: dev@dpdk.org, Long Li <longli@microsoft.com>
Subject: [PATCH] net/mana: support MANA in PF mode
Date: Wed, 25 Jun 2025 16:50:01 -0700 [thread overview]
Message-ID: <1750895401-5903-1-git-send-email-longli@linuxonhyperv.com> (raw)
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
reply other threads:[~2025-06-25 23:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1750895401-5903-1-git-send-email-longli@linuxonhyperv.com \
--to=longli@linuxonhyperv.com \
--cc=dev@dpdk.org \
--cc=longli@microsoft.com \
--cc=stephen@networkplumber.org \
--cc=weh@microsoft.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;
as well as URLs for NNTP newsgroup(s).