From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f54.google.com (mail-pg0-f54.google.com [74.125.83.54]) by dpdk.org (Postfix) with ESMTP id 6FFB758F6 for ; Thu, 22 Jun 2017 17:56:54 +0200 (CEST) Received: by mail-pg0-f54.google.com with SMTP id u62so9503431pgb.3 for ; Thu, 22 Jun 2017 08:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PnkQGNr6Ph88a1AgL7cg3BD5aS0Dq8c7zDLdIKnOTUs=; b=QXYSkIGZb9UkUawpZ7JkvzvK/Qzih8vuEdwkg0mb5/V2RjaEwZQbVpK5nfm0YGcS4+ rXAAYk9EXH0shdYRKgk0XX91JEAvsTENUnzO52wdt4OmtCeXHkQdTrIcXGY4RYvMQ5m6 3exCcZSeHD91lm3MUz/KFQezaaEGBz7Y0Ndf8U1rIMqy9QiS8CRFx/L5SJQlSVkgwoGs 9NyQ4pWtL3VakTql2HFhMOpLErKGIZdG8bIqUVTNplhsg6rkQEb0r8a4OB1qCpvgvtkZ OOb1yv3BOt3vGM7xrW+RN30BWaxAjD68s9pXuT28gIBDWhu8ihQmGBCDOrg9e7PlcIjH BjBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PnkQGNr6Ph88a1AgL7cg3BD5aS0Dq8c7zDLdIKnOTUs=; b=N7qnnAy4Jwq+kFDr/h+8SAHau9hY9pRhGiXhvj028PX9RBF7vo1zS8Su+b6lgQI7yH p0XKiPK5M0jmuPhxyZ6uR/Wv9wNnuvhkR5NN0y9z4GTIVHTt+zeGM+1Kg00GkCZwHg0d 2Oi8hCxP1z0cxr2/v0IFgIyGbgTmDgI8m2yBM6z819DFv7WcC3Ha5o8keHFGfpnmFb3h dyThN/uMrMJaMiaSij6cavnf29gyJIIGwOY53eADI4NTWz67eFjZ2IsWDVAnYV+g7NHv nsD78VrnpEH50fS/ncClHJ1dR3G/rpn3DUKdIVBwap+xJu+qGh6jhUz7RM25MgqepXPl p+qg== X-Gm-Message-State: AKS2vOxfllikWCfsiEfZcIIK5HDxL3De9iEs4dz5pMHoC4C+2EaVoIpb uUcJRDeSRcx9gZldgF+ciA== X-Received: by 10.99.122.3 with SMTP id v3mr3293799pgc.98.1498147013389; Thu, 22 Jun 2017 08:56:53 -0700 (PDT) Received: from xeon-e3.wavecable.com (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id y28sm4678939pfd.32.2017.06.22.08.56.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jun 2017 08:56:52 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Thu, 22 Jun 2017 08:56:41 -0700 Message-Id: <20170622155641.25916-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170622155641.25916-1-stephen@networkplumber.org> References: <20170622155641.25916-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH v2 3/3] mlx5: handle 32 bit PCI domain X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2017 15:56:55 -0000 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 --- 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