From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f44.google.com (mail-pg0-f44.google.com [74.125.83.44]) by dpdk.org (Postfix) with ESMTP id 81F747CF0 for ; Wed, 21 Jun 2017 18:35:57 +0200 (CEST) Received: by mail-pg0-f44.google.com with SMTP id u62so59863101pgb.3 for ; Wed, 21 Jun 2017 09:35:57 -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=gNY530nzfKt/Emfo0b1iK1YZd071W2BsIvvUB/UIRfFv/vw5zAe5YIuWAcUSDmOJnr Ck3KngroHETiufWX3ks19n4cOCTtJbAAb0LuFgJNMZQSkgfmAPNg5Htxx5ZMSZ8oi7vH lF4Ro2b1mY7jtjWiBL3WH9+uPdEJFrJXeyJwZHRN31lu6LfPjOiWFgPkkse6RUa75Njh EpwZZP+Zo7SR6fmpdl1uj0pDQp+djDvDjR4jCejbZU2tkyIoGE2A7sNlDi30IvQ+Qala a77WaakOkEMwTsXbGtachOOZAUAmErXnR2Z4pCNw3PZIonP5VSTq9uuiAvvqmx3wu6HY UD8w== 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=lLZEPmqVGw9vLE6v9l6lbTHla1IsR5UeYx2Dhp/sbc9Xl5JbtqGkravQbpDrXKo4G5 WisK1iIeh2QP8/YLioHW2zb8ehUxiYfszcLw7bMmecxD2wciWLEhTy9gzu9sF9c5eFUG ola5zlhaV+ngPFlje8p5NMhr6H4oJuxqK5s2Ov4dBLGkj+AhgSuSwoIGvDguyFzUfaKb jbEpF0wc9Xa+w7IM2YRLvqcYCIzc3px3U4LdxD+waVBRCZPIWzp77mXcJZhS97jimnLm b4lTuTsSmQtyNeBOgtATD1FTGXSQ6gXTSkJvXog16gOpKNpz9VroPOkDoSSS68N8T0Sf uGlw== X-Gm-Message-State: AKS2vOwQ8VtuKgXy7R/lTSJ0gCZEe59OUb8ySXy17W91pI88odVYW7cl iFedA/qMHjyQ6Ij2PAn/gw== X-Received: by 10.98.87.195 with SMTP id i64mr36461384pfj.51.1498062956212; Wed, 21 Jun 2017 09:35:56 -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 k73sm38355884pge.13.2017.06.21.09.35.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 09:35:55 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Wed, 21 Jun 2017 09:35:45 -0700 Message-Id: <20170621163545.25713-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170621163545.25713-1-stephen@networkplumber.org> References: <20170621163545.25713-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 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: Wed, 21 Jun 2017 16:35:57 -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