[dpdk-dev] [PATCH 3/3] mlx5: handle 32 bit PCI domain
Stephen Hemminger
stephen at networkplumber.org
Wed Jun 21 18:35:45 CEST 2017
The PCI domain in Azure maybe 32 bits. When device is passed through
the domain is synthesize from the internal GUID.
Signed-off-by: Stephen Hemminger <sthemmin at microsoft.com>
---
drivers/net/mlx5/mlx5_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index eadf452b9e95..6a5733354b2c 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -1185,7 +1185,7 @@ mlx5_ibv_device_to_pci_addr(const struct ibv_device *device,
/* Extract information. */
if (sscanf(line,
"PCI_SLOT_NAME="
- "%" SCNx16 ":%" SCNx8 ":%" SCNx8 ".%" SCNx8 "\n",
+ "%" SCNx32 ":%" SCNx8 ":%" SCNx8 ".%" SCNx8 "\n",
&pci_addr->domain,
&pci_addr->bus,
&pci_addr->devid,
--
2.11.0
More information about the dev
mailing list