From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0043.outbound.protection.outlook.com [104.47.32.43]) by dpdk.org (Postfix) with ESMTP id 487D57CC8 for ; Tue, 11 Jul 2017 08:17:53 +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=j+f7mtxtl1Y69aYUBM0FqHE+q4Vyk/UNAEX1283A2xw=; b=iTy5Yb3ScWZk3EFpX+xRDr6sRihf0CkURtYPuRw3m/Oe6iEHd3BEgkZJUAkdekpNlK+oxtKbeoEgEQkTulHMb+taEurqCfr+4Z03IMVCyUNXto24zoXCRX5okQg1BPxfl9LEUpJ1hSAbA8Wjvu2rPA2nIe4bRZ1rx8OIu2j/+EQ= 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 (111.93.218.67) by CY4PR07MB3094.namprd07.prod.outlook.com (10.172.115.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Tue, 11 Jul 2017 06:17:47 +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, 11 Jul 2017 06:16:26 +0000 Message-Id: <20170711061631.5018-7-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> References: <20170710114235.18970-1-santosh.shukla@caviumnetworks.com> <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR01CA0103.apcprd01.prod.exchangelabs.com (10.170.138.157) To CY4PR07MB3094.namprd07.prod.outlook.com (10.172.115.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e4c52ee3-79ee-442d-71ef-08d4c8248eec 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:CY4PR07MB3094; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 3:aLvFX0GpzR122F0HLvxV2OpTG4H0yG4Hvflm1UD3BNy8fd7SO1sBQqi2rl4xIUqkl8LdSwUJgLogmMAeJizXo0PMoMzR6a5d6fV22TxBF1iLvNdtaiB6cnzuJqai4mvLakmq3gMyomPumTDZ7YCX3Iq0glovFnSNnu4QDheqRBcmt1pnt5lQRaFwpz3XUvG7PnJULhZkbBcA8c7FKae+8WAQefuI5lNiimneR1C6r4c1ESh40lZWtonDC9/uFIkyjfGr58177MC6rCcdgKfJefn6JkNdR9O95S9xTab+2p03azmgfozddQAdHVhYJ7riuylkvs0+3hHqfpNo8HTXuamW+ilnpty5Nfr63H3tyTA0vr9WBSDVUZqw6LA2X7Cv6jdwj+/jGby20XxHOpJ7+clXK52n6xGNbqR6JbNkb8e2Is2jbQKBvqTrWihRjZA3+rN+DjRF2do20l5ePcxJymNPZ1NPoo3/815ua44qieZ9DtszAlGOH+xJz6BmKLiqF3zgoqEo4U1U1GNSz9kIZ7ZblEeByJ5xn2jviJ7fJA3lRcEhkO5n1SqQVOzNsWWwlmmvzO4PnXP3r1pT8ASNXT3huf722OsEJg8w2uJPmuxq6LbYW+IBS4B81rY31BkIhKljc2AlV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GoBkXTLSpp6D8OnPA47QVKlE3yAta8C7Oad34AJA9dsz7eTuKMIkZWm0d3KBGiN+Sk4fNXkDiyQaejRPVxs9r3Njbe295s9aKqARB8T4aHQFM3duuUXVSuTPqZHUbWtmwf7x6cgB/P32ctFZ7LA3q+rjYbL7sHkZGInLLa1OPjv3TSNXaTWsgjslbqx/TxgGK/Kqkj6dYaQnsp5Q+6nw/NbQDJwMGryUDt098wqLRyhLvIwhmGBCNGUOQv5iPzC+r2u1mbbL0Ll1YABT23Kosdc9LF28Tg92zqjbWv4FvGALMMW5q+AOSxiIYwQWskAhTxeVhn5Idwgj32tEJ8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(6041248)(20161123560025)(20161123558100)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3094; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3094; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3094; 4:yKY+gySM5E4WZ1/fC6RU4mfKMfJNIfooE1SXam2ZvW?= =?us-ascii?Q?+sAXvIEDpbBO22uTgUDR4Lye9Ns9yMEeCr5YB73PWv0tQjZYVXwHmG9JXsqN?= =?us-ascii?Q?LnDMjXkJGokPj7Vm2/6OA0M/CBo6KD591JBB7dI+mlDcRsjWLoMcgO6LoYUN?= =?us-ascii?Q?0AEMIl0SUN88XTsDI/k40mJtyAjBNKYTc30gwwllWiVIVRWJzVupF768+Dyt?= =?us-ascii?Q?GJJBkSfN7m1QtZpinslbHdHeJ2LfZW9OpJJ8J2eLKwZim1XTa9S2MlEohd0s?= =?us-ascii?Q?aijXed6O8LotNt9mtN+f6sz8R6MOCnXcvz4KVgsANxyioSxqfRixUzCkSjCr?= =?us-ascii?Q?glYGfIBUbxDNyjxcli5bCNLltocdj1kO1IIMQLew9FCFtT9y2HfGXj2RuyND?= =?us-ascii?Q?McluwiB5GShiUDD4qdWRFNE/IpYeLmMVXy8dJei80rAu61+7AL/GAZE31BuA?= =?us-ascii?Q?fgbjGqFSDNH9wjukVMB6UMlIYxtymQF1ptmrWgiTvSX3MfDv82J5/Igk8uyk?= =?us-ascii?Q?HKgukKDaM3lnEDT4/719ZgUAT9XBJ8i8RPrD/EePJR2JiKGc37z1+bLib9hx?= =?us-ascii?Q?pEFhNr8Zv/IYHBh00fqqGi1CpGdwCEBJOv/FKi46D9gAEjSiLPPbjWFfi0qc?= =?us-ascii?Q?R7Y/fMVT5dOHxTfaFK1gMn9yIRza6hdzQXBFB0MLUgOibVWsy438adBH8Pp0?= =?us-ascii?Q?XfX89habA5+qmF5NPPPx6T2lLbc6kt19xgkSCx2pAPUHL7CgFsRpTadhjtyL?= =?us-ascii?Q?ArTFungRX4kURzC2m8Ts6uqgtIs1sPr/VkWbruEVbQk4hx7yqY31BJ8Zjbpr?= =?us-ascii?Q?nNxxeNjDGU2u02EbGxiseondH6K9ovaKRfPMWOPejDu09cnPj8UvLqFlp5lW?= =?us-ascii?Q?s7pvBUpSk1L82h6kXDgeUPMrsd2ZKIcyoxs5SOnHAffroLDu6JI3eEIuecRn?= =?us-ascii?Q?vcFbxU+X9eWGdW/jd6yyfoQbNoWcHt3BxasrSjS0sAwVdJQryb3Ndls+uPWb?= =?us-ascii?Q?JqFcwlo/aIX2MoItXWtZtGbEIIWB4YRMFugZNciOK6k/m+PVVPwTM/cWs7AG?= =?us-ascii?Q?ONU9XX51mUMQOWZmS/qydczqFtMb8orssPEbLAljQdemoU/lES2MfE36g/PC?= =?us-ascii?Q?dfPcspPIq0Uy3ziuI6wKfDVwA3LYPFSfgv8fInD9kS3AkfYKVoFEGnzJCAAN?= =?us-ascii?Q?961EiVHocO2aF3SnQvJOre7oGmffzzPVCveZpJgtVuEbEbFC/Bd0nueA=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 0365C0E14B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6069001)(6009001)(39850400002)(39450400003)(39400400002)(39410400002)(42882006)(2950100002)(6666003)(5003940100001)(575784001)(36756003)(50466002)(50226002)(2906002)(5660300001)(8656002)(6512007)(7416002)(7350300001)(189998001)(6486002)(6116002)(3846002)(305945005)(7736002)(1076002)(4326008)(33646002)(53936002)(42186005)(107886003)(110136004)(38730400002)(478600001)(5009440100003)(81166006)(72206003)(66066001)(76176999)(8676002)(25786009)(47776003)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3094; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3094; 23:rnjI2zYQPVnmmVsH2DytiL01tkst427JKe87X09Xq?= =?us-ascii?Q?oG43f2j1IUB5OpgC5f4frU02hv4f34hnx8n/22DVWsjq+g3NhXF22gz4cp0c?= =?us-ascii?Q?bdU7kvN3NUVyxCQNm80+ERtZtVK+C2t09BoKe6xRlRRn5zJcs52oHms/0Ywd?= =?us-ascii?Q?9WDkmwbKBl3N9m7tKoFYIcR8b+VF7lmIvRAvZ8K2VH+FOgy16vyIp0dgpHEP?= =?us-ascii?Q?5XONW5umFDtf/2dvSsz80xVXGfWSUVI/GL8jxmdNmRitr46n6bnWDDv352Jz?= =?us-ascii?Q?n/YxR44sZEcq+6hxOsQH63UkqmZDSIGbtx/WSYj6YxlyisCHPMrIVg5D190n?= =?us-ascii?Q?3AJfeQI3Ds7YSbEC5L8qarKaqYIoprezwPTN1OLWNVlNwQ/DgtGE6aXTRSbG?= =?us-ascii?Q?+HCyFHdwd8iFPKZKn7RWBR3atBX0u1RHSp7iz2e/PA93SwRGdzN6WEC5ltQ1?= =?us-ascii?Q?ewd5JII36q38r1p8mCB6e868XnSLAHztlPsoA4wlaO0aY9MHHS8eTwhe8BoF?= =?us-ascii?Q?lOBS2zLqFlIhlQBO5hV9PhgZgkt5MGeTB0rOiEmd1tNtteScgsL68QJuUTdG?= =?us-ascii?Q?4f2s7uLDNpvZHi1cDymH3K1fOxeV0LmXTetceaH6N6G5ENpQDuNtVLa4N58W?= =?us-ascii?Q?JvATotGcSNJGoaiZLEv84PcW+/52JUAgy29UFhsoYlAaLOk5fd311kO/wJx9?= =?us-ascii?Q?7fN1zNgR24iaqmdi+GwES1M9LVFYMJeclIZDQ9miHo1M8IrknjbwIKlncMWE?= =?us-ascii?Q?H9ceEmd9s+FIwrUGacpcDIemi5FVQ8x6CBe1jGmqMSG6seQ8AhQ/hRjgTeA0?= =?us-ascii?Q?JYXbVzZS6z6FnSWtTeORYfnrRjR5OmC4urLOxRlU06GaX/2/ozrifnnfTFgK?= =?us-ascii?Q?7Pv0lbxgxaPiPrX55ySBbE2dbbLDDz12TevLRmVxiK8bscR6hFWIs0lY5wwS?= =?us-ascii?Q?cChajWdsVdQvMKYY44IGNdXgMzaPurf0enbvHYoXJe/ovhudQIEC8hZc3BVE?= =?us-ascii?Q?3PoOjkVTCVGCpyZEH4vuXDbgt3oiKzdqhxwWU/X753eN8WEtG2dBLftTj0G4?= =?us-ascii?Q?urtUaJ/Tw1bchtx+Icwvhfb6EcUyYVr1yeTm6jcyRh9lUdFvr+DOYkSoAcOz?= =?us-ascii?Q?lyF6U/BKD1l9FoeGEa0mN1VtGhMvG1gf7lCe6NXlo9Vy4ercX9V6w=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3094; 6:/X41qFf0DCXdWvenbB8UDf8bkxVXrQVFvYo5qX30GT?= =?us-ascii?Q?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v7Ds9dCqT3/+dHLyuRzc9iS7?= =?us-ascii?Q?xCJ1AYSaQUVydEOwk26haAiAuv5AxrboWd+MQ/Ss5P37jVb/Z+zfqWvafnIa?= =?us-ascii?Q?0=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 5:WjfTV+39nC7uYuUpkzBrGk+29XkL0ArQ4AZySTeNPNFDa0lTePw+wLFT8ideFaoz8gfCRpSavcIdSBVsPdzxLql2TBUcnMRe9Q+wvn9ZuXI/YBie2t5AKgyNc09YFaa/Oa6tcfcC4Bqi0ghEd1Nib65m/5T6AqXYUF4pOGfdW5h1TzO6XWd8CKPJb+Pd8D7v2MLSr9k6s5sKA2y+g/yYG/sVwneVdxc44chJUF5al0QPxZkBZJr83vf+pHCiRRXAdobxMoFIRtTONByxU47JoMEx/lnt0KFeE+veEp0mFTpDKcFHlEnvSinFSkUJuwl9M1+Gk56hChytQEo4P21H23KWdQgkE7bLG+L+nZMMaDl0JNbCzkNC7OrJRf+afSsvjy12osKSJDfslIHRUHnvO4hhFfimLFP+LHLuY36OXyaRxhafR2MXDFEzFawseP76/RemOyX6BON9WfPmZN4uRLFnpOzSN9ODrX8458LIbb8HPsixeq5RN2AkqEkOf1Gv; 24:548LNZFYyyEBgOH1FOqAqkBP5kfP8fL0W4t8+k86vJrXxPmn7rBrJZJVzyfNsx2KLz5GqPxFJ/+bZU7Gv89dETcZwjwhNwUvt2ZcJg8vdMU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 7:xTH6F/ybPJFK28Gb/Q08rfCtjR5gVUtenT/jHF4LRU4INcqeZUjs4VhqAQZCgaP6tuq88ggM2RELrVdBQQIcHe5DJ+zxalJVlU+omegl7B0xyp8tPq3/p1TXdndMwOBDe1uTbVCXo8e8FIesFM7f4jvcVvgZcr6yYXI/U+jUHFTXFbtkpHjTOcyB+DPel/KZaXM3CpfPhBrmTNL6FB18Fojc949TNJtlmaWclXKkPgvbFQFCqfYOYUhYCZ3cC88aTWqs5vn2cfCq6plMKfKqaz+CSObONvECDNRAtJHIoFA3cq9BmBaYIQXMca5SJdCAahU1iv3OAQR63vieXo7ZFTXo49pzdlnwEFivQ2odK6pndRHoLHWQg2taCTLZhxGl0jNKYc560AXWV/mEaeDfd+CH0YxJC/OkfeXiCH8pdqbkDgAZqdNS2gqpBII4qK7QnIe0Vko0pbnupUWpzjGhhCkbDC1LDGWafbUuf/p0JSoAe4/mDa9FBTQufHd2yy2KoX/f5FiJd+odswyC2g/7XszEmePZAg5dUP0Psj86MFC6HMNVrjZxlJG0HW8kohzaI+YlMsxqop/y7K9hz/6YgoAj8MB4t1bzCJ1/vnyCQ5owH416JtXSyk0UkO5Fupq2h4XlQgbWle9/qTs1t/q7rP+y3twe/n+B0vV1lOdUg6TvYHxcAj7fe3jjhzwSjxicA//FcKskajbItzObIfHzzwg/sZLCQptaxHCGKiB1+Xm7l/zVvOIpicEMIUBAgf5KmxzdAU+A4V6PbV71eBLLTaoek7I4AFg+Twa+uAq1/Bk= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2017 06:17:47.1670 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3094 Subject: [dpdk-dev] [PATCH v3 06/11] 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, 11 Jul 2017 06:17:53 -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 05f0c1f90..e1aee8c3e 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -120,6 +120,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 a2dd65a33..43cb11d7b 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 6b7c5ca92..849f5f050 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" { @@ -85,6 +86,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 @@ -283,6 +287,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 7c78f2dc2..2546b55e4 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -129,6 +129,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 186c7b0fd..0de876c26 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.13.0