From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f48.google.com (mail-pg0-f48.google.com [74.125.83.48]) by dpdk.org (Postfix) with ESMTP id 5607E7D06 for ; Wed, 21 Jun 2017 18:35:55 +0200 (CEST) Received: by mail-pg0-f48.google.com with SMTP id e187so26845327pgc.1 for ; Wed, 21 Jun 2017 09:35:55 -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=wua9ixHur3QipT7/NhXqvrz6ibjY5jho9sduEY4ymII=; b=Har9KRFIAjl+NYoy0/aONb9+pObcyzBD8G8brb7RU2oTKedx9lDJOSDHaZPcz5TKXq wh5H6BRKLi8GF/xNXoQIAm/23oQwI3RiUdNg7j0h9PstEHc/yMHPmBvprj4j8H6Juemx +ZJXLs1hzsCVkvjndp62MIJ3JzrdVITr/G1SHu0rtkShQsIM1E9PGXgFLrLKQGYZcXli y1trJ+r2YO+vcp5apjpPXzPBbZ5pRdhDK1UkC7NIm8dCXXU1XME9Pd5rX+pPk0r5Lhq4 12vEYfQHtIPsh0cTngrcsCxMzxtyLzDkG0+GmqvN9FNMLAqKLnvw5iLj6Fmp7iL0cZn1 AAtw== 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=wua9ixHur3QipT7/NhXqvrz6ibjY5jho9sduEY4ymII=; b=IqXrC1ilgjp4YQMSfvlpHGaI1IFwgUQAogB58nt9vUOwHYJcvo01QHGi2JjS6IxH+H mC0/qPSU5qMunNwqjqrSD9PMQdOkXR1vYm06aG7idKCeehDLRVg/PdlitdKLb/yh9tBe YnIikWqYx5H8AlBoVwjUiDmXXn2Rv7QQdUn1dCcTE/aNI1PO3bfOfFie29HNyzzAI5/p x98c1axhRpTpP3gmGsQZetlQ+gNtOTSuAZ2/YKpqUfeTuytPMe5xStiBltgMeDGlho7T Jib8KTGizIAVPja6w8dNOgCIQFB8mPSfygfhOFeZoWU3cUUUgDXBNgYMQ5SDyUcK88BM x6Hw== X-Gm-Message-State: AKS2vOzXlZ6fRICqBeTYxbxC0s9QO1kKAaWc1TbTTbrd+P0FaPs9z5Vd QYqkLn9unWO2TR8HDOVHog== X-Received: by 10.101.91.71 with SMTP id y7mr14823479pgr.44.1498062954981; Wed, 21 Jun 2017 09:35:54 -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.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 09:35:54 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Wed, 21 Jun 2017 09:35:44 -0700 Message-Id: <20170621163545.25713-3-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 2/3] eal: PCI domain should be 32 bits 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 In some environments, the PCI domain can be larger than 16 bits. For example, a PCI device passed through in Azure gets a synthetic domain id which is internally generated based on GUID. The PCI standard does not restrict domain to be 16 bits. This change breaks ABI for API's that expose PCI address structure. Signed-off-by: Stephen Hemminger --- lib/librte_eal/common/include/rte_pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 0284a6208aa5..8b549aadfbe6 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -112,7 +112,7 @@ struct rte_pci_id { * A structure describing the location of a PCI device. */ struct rte_pci_addr { - uint16_t domain; /**< Device domain */ + uint32_t domain; /**< Device domain */ uint8_t bus; /**< Device bus */ uint8_t devid; /**< Device ID */ uint8_t function; /**< Device function. */ -- 2.11.0