From: Asias He <asias.hejun@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] pmd: Fix pci_id match
Date: Sat, 4 Jan 2014 14:07:34 +0800 [thread overview]
Message-ID: <1388815654-2088-1-git-send-email-asias.hejun@gmail.com> (raw)
Hex numbers in /proc/ioports are lowercase. we should make it lowercase
in pci_id as well. Otherwise devices like:
00:0a.0 Ethernet controller: Red Hat, Inc Virtio network device
would not be handled by virtio-net-pmd.
Signed-off-by: Asias He <asias.hejun@gmail.com>
---
virtio_user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/virtio_user.c b/virtio_user.c
index 68a7bec..04dd9ac 100644
--- a/virtio_user.c
+++ b/virtio_user.c
@@ -1385,7 +1385,7 @@ eth_virtio_dev_init(struct eth_driver *eth_drv, struct rte_eth_dev *eth_dev)
priv->pci_addr = eth_dev->pci_dev->addr;
- snprintf(pci_id, sizeof(pci_id), "%04X:%02X:%02X.%d",
+ snprintf(pci_id, sizeof(pci_id), "%04x:%02x:%02x.%d",
eth_dev->pci_dev->addr.domain,
eth_dev->pci_dev->addr.bus,
eth_dev->pci_dev->addr.devid,
--
1.8.5.1
next reply other threads:[~2014-01-04 6:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-04 6:07 Asias He [this message]
2014-01-06 9:38 ` [dpdk-dev] [virtio-net-pmd PATCH] " Thomas Monjalon
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=1388815654-2088-1-git-send-email-asias.hejun@gmail.com \
--to=asias.hejun@gmail.com \
--cc=dev@dpdk.org \
/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).