From patchwork Fri Jan 19 16:33:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 125200 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp390755ljf; Fri, 19 Jan 2018 09:25:16 -0800 (PST) X-Google-Smtp-Source: ACJfBovotM0e5awKBG2Q1Fxg5e7KZi9OnjtpGze/YlwOWYJUtfQyrEjKeEy7UII6pfeZv/dG87DM X-Received: by 10.28.66.199 with SMTP id k68mr8839558wmi.104.1516382716912; Fri, 19 Jan 2018 09:25:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516382716; cv=none; d=google.com; s=arc-20160816; b=FERxG1mdSJfXR9YwxTUZ3sAZZp4EThGMW2j4rC5pOCG1IZPDc+OgqAz7tbAXqDJHdf bwT6QfcB6mehZo0mUnvNAIhuJ9vFYoM7s/8M2fW7hljqn2mVNqVpTUIei1EkjReByTUk dPaNNN2KS7I4KB2yAlEgSh30ceFvAbjA79C2qT2C9MdEn7PdYJ8GD5W52O+QwwEuEFUx APDy8pmbpL57gy7X+La3+uQGImtbHwPlSEi99Q/RFmYk1nwSiA327eE8KhWlrjHM+io+ w540qh+o1R1N6HAQRi7lv/DuQDGqxMEjWGuk3T6IU+YKXmIpCxQL6FB9YCJUPxwyCgU7 cI3Q== 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=vaxqslOia0QeLlx0qRv25iRI7b+rfIC8U2qjUZBLoXQ=; b=KYfdapGrOr+hBcih4jCkX3QwIV4klYZ3MIl8wzWxrcq2ULbRJWf0nKiS09Brbd+W5O qWviuU/u8F/9UtMBvXZp4F/q9EMuYKQqRRCOrkv9Xbs8qPgcsi7D6j6H7qwNW7QgjfrG N424mJ0woy0V323IocQKF7dzQPcJi9shhKcORTYrhEbovEDYk7geAmujsNDqGqNFQ/M0 bzev2GJ0fcqyFF3o5QujnAWCmgMCOwhbVSBlmFdIc9je6TLVPEVlt1+vAwo9Zq0dAD6z U5z2eVvNU2duaZn4Q03G88uET2ENRmTbD4G9zccprAXIj3oSdF0uiNQmk00jnqhWKdR2 9Q1A== 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 z9si1150688wmb.143.2018.01.19.09.25.16; Fri, 19 Jan 2018 09:25:16 -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 680BA1B32B; Fri, 19 Jan 2018 18:25:04 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0046.outbound.protection.outlook.com [104.47.36.46]) by dpdk.org (Postfix) with ESMTP id E42061B2F4 for ; Fri, 19 Jan 2018 18:24:58 +0100 (CET) Received: from DM5PR03CA0030.namprd03.prod.outlook.com (2603:10b6:4:3b::19) by DM2PR0301MB0736.namprd03.prod.outlook.com (2a01:111:e400:3c0d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Fri, 19 Jan 2018 17:24:57 +0000 Received: from BN1BFFO11OLC001.protection.gbl (2a01:111:f400:7c10::1:130) by DM5PR03CA0030.outlook.office365.com (2603:10b6:4:3b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Fri, 19 Jan 2018 17:24:57 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 BN1BFFO11OLC001.mail.protection.outlook.com (10.58.145.12) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Fri, 19 Jan 2018 17:24:54 +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 w0JGZ6a9016753; Fri, 19 Jan 2018 09:35:09 -0700 From: Hemant Agrawal To: CC: , , Date: Fri, 19 Jan 2018 22:03:53 +0530 Message-ID: <1516379639-25586-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> References: <1516281992-6873-1-git-send-email-hemant.agrawal@nxp.com> <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131608562971058523; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(346002)(39380400002)(39860400002)(396003)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(2906002)(356003)(26005)(54906003)(316002)(16586007)(68736007)(51416003)(77096007)(36756003)(104016004)(76176011)(5660300001)(8676002)(498600001)(2950100002)(305945005)(6666003)(106466001)(105606002)(2351001)(47776003)(85426001)(48376002)(107886003)(97736004)(4326008)(86362001)(50226002)(53936002)(81166006)(81156014)(8936002)(50466002)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0736; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC001; 1:F2LCQmELhG5YO1i22Q5Y38z/XMgnrcLCefUSdJACDZWM9K4QNtLDAzi7BpTF9/jwleK+h5NH5/K5cRaJlSPmuj99+p4Z3LeOgekCN4f8StRv0F/XJTp92hfkA4oM1yGN MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 34f611f7-8906-45e1-bffd-08d55f618fbe X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:DM2PR0301MB0736; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0736; 3:NnCklwHWSaPMnbiCNKm/+73Kry+RvhBCMGjuZG9eTNuuek3QrtpxvIm6sbGDguxJa8Sj2lXoP+MSHFOG/XzUCHtOr4jSonBXBU6WCJVp8RW6onZOg92UnICUCessOLRdo6rj+IiB3lO22/a3J/v6X/fEVI66g7HahcrLc9L3rrb6HzR5pa0mQAjIsAIQZasvHOqKKM+dka866UT/7PQFyyAGf3ssHVFAt/1tlA801oeF8J6tCcctttV9hoa/EInlZvZ3P+D2SWIdJkfxmisNmF4D9PIqAAzbbKAlcT+3A4nCOml9G99crO0ozdbwjce+XWicUfXkAv3diAg+/2eJlExma05CZO0+xsaWS9qRUzA=; 25:pEfIsHjbo921tmyxRUlaFBHzK5Ww2+LVJjJh1hbICQHavEdX9wikgjaiZ9nPgeBPZjhstVWGzG9jBEO2hbyzIpl8VogHjuT8RxfCxzU+rdpBEKHMuSHJLS/8aW/52h2ysR0RIXfJr8OV82e1T9abWZ7ypvvByuK9IXMwli1xxVj+g0n3nf938UI4/+JZHPneqDpoImM4y/p3LCHMXEqBWuAEoxz4nSs1ZioRqLZuXk0gAUTvVp7IJ2bdI4yYeY9mU92WGMOsjrNxTOttIxvi6415Zg5nPJEL3XNeMRPTZobGTZz4iKr/rUAr1i4PIfYgN6hGMwdk6N81vTEN8XUu7A== X-MS-TrafficTypeDiagnostic: DM2PR0301MB0736: X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0736; 31:mYVYg4FoRux0v21jfpTO4D5pGC6zVyBwWYFgJUCjjIztZRJgYmP35aDISs/UhhsPOKdfx28VZUabXdBdOpGGS4AGPavJSNZJ1cvTI9q3tczB9kP0K3Q+c36DVJGFGQxUuRtnPfOFhVXyl9hJM88yfmUWiT85tu524sWY8EW1ezNbG2A0IqHJsWsOjXORs4A+/YXyH4YwTEFqQA8v0Ffbwzujk3jiO3e1NXBGKXaE+UI=; 4:S4E6tAStp1S8vdcd3bSwTeC3he3ntveZB25Dff71VyK++SZ9z/KxoxVuCTjuZ4oygyajKkfmu3/brXRhVoJvMWgoEVNgVHKzv5CzxzHiOrHTHM6mRT5kFIdish7EGglgjKIlW5qLcMOVmQPJt8ScrlHhKYNc2n+moLMHcym6TjR3P9qnTQrgM5bSce4aA87+ZOl0InjTdNKWJ9/CSyHdTHNNfKMwFR4/PqFat2cTFqu9uU9Z5CQ7TIdry4PNZy+Htd4VqwK3fl8Ay8TLYq2uI3S3cGD5BmGjMp/LD6LlqRonYEfBtgaoKulyRxWsJTn0 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3231023)(2400080)(944501161)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123559100)(20161123565025)(20161123563025)(20161123561025)(20161123556025)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(201708071742011); SRVR:DM2PR0301MB0736; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:DM2PR0301MB0736; X-Forefront-PRVS: 0557CBAD84 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0736; 23:+d1bYqneQDO9GLDbTIVcBhSc552gibPRHGdVSFQ?= gfxpH1Gtp0D2FqoZZ/f++xZEMHvlJDAdPbjIJ+2/yJwzk7H4AiHL4aupROIzO1067p8PuGUo+h3HtAw5TvjP3dKI+w/0Pj/nf9MGtb3EeA39g6V/k7xI5UGFXU8N2k0VDLvrlPVFuwi5QKF5/hPVdXh9IripYPbywi2ei5pk+wqM760SYU4Ms0RzW2tis4HUR3IC/35Nig2I8kue6v1WzgVhgXeDNWdLi/XSjjkfnF8NEnF6p1WYPfeKIoVAYDpYUyUABNcMTpxTmps05ZymDDhrJBnyCK5jQCqKWd2g0vbiiLosZbA+bNZXJ8d31FW78ljcKWJrOYTrqediqyos6o/DjrW70SWU5U0Wt5qTCgwWmHqcdZ2Ew8iByl0jSraVxnO0oxNrtv3ezwBNzz1FU2E8C+EsOqwqxgjyKlY67LVcB4Ez298TK1g6FPbJ/Xq9Ar4vdwW6mZpPf/9yg1sRNS9Dm0oWe9oor7ZtGtaBRQkcMVVOgzmrfhO5UL9LPkEsh67Xdejum/0I+0GDfglttiXUx5rTCtoySZWPz/zFMGOnIxw6O3fjbqpLdJ65MmgftbApcdt/2B+u5cn0akvQj0rVCs/Gekt8KGHSnTkBrDD7P8LZhovRmSEVFEmMlMDFedlFXGUGmd2aMZlnKYvG8Nh4x/VAzEbPGZxifKiSH0R4ruANxpAdzWy9K1X0KoyWlDoCG1DqSY4Box9L2RUcNYKvtnzBDS7DDQZA73k/w7s0DzIMVeR7KIK6oAUDNwy66HDsr9KvYB7avlVLdGKxuMNT4qondbJ/gg2rYl7d5BL5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3UAL43WoYDllk6K3FmDNzUTH8AcYE65Fivz0pnCSsqEYLyA34KiPZ5AKfqPvt1Nw2QDqRgaO4Kv7Uttr4GdH8U/d10sdkvVR76+9rkiKxcCeJl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2018 17:24:54.9842 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34f611f7-8906-45e1-bffd-08d55f618fbe 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: DM2PR0301MB0736 Subject: [dpdk-dev] [PATCH v4 1/7] eal: prefix mbuf pool ops name with user defined 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" This patch prefix the mbuf pool ops name with "user" to indicate that it is user defined. Signed-off-by: Hemant Agrawal --- lib/librte_eal/bsdapp/eal/eal.c | 4 ++-- lib/librte_eal/common/eal_internal_cfg.h | 3 ++- lib/librte_eal/linuxapp/eal/eal.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) -- 2.7.4 diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 04cbd81..c602d02 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -114,7 +114,7 @@ int rte_cycles_vmware_tsc_map; const char * rte_eal_mbuf_default_mempool_ops(void) { - return internal_config.mbuf_pool_ops_name; + return internal_config.user_mbuf_pool_ops_name; } /* Return a pointer to the configuration structure */ @@ -397,7 +397,7 @@ eal_parse_args(int argc, char **argv) switch (opt) { case OPT_MBUF_POOL_OPS_NAME_NUM: - internal_config.mbuf_pool_ops_name = optarg; + internal_config.user_mbuf_pool_ops_name = optarg; break; case 'h': eal_usage(prgname); diff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h index c67685c..1169fcc 100644 --- a/lib/librte_eal/common/eal_internal_cfg.h +++ b/lib/librte_eal/common/eal_internal_cfg.h @@ -52,7 +52,8 @@ struct internal_config { volatile enum rte_intr_mode vfio_intr_mode; const char *hugefile_prefix; /**< the base filename of hugetlbfs files */ const char *hugepage_dir; /**< specific hugetlbfs directory to use */ - const char *mbuf_pool_ops_name; /**< mbuf pool ops name */ + const char *user_mbuf_pool_ops_name; + /**< user defined 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/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 229eec9..e8c7100 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -124,7 +124,7 @@ int rte_cycles_vmware_tsc_map; const char * rte_eal_mbuf_default_mempool_ops(void) { - return internal_config.mbuf_pool_ops_name; + return internal_config.user_mbuf_pool_ops_name; } /* Return a pointer to the configuration structure */ @@ -609,7 +609,7 @@ eal_parse_args(int argc, char **argv) break; case OPT_MBUF_POOL_OPS_NAME_NUM: - internal_config.mbuf_pool_ops_name = optarg; + internal_config.user_mbuf_pool_ops_name = optarg; break; default: