From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0040.outbound.protection.outlook.com [104.47.33.40]) by dpdk.org (Postfix) with ESMTP id D3C4A7CC5 for ; Tue, 18 Jul 2017 08:01:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=k1Ih5f9vKI0dN0q3kLWRvyvI2YDFe3xWjb7wSUWpLh4=; b=CVmaEgPFrSK3dnDqu5ODatMpjuqMvOzHvGQJr0ZYr8rPvDlfevpaZpCx954Pwjt66Z4fF6pNoVDQfB86EpDDJjTi155FX5FZLVaJfwX10l+tWpXyJNL7Ly4nHde2js+F/m60c1uG9Lu/2avCjz7FitbDuQYQAVqTpnAkBmh3kKI= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (14.140.2.178) by CY4PR07MB3096.namprd07.prod.outlook.com (10.172.115.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Tue, 18 Jul 2017 06:01:02 +0000 From: Santosh Shukla To: thomas@monjalon.net, dev@dpdk.org Cc: bruce.richardson@intel.com, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com, gaetan.rivet@6wind.com, sergio.gonzalez.monroy@intel.com, anatoly.burakov@intel.com, stephen@networkplumber.org, maxime.coquelin@redhat.com, olivier.matz@6wind.com, Santosh Shukla Date: Tue, 18 Jul 2017 11:29:45 +0530 Message-Id: <20170718055950.10208-8-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170718055950.10208-1-santosh.shukla@caviumnetworks.com> References: <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> <20170718055950.10208-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: SG2PR01CA0029.apcprd01.prod.exchangelabs.com (10.165.9.167) To CY4PR07MB3096.namprd07.prod.outlook.com (10.172.115.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 508aff66-178b-4e19-cdc1-08d4cda261c3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3096; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 3:tSZYex+Jnoe75u7i2c/D+EBytoGU92iExBz5sUVNUdrskZbzMnqlNyrc/KYsg55Yq5eMYhnC+SsU/42fsOf4I8p+xDRaPeJBp1sgTonmPuAmuVc8k6H7jXPOVjz1sdF3gaz6XcYnyURClAuHeMrQF+EBhK6tFIPQ23O7JI6OXrfVUtthGA3juMoHw2RgY8GgFUG3qw7mjktZET5Pq/j9GrNKlVrpGdEJFFWrFCSTKl/emf982T2I2TpsLGDO+M9YzpvUOGP0X/uAlaVLZirATN11PV5zGA8ggITFhnZtHSRgoPq/T2yJq+ZuCcFs7Cjc/QlsyFPNCEEUuk2ANQudgpvCdFZ42k5X7Jx5Zk+fLutsEyI+lvpBrfiJ8+XZniz/bxUCCUL+UbPbb1njRDtfn0qdITS5wfSOMzyC4PhT2b+3K63mUe99+/J/yc2nRfbiul21OoaYXSqm59hq5JgVY+XM99NspkV/O8rlXN/eNdOzAGNaEs1hecqujkcpl+qsnft77v7dy5609GElcDoKaQuoP4AyQWmuBZy0jCMX0PCgTC/hJew8ZDl4irsS2sjzJd6iAjNkSshQv5Omy7fC/RtMO7EeQGSXXOumPjZmd8nv15coPfJeVCVud1dVXMGvqePfIywup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xsDqPHv+Nc2qdSQ4jTcs/loMJiK1sbDE/54M+SaZ4zQuZCP1rfQOCf7MJ2Ba6GWyOsQS96YU5mnmni+wzmKnx+sXTHc0734enCJBpwo602WuusMoh8afFqAXlJ0R1S+s7iGskOkeWfDPtfVeH/XmR2qEtW5n7lblvEWF9IK3JGcnvhgYgm5mWJ30UzNL5x3+VYmu+Fu+MvxxUr61fhZ9zwWoKWo4PuLvUc8KCSPIUFFw4b9XhmihkxDEkKW112/iQ9CPugJd0Ddu9Ysjbp42c8hWSdu7NtLhQKF2Y8XopqRUbeEt0Jnqavyh2MBYIz7Q9eOZTUTPML0= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(247924648384137); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(93006095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3096; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3096; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3096; 4:eZ9doJOA9Wei44VQb/iisYosgKOZX/Yksjqi6JLuqT?= =?us-ascii?Q?tBpUeAIh0TdysfByhP8iRizdu25O9hU5u9Ww+IZ3b+oi1mhZFvBoEZrPHKQa?= =?us-ascii?Q?q8l+qqoUikWYOqzf3+RRE/bBNisEs9IcRPM6ThjYjepxJw63zKAc3uxA1e0M?= =?us-ascii?Q?aGDBkFrLmBzD9cEgbk0ueTnv/uO8kxyCYqCaEjjPU+mtmRp53zGzax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uCl1GljVNVxHfzNIf+vJtDxUgZ46sSVsfr1wXcMH+bE3XJNSoP5?= =?us-ascii?Q?bXGQPdpfoF+SPkczXef5yGUN0oxsNkO7xkG7LTR+mv8r6NqkrGLnkS/3+pdM?= =?us-ascii?Q?dl0BeEWzna6cIM/sUpJ/rhaLqIBRMmmJAWIQHn0uEbOmTTRbuBVgE0mA=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 037291602B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6069001)(6009001)(39410400002)(39850400002)(39400400002)(39450400003)(39840400002)(39860400002)(48376002)(25786009)(66066001)(42186005)(50226002)(81166006)(6666003)(189998001)(8676002)(6486002)(110136004)(2906002)(107886003)(38730400002)(7416002)(36756003)(5660300001)(7736002)(47776003)(1076002)(76176999)(50986999)(5003940100001)(305945005)(6512007)(478600001)(4326008)(72206003)(53936002)(575784001)(7350300001)(3846002)(6506006)(33646002)(2950100002)(5009440100003)(50466002)(6116002)(8656003)(42882006)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3096; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3096; 23:OKHZYDzDtVWQfo0D9wtIS7TQG3EbL1KFcUnP/V0Hz?= =?us-ascii?Q?BD7XT4wDSOJOILJaIML9ZXJBR1hqPJIWmcMoO+FBmbKVtaKf0GJec+VlXif5?= =?us-ascii?Q?JfqP270h2/wHvXdL/oOqCH9K3d3x8diC9iV5ObqHCJlCi+MS2hOt3XLkOoes?= =?us-ascii?Q?lLCSupy8MtbsT6/jfIS1l43mBqKa/nW/VNuBZysU/nRm7GtDI/bY+e+z8kZK?= =?us-ascii?Q?eyszhlhWARqlxc04ck89mia5Bv5LaXJbSWWcoB2kvco7pT0u8DusRtSeYDqA?= =?us-ascii?Q?sKfm89LQxpbyOViSZhoripmE+EaH+V31fx0iF/igvykoYYtN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0bhqco0ODDt5i0NPjzS4DbVFS9VRtx6bYweiirkbd?= =?us-ascii?Q?AynVRdNYKO7+oY3QvMOUW/RHCcEU7m2AH08WmFMEXNB5xdcVpm0JO5r5dalx?= =?us-ascii?Q?8XYFpOBXzFtHDgRYdOs9wVgm+dGg9VDkX3LNJy81FZYslKX1YUIJqBaJmYnO?= =?us-ascii?Q?qcitY8eEsw/HCGlfei3VcmnrT4aE97IHRUJaNQjod7NxtTF+zRcqJ7yHcwd0?= =?us-ascii?Q?xWVnc6QnzfEYDpDZ+uiuc4r67UcvTh409voto9qV6RuwFT72dlzJdjmKv/Tg?= =?us-ascii?Q?8=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 5:/VB3FBdzVCrExH7aEH4hZzGL4FesBKUAhwi/k9829zvvg0N0G0Y5qmjTQXqNx50XFBCava/FiZGU7biL7WU5LKM6wo9T86sQueRwilQRps4cKy44v48dJejzdONn3FuVi1fOTyop8gjjlL7Vf/pCUy3S+8dUQRaNJUWsiC3tsJV1CtHlTSOytXXS/fIVQMEAmsIlu4yrBbE9X00okagHjD9RmIxHVBE6wIp9dbBnF/zB2LgbKR4bn2niksWbSKbT3lgCAzQmvGmdor/59mlG8AMkpO1WMRlPQt025CWhcV+nr1etC4sjETa3t7B3sptplESni3d0kdlV/1nLynF8zF1RLYetIbisZB8Zk0ZdEZQRmZy7nkn9X/A97ApP99eq1Y6KA9cJLnAdJvH53muaUln8WXxRaZeyKumJul93KbgAjwkEI/M0PkMJ1lROHaHeikWKh/WDvlfQTEKLFwm1oikgy5CtUddHI/7xJYSLayq7wTGauTcrcXB9t8jMJ92u; 24:TUJ0wLZnP7FQj0+dwl23sQSxJcAF7CKNR/bH38WIxA14t1S0MsAE5fWEmBRTC4ZVB6+6Ht70OgSiHgzysx7veXy8SQHiI5SbDVIQ9CbVMTw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 7:VlS4n+1uyVeOaxbxMFUOJtuAzVoe0NklYO1NdwbngAAi5lGK6+0N6pH92vylZXT9TfSY+mhuNZbkNHSwwVxMocZ6/tTXlsnRFUldGU6lbXX/8UVEbPRCYdKHwABSmuWFiFJU0Wvq7P/u3aRQA5pUtaFstQ0DUbGOcbtVUYsXO8kfOIYbp6R3CyaMW7Ce4k0gT2dHKmr/x/pwBjJcHp2xgumcJydWZgjG7BY7KqXUKlUEZY+hnlUI945l0UWGB2pucC1j9jI0X9fF8GjvQ0MEJKiLvcqk4xSDc4hgcai9oY72OcGM8uc1WLeyeAU5AV6QrW4Drt4MEKRCBtNsWkLZnuCfAZuFMohtFCQ5Ib2CYQr1hgKRUeRAKVFFv7wTsqZGwqAoTKDxHJ7X4OTSSGiiieQjWS9NotOBO7/AJ5rF0wYyOZvzMqe7Bwzl0c0wqT37R6Uk10bI2Xpsg8D8wFUzXEKVM2S+72Iwd0eRFkTbH3Pq4YDPJGS9BIuLPaeiQPYZq631kE16Ew2y2+a0M0m/xEAu4XrZXMpoUpjhrHqFHyzouV/cNw+fK+tUKN4YophCHS09v0Ei7gTf6XpMupYF6S123l96Rlu6VrGG7x8f1k9egRMcke93OYRaYEyCGmEvuzcQcio1cmxhBVqfQHeZssurpQk0H/EsIhyVQuCliMjjwU9+l1MSIiiPwIKZz0V/Se66bQNhozDVK3zTAQoSJVPH9g6LDogQF5VLTzj6FunxSrfgiplnQCKEDrxvNfGyilD3fO6YzjvJpl4b734VagVF4S9mKEBABRnZUgd33AI= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2017 06:01:02.9075 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3096 Subject: [dpdk-dev] [PATCH v4 07/12] eal: introduce iova mode helper api 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: Tue, 18 Jul 2017 06:01:10 -0000 Introducing rte_eal_iova_mode() helper API. This API used by non-eal library for detecting iova mode. Signed-off-by: Santosh Shukla --- lib/librte_eal/bsdapp/eal/eal.c | 6 ++++++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/common/include/rte_eal.h | 12 ++++++++++++ lib/librte_eal/linuxapp/eal/eal.c | 6 ++++++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 + 5 files changed, 26 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 80fe21de3..2a49e9fde 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -119,6 +119,12 @@ rte_eal_get_configuration(void) return &rte_config; } +enum rte_iova_mode +rte_eal_iova_mode(void) +{ + return rte_eal_get_configuration()->iova_mode; +} + /* parse a sysfs (or other) file containing one integer value */ int eal_parse_sysfs_value(const char *filename, unsigned long *val) diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map index b9ee82b6b..75a86a9d7 100644 --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map @@ -203,6 +203,7 @@ DPDK_17.08 { rte_pci_match; rte_pci_get_iommu_class; rte_bus_get_iommu_class; + rte_eal_iova_mode; } DPDK_17.05; diff --git a/lib/librte_eal/common/include/rte_eal.h b/lib/librte_eal/common/include/rte_eal.h index 0e7363d77..932dc1a96 100644 --- a/lib/librte_eal/common/include/rte_eal.h +++ b/lib/librte_eal/common/include/rte_eal.h @@ -45,6 +45,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -87,6 +88,9 @@ struct rte_config { /** Primary or secondary configuration */ enum rte_proc_type_t process_type; + /** PA or VA mapping mode */ + enum rte_iova_mode iova_mode; + /** * Pointer to memory configuration, which may be shared across multiple * DPDK instances @@ -287,6 +291,14 @@ static inline int rte_gettid(void) return RTE_PER_LCORE(_thread_id); } +/** + * Get the iova mode + * + * @return + * enum rte_iova_mode value. + */ +enum rte_iova_mode rte_eal_iova_mode(void); + #define RTE_INIT(func) \ static void __attribute__((constructor, used)) func(void) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index b28bbab54..fffdf0d15 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -128,6 +128,12 @@ rte_eal_get_configuration(void) return &rte_config; } +enum rte_iova_mode +rte_eal_iova_mode(void) +{ + return rte_eal_get_configuration()->iova_mode; +} + /* parse a sysfs (or other) file containing one integer value */ int eal_parse_sysfs_value(const char *filename, unsigned long *val) diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map index 705af3adc..7161d1d83 100644 --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map @@ -208,6 +208,7 @@ DPDK_17.08 { rte_pci_match; rte_pci_get_iommu_class; rte_bus_get_iommu_class; + rte_eal_iova_mode; } DPDK_17.05; -- 2.11.0