From patchwork Mon Jan 15 06:11:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 124471 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp568636lje; Sun, 14 Jan 2018 22:12:50 -0800 (PST) X-Google-Smtp-Source: ACJfBoufqryOvP/TLdybeBba9e8vmlyOyhemPwQHNRekYZce0WQmeb21TeaK0juxcO9gqNKONt0l X-Received: by 10.80.245.52 with SMTP id t49mr17608308edm.47.1515996770710; Sun, 14 Jan 2018 22:12:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515996770; cv=none; d=google.com; s=arc-20160816; b=LoY/BUjaKE4gF1z9L/B3WNFkOFiFmGBW5Bmh4o6LIduIUFpRsyRID6ZTbG40VdBXOv c1mpZzdV3qayvheNFdQ57OvZTkxN3i7117immiZJHqBLBsu2PvCzHveQRPqCOEb0iC8K pgeKhKvgFTw66x1kWOsoqdC7orTHSrbDSCa42xD9QfD1VX+fOC1C+y5McOsjcW0BKwc5 SxGSe0sGgMzJSlEQgcxL0iD6NxUUckiBH7c7fdPf1vbr8u461zJnsM2IzdUS7mkyXCJE XyEcoOmDjpVHcDNDkqUfvW3ckYI2GG9TZY5+k28CWFB5tOey3hdeBOp9Lo5FRGfZatfV ffdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=JVAW9LEvbFFRd9JtBLiBIIYCCmtgZWJ7zKKH0Wz9T9I=; b=qAf/I6zPKRwmd379rhlh8GFBVKPYONOWdnRcOM4WwM5Duig6kTvlj8oBYdopCeyh5R Ds8y9aQouYKM5cbBJx1XKRjRLlfR7OSsfVcYJJrVNuvVt4adeKG+hxZ/KnqjAO10asWa S07DN3zpIr4R0cbgbjclSF1kZIxNo8aR7O4gaTfvDWhs95OZ26ahUikAia70NAOtOLJm UJmr5Ed7juqqhuOjZiT4VMLnC/ZzRhfcPbuiBLZhftWCCHqjY9r5LuBfkm1hlvIXPaFK xXCtHC4xOen+KbxkxLO5nQxYLaA62bMQQnPCJIEj5hfjodFRYoO0aoktlGnR+3aWml9G n0fQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id d5si2371736edj.327.2018.01.14.22.12.50; Sun, 14 Jan 2018 22:12:50 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC83B7D19; Mon, 15 Jan 2018 07:12:34 +0100 (CET) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0047.outbound.protection.outlook.com [104.47.32.47]) by dpdk.org (Postfix) with ESMTP id 7E0F82C57 for ; Mon, 15 Jan 2018 07:12:31 +0100 (CET) Received: from BN3PR03CA0079.namprd03.prod.outlook.com (10.167.1.167) by BY2PR0301MB0728.namprd03.prod.outlook.com (10.160.63.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Mon, 15 Jan 2018 06:12:30 +0000 Received: from BY2FFO11FD037.protection.gbl (2a01:111:f400:7c0c::150) by BN3PR03CA0079.outlook.office365.com (2a01:111:e400:7a4d::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Mon, 15 Jan 2018 06:12:29 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD037.mail.protection.outlook.com (10.1.14.222) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Mon, 15 Jan 2018 06:12:28 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0F6CKAG011776; Sun, 14 Jan 2018 23:12:26 -0700 From: Hemant Agrawal To: CC: , , Date: Mon, 15 Jan 2018 11:41:11 +0530 Message-ID: <1515996674-26338-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515996674-26338-1-git-send-email-hemant.agrawal@nxp.com> References: <1513333483-4372-1-git-send-email-hemant.agrawal@nxp.com> <1515996674-26338-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131604703490807565; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(346002)(376002)(39860400002)(396003)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(498600001)(86362001)(575784001)(2906002)(48376002)(104016004)(105606002)(106466001)(50466002)(76176011)(356003)(4326008)(6916009)(2351001)(5660300001)(305945005)(16586007)(51416003)(6666003)(85426001)(36756003)(53936002)(54906003)(47776003)(77096006)(97736004)(316002)(296002)(81166006)(8676002)(81156014)(8936002)(50226002)(68736007)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0728; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD037; 1:gwYc1//r2GLQxIkM01LJCXTpo9Un2bHbtjb+gxNwjZPG9+3UzTgJfktnD9w8rbgP8pTe3jIOqI6vDRNcmM18yG4G02HOjxY0tpFXgLc7ggSDw2yJEmlqsM4pa3dUPyYc MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b05bec01-4bda-4d5a-170d-08d55bdef4ce X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BY2PR0301MB0728; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0728; 3:XHAFaXb++geRK4Kri3OBlNr/dHuo7td3W3Jjv+dWG6amNdmAfF7ufY6vlCo01iA/fYPJ+r3CDnHSmdmxz1AePqKH1dQN+9U694zbN+iOuVUZX7kmhfWjxI7b6pbIuZgZnYjkrBwqtPQcNbMbuejLPUZ2y6U31hyh5LERy0s1JkSv7jobWJ5xA962AD7I+rJw9MXlaSZeW/44hbdMg/lQZSrG6MYko6azCO5nCnxRLh/LWDCatmjFI4C0vWxkGV2YV3mwJK3+muW1TnBZo68wUNOfLxYfGvqwEinbdAITajT0Ne3mV4xhVSFTURAmFJ0PbSsJhJaFEbkiHffshm+WtbBxct2LcLoCKdncNzwiasE=; 25:lOz0YjN5QpQmdjKVs2rcUpilCOTCv+Oi+plMR5QvzgrgsqNoInJLXNWaYHV4Hv8jEMalqovxUViYBqBM2tTUInPK/R/OMhN5jJnNU6nyrQFDUGrbgR2O2OfiEWUUV6duYwoW5uj09KKbv2mU/OxHPVsrnWaNrZ4uazN9xVUBJmw8ETTmMjepOF/FcSZFvCd9BYES/HvSEmHfY4DauYY9XrL/g7NypLdd61JEhFe5es+PwYRoZaPz/4LnHe6G37eBZbvrt9W7r/uJ0Xee1NdIMLFp67rA1rHUyVsGCHeSfVphp3UuKCTZEVd1SBiYjumZDQAU6d0RPblhygvIcra+Ww== X-MS-TrafficTypeDiagnostic: BY2PR0301MB0728: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0728; 31:RE70igVaEo6FVKEG4BWmgfyLxY3+CyLYVL09XT+WqSWc7FKsxAGa0TsGVoe+XwwrT5Wi12DV4J5zkDwmLNRlAfuyo1fmZlZ0f0cj1C/l34tLzMG+RIhz2TTn7qzICi5jIsE++KmDYYC0wnW/7HAu81QMuHZHnHAf5wzyVyswNvd1N4vp7L9h6XwhK75OjsujlE1qbZvZ7ZuCy7tN4KqPs3VupZ2vARzbLeLwkVDhemE=; 4:Nk/qAxb0YC3kVaDNBFhKNX26Z+B97FPI36I3gxv6CW8r7zo2MH5y6TL6jnhaCm4zNrn5vE9c2NdU2LBvk66sXBozt18sRHvOv4ds6t4M/stGC1wTyg+6o8DdmgymR98NfP/bP6ZFox/k3BPx/M0Q4NcBaa7T4uD/z6vEkb3rqzTA3Au6EMmT9cVZUZPw+RxPZXVdx7Cw5UIYfM8OtjNRVFvbbTMrToN6EYmjRdm6L0CU7VqmxuAPk8NSj8UKQOBbeRNapKpew1HIQ/MPB+5cTC/VAh9bjs/uViAJPFlOEyyePIEUOw245601BnKsPUp8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231023)(944501161)(10201501046)(6055026)(6096035)(20161123563025)(20161123559100)(20161123561025)(20161123556025)(20161123565025)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703151042153)(201708071742011); SRVR:BY2PR0301MB0728; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BY2PR0301MB0728; X-Forefront-PRVS: 0553CBB77A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0728; 23:vw4Koq7qsdr1/e3p7DO1gUv4EMGe3856yBh/CuI?= TaUQOF/yDg/AN7gxB5fB6VZg8eL8jHbKu06kyH3cm4PQE3RO5/rWVTeMEZUwwzw8wBrFnrB0H+bEjqKcD1cPKuIKT+/PUKIEzV6rgc0oAZMyFjwIjwaeJ6MIvPzE1C7oMIxVpyH4urptDjOwSPUEdpHSBv6EnFwMx0J+BJfXg9oxpeJAC9SyWh6FmJLfJoypy2OseBcElvb0OXo56dsXelsbBMaFFbFqOO6iZuBpQI+/TpJmohb3HM8sh6YWllylComlq/uYDmumIItlMKU310zFaA7y0lN7hiaOixYy0y1Kl++NU+J6rtsuxEvaLnldh6TWFSMNkUwk00LXP/hwucDqy38TWKsYKJo4SAFwBl85uDu0fzrq+ND6Ttiby5vU8qvTLbX+Bk26PLReCthNGQGQDeye/ivn2XNvYv2HGlzG2URAE50VGAvcsR/Y0CPxSvFsx9zo2SiQQuZZ8xNgTDSLFQJzIk3wujCHla0Bif62tNaZ3Eg7sP3FclWmmLPJprQD240o9jRbNkl9h4oYn85L7t4HptVkfaNJPqjo4XALRlh+rtWXx8ORwR8IAB0h6y8CTgE3zpIeZcrszS3yHRUZKO6XFtxm/cYa8bPnZyEl74xo6bqzadAHL3YzDiuVlJ1zBfbePv5oWjwLuh/IANtqqygHpyElEwh3YUWAeCz5XOltZftTqoa5107REc3yhBiDQA0lDLj9CO1jxzYY4LUmUNfAfq5QMDqveIjRuLAjU0yGbSP1IfD0V6uZ61njkhSMVUMgR17LWoI37ur91KGetFAsdqLMm7sRr8Sea95RqMqe9BcxHn/l/6f3N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mHU0QAnixDjAFD2B6iD6WLY3QPIDNbhjLlmy2pj/JyyRbfSw+t64muZcQ7O2qexzRN5ZfjK7Cjm/RAb8PMA9k7a33IjHYawXCzolqhWuVUWKAvzZAtu0yPwUIvhGzZaUor SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2018 06:12:28.8935 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b05bec01-4bda-4d5a-170d-08d55bdef4ce X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0728 Subject: [dpdk-dev] [PATCH v2 2/5] eal: add platform mempool ops name in internal config 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Hemant Agrawal --- lib/librte_eal/common/eal_common_options.c | 1 + lib/librte_eal/common/eal_internal_cfg.h | 2 ++ lib/librte_eal/rte_eal_version.map | 1 + 3 files changed, 4 insertions(+) -- 2.7.4 diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index b6d2762..1ed0ddb 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -219,6 +219,7 @@ eal_reset_internal_config(struct internal_config *internal_cfg) internal_cfg->vmware_tsc_map = 0; internal_cfg->create_uio_dev = 0; internal_cfg->user_mbuf_pool_ops_name = NULL; + internal_cfg->plat_mbuf_pool_ops_name = NULL; } static int diff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h index 1169fcc..12c5b8a 100644 --- a/lib/librte_eal/common/eal_internal_cfg.h +++ b/lib/librte_eal/common/eal_internal_cfg.h @@ -54,6 +54,8 @@ struct internal_config { const char *hugepage_dir; /**< specific hugetlbfs directory to use */ const char *user_mbuf_pool_ops_name; /**< user defined mbuf pool ops name */ + const char *plat_mbuf_pool_ops_name; + /**< platform configured mbuf pool ops name */ unsigned num_hugepage_sizes; /**< how many sizes on this system */ struct hugepage_info hugepage_info[MAX_HUGEPAGE_SIZES]; }; diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map index 3fa1e13..909691f 100644 --- a/lib/librte_eal/rte_eal_version.map +++ b/lib/librte_eal/rte_eal_version.map @@ -203,6 +203,7 @@ DPDK_17.11 { DPDK_18.02 { global: + internal_config; rte_hypervisor_get; rte_hypervisor_get_name;