From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) by dpdk.org (Postfix) with ESMTP id 05D1F58F4 for ; Sat, 4 Jan 2014 07:07:19 +0100 (CET) Received: by mail-pa0-f43.google.com with SMTP id bj1so16600349pad.2 for ; Fri, 03 Jan 2014 22:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=Lud2xSmPt5Du6jTGtx5vHBYwMRO2u+0XMIYrfLCpX1o=; b=kQYchWn0ZchVBi8RgikClMwxmgngqEDjPktN1scCN++YDiSBqlvakHaZrNyLw+Ii0k oSyi6rOyLuINFK/SxREabchdX5Gjj2fl9O3SmyLYol08hz1PSdpK8HrQoDyi2sdSwc4U iP+UvkwYcjlfF7GG6ppr1zZZ+6/n5CLxRfmYIt8y6r66sB+d8PScym9mRwv8V+s+Jytu CTwQPafxGGSi6JuzuXyEjdGfw03YHH0Q7sFOVz3CWlBcLMaV2KBr5MSr73vIUC5Jr94u uOFIRxWrzOVLoXSVbkDWPwaTH+xvQqceCQH8QlNkDdgvZo+I8jo+wm+57GsHXozbP7ul BlrQ== X-Received: by 10.68.178.197 with SMTP id da5mr100767353pbc.28.1388815710297; Fri, 03 Jan 2014 22:08:30 -0800 (PST) Received: from hjpc.localdomain ([202.108.52.220]) by mx.google.com with ESMTPSA id pa1sm148164806pac.17.2014.01.03.22.08.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jan 2014 22:08:29 -0800 (PST) From: Asias He To: dev@dpdk.org Date: Sat, 4 Jan 2014 14:07:34 +0800 Message-Id: <1388815654-2088-1-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.8.4.2 Subject: [dpdk-dev] [PATCH] pmd: Fix pci_id match X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2014 06:07:20 -0000 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 --- 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