From patchwork Mon Jan 22 13:51:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 125432 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1201975ljf; Mon, 22 Jan 2018 07:03:41 -0800 (PST) X-Google-Smtp-Source: AH8x224Tr5/cJC1MlrZLRkYZV/vVwywrNWq9xgkrKNYY761+BV0idobM9C1/Nt+9CBBJfJDJxnze X-Received: by 10.28.192.24 with SMTP id q24mr5763304wmf.96.1516633421033; Mon, 22 Jan 2018 07:03:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516633421; cv=none; d=google.com; s=arc-20160816; b=Mhk9gDZJbUJk4JF1oG7YogN1VOfmd3+MaDKSkqiO6PSoyGqsbEhgjlGyrA0rQ9V7TG KpDacWMkfbZ18VqWJO1r7wlzlvXV2kStnh14l2hLsAf3q8uJqkoc1T+k9/eplVHdOYnn rbDAT8mv3xj1He3ycHtuyCxF7c8tvFVaYZaQK4pZg6E9hsLLGJMSwfaLYvbQR+s2rH3Y Cr0UQ1zu7QTsMaTR2s3YDw7rplWofszddCirqxEMkWMMi3+hIS5bZZ6zTUeywjzDLYdZ MQcut/oiWGuvejnhUeq7vWFOYguyfzu/PCS3QweaCaELmy1I8wCc+ZS4qzoBJJxsvS9o vuyg== 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=5uz9q/k+EteVUl4WfRKyfFhMagSX/YHkuXV82HSDa5U=; b=eNxYRC/NDSGXoMB8LRjar3IbPaLTZfdNJrU1rjM9P5pJ79fkxuDpEYjaCLS4p8Omca r+z98HPq+lhmOE8cx3ezr+j7PHuVnOFxUcTSb+Ewg7qsi9HI7YaSI205d58go8XyG3Rj ao6Y1XgEf8lEA5VSHoSz25y/UsSwedapwlBTkuNpfv7jqKGiF5DCQD5vHDBXJe9i6B+2 zzgvHIXTYx7kU6h8oXDQGOi4+sWURMC1nbPTvhFjdkiYudu/TphiD83j93gjAWttbZmH n1zS/MKLqEnf6LyvRW8a5AOi92BxvLUPDpaGP7422Int3Mf6+ykrvaugmf6Ydk2Yywf+ EbKQ== 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 b72si5390543wmf.233.2018.01.22.07.03.40; Mon, 22 Jan 2018 07:03:41 -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 3441712001; Mon, 22 Jan 2018 16:03:24 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0071.outbound.protection.outlook.com [104.47.36.71]) by dpdk.org (Postfix) with ESMTP id A93178E01 for ; Mon, 22 Jan 2018 16:03:20 +0100 (CET) Received: from DM5PR03CA0059.namprd03.prod.outlook.com (10.174.189.176) by DM5PR03MB2699.namprd03.prod.outlook.com (10.168.197.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 15:03:19 +0000 Received: from BN1AFFO11FD038.protection.gbl (2a01:111:f400:7c10::128) by DM5PR03CA0059.outlook.office365.com (2603:10b6:4:3b::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Mon, 22 Jan 2018 15:03:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD038.mail.protection.outlook.com (10.58.52.242) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Mon, 22 Jan 2018 15:03:19 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w0MDqVQO020039; Mon, 22 Jan 2018 06:52:34 -0700 From: Hemant Agrawal To: CC: , , Date: Mon, 22 Jan 2018 19:21:17 +0530 Message-ID: <1516629083-13967-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> References: <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131611069992881628; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(396003)(376002)(39860400002)(346002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(5660300001)(51416003)(54906003)(76176011)(81166006)(8936002)(50226002)(81156014)(16586007)(316002)(8676002)(53936002)(69596002)(104016004)(107886003)(498600001)(77096007)(2906002)(36756003)(85426001)(47776003)(68736007)(336011)(26005)(50466002)(97736004)(2950100002)(6916009)(6666003)(86362001)(2351001)(106466001)(356003)(105606002)(4326008)(305945005)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2699; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD038; 1:vFWslqE+fJiEp+Imm1OJfvoxlLJQBHua0tBwPsn3FnTQnAYAgQijLkbFooU1jY7IFZ1UBTuYtZL9fPbG1njUXoqFMCXoLiswG+++Kkd0maxpuNEkXQp8fVFZ2RMqWDX5 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 68da6e33-8b5d-4793-4ddc-08d561a945e6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:DM5PR03MB2699; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2699; 3:NP0UtSqJlxghlOsbSXF6nJPOrnUdnADnIOMX5Lqbyu0h4CuLjBuCxyYq78tCgpZhY3+kQEBZyGcWdiYoMPaJaNrlhr35CLKgKQ34+ecFVHQjqNeMYRBEBfe5RbyDUIOOXy4EB4xPPCAi1XW2Ak8bvc6tt9rseruCd5BKgRzD+dmvMbVMABVRRVK9TT7EdzRje+nS5E672MbjQ3vdBTrZt+nbuFeRKDKJnwZC/ClZ59AHkUhw/1EGDo9fXYZZet/8+4l9OC33qgaf1xggKGb+tdmzPMCp/Q51D/IgK8lXHzxm20MPVIiwXqyqar24x7rIefR2g2o0y39Ip2lPUr0BJ/b1IFSTY1okpNr+h8vvzzA=; 25:MX6YNufn+3RpfwGjNhaLxxrhOoFPqOiqIeOh3sAGiQyehoS80Z5DzNAQyayLCkEcHe3biqrF+fzht524nz/eLuYYdFFu8J9DSv98caJoIsxA6YJbKB5e8q+wo+dAibkSH2sTs5p5wcLPouupKIBAWcvXMu/DAj4Aq2OjyfYCXsV+CiLfVVac9cCh/NefFOrU7wE3Y4Ht5kBz8HFo3pWdojgGVEPnKy7CnHP8Sf1pA6IehG1HCybp1uGKObzOm3//GGXHVM22u3w60+DdSHeu77qnmmEt5ReL7pJ4STXqhlWKBKeUolcrqIMVeLPPamHDrR36dxwGdjbIdJNeiyzgWA== X-MS-TrafficTypeDiagnostic: DM5PR03MB2699: X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2699; 31:Az1LEdlnvVRZ3tm0rgeYePZszdkqrpEo+Noyrsdq6uwzM+gImX1NaAmKvc4hBqoDo7oIwSoI9mT53tkfSl3U45u/2hPWmcEjSb1rS/Y1r2xyNjz27zQcZggYHgYWkJXjFyRUfVWWJJzsXdoFOw9pOL0UhygUN4uu/i9olntFme8RpLnDmIYdgbk7ctPhOHjQWnqTl8I33PbOgUBmFalVfZMhgvAbBWI4R7a5wWVhjxg=; 4:EVIwHGETj7FvvTxOXOK0z8D2BuaB68xl+4Mw8X6xf4Sx/4a8nRr7kArWJTQkRIiKkqPD2N0hjTtvNdbm+c1iA/Ed3oWedNn0DdwLE1TxlJrFwJDSzK0kWM1Au7w11JVNbqzM57FPZezUP4tAomtKIVpPtxXHTWXV6R13OMpO04eo91ELPpBbxLdd+VcyfP1FtwRoFrccEk2ImfsPq1yXcX2v8QGbpBU8HmrmMtM2ybyuuZshtUEG27vVDtBlaT1oWSQ5UAe0Y3kz+tvhYjS1w7XdlQJEPpKCJz7UVDlgw94uAd1mSr9moW3O5EEPyz22 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)(3231023)(2400081)(944501161)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703151042153)(20161123556025)(20161123565025)(201708071742011); SRVR:DM5PR03MB2699; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:DM5PR03MB2699; X-Forefront-PRVS: 0560A2214D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2699; 23:2oeq5ipWPbvxnw+B3RWKvCvnl5nLcMTmA/E0FGerB?= yKlf9qzWo1yV1DkEOVFsHdjtPgWTH7BD7vMmhHE46LN5xIh/XlrPYCNZFq16jjvn76jOZ/Fqek5KjpYVZwSHjV4H8LZQ+UvZwMgRn0+TlV969ualTutXY06Fqd5wJY5XDHrIUpvaiw7I939d3h18jkabLd74hXnxQu4Zt7xJb4nI5ZzIxRe0+bhwQSDuXeKi5VZ6913e5wCmR/5gN7kcvyUy4efMTcERTddQMBD7EOlsJuHC0ur5Dx4EOJke49kPJ519UKATq1iMZeHs4PfxSkIgvBIpWmcDYQhcJaOYg3ViO+OIjBQDBM+LrtAT2UcBbCuaG39ytfVnMhBkhSUu8ZDxTHhcv9xcJvHCncID99Aj1qhuLjENlZy+2+E94tp0sLPJQnqNljUOfeSJ0OGb8FTAGNrCU9qEzrbdCo7/1/UbcvrWDOL3pLp9yjWE8zTA9ZG8FxWSX7aO61nfxmLQ65zrfJKs3FeydQkqqnJEOjw5KNS49CuIo61HUBQYm9+YNG9oLQby6c5un1vDwsawbEdXDl4D16KLHNOLohGtjlGc24GxmB1T3Kk0yLNYlYjAf0xHCMQdgXh8bjfbgbeCm7no/N6ygD1PC/5/ff4VPl7J6ZAR8oQJ7auduSvoIFnU5s1lFzEKaaDtkBXfRxKwMLHBSZjudjpns5GtOEEDQnPvOGM3MDJscZo/KJzz4busru4fbsyK4g5dhNP8XCuMzigE2o9cJZMYgJd10+tLBivvOF3xKH+6FGK6QKJ5Yy2tEEZ5vGgbXBPpNEZhw/NKULk1fQ54+TjuGB0+A0JsGkvyIsfYUVPZejfKDs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JWeEl1mx5eRMaFArbgVkjis9y8672KlrIH7/KVdjCI7EHjfbpQ4ToKfy+rxXqK3tb+40EbNkkQM+PyhTgcaYs15TFaw7UEYyYKirLmNyJkeS3H4JJZnyX0ykKzbG4x7Q8VHYFrYF1d SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 15:03:19.0541 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 68da6e33-8b5d-4793-4ddc-08d561a945e6 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2699 Subject: [dpdk-dev] [PATCH v6 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 Acked-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal.c | 4 ++-- lib/librte_eal/common/eal_common_options.c | 2 +- lib/librte_eal/common/eal_internal_cfg.h | 3 ++- lib/librte_eal/linuxapp/eal/eal.c | 4 ++-- 4 files changed, 7 insertions(+), 6 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_common_options.c b/lib/librte_eal/common/eal_common_options.c index 996a034..7a40414 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -218,7 +218,7 @@ eal_reset_internal_config(struct internal_config *internal_cfg) #endif internal_cfg->vmware_tsc_map = 0; internal_cfg->create_uio_dev = 0; - internal_cfg->mbuf_pool_ops_name = RTE_MBUF_DEFAULT_MEMPOOL_OPS; + internal_cfg->user_mbuf_pool_ops_name = RTE_MBUF_DEFAULT_MEMPOOL_OPS; } static int 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: