From patchwork Sat Jan 20 06:15:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 125241 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp175030ljf; Fri, 19 Jan 2018 23:25:47 -0800 (PST) X-Google-Smtp-Source: AH8x227Ux8ncry+hpV1E9FSGonxUNNv/Z75brZPaL6mNt98xxd5AqkhJLuIpt/82a13Wn0xOhgdE X-Received: by 10.28.47.73 with SMTP id v70mr557632wmv.41.1516433147938; Fri, 19 Jan 2018 23:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516433147; cv=none; d=google.com; s=arc-20160816; b=hfwwSXkaCD7Zo4NdRFHs52QN0NVKVtkwaI6ZUhaWi7OU/uDuAHezBKzJE7xI+qO2/u hdEnTf5TTD9q3PUKUIPVjhdVi8sxs364TtqoBNqDVBUxdybZM3g4e2+GOJTn0iDwRNLn a8qxQXomI+mdLx0J7alzrdLKARViTVI06ZJsoysM/azIyBBQtp1qa7d3OvODPJYy1VPk /sagDYm6ijAGMg6NWJMhx6nX7cHXgqISHa702gAm24MktZmkN8Q/PKYBr/P+Xae0neXr OePRaTNFe5/pYnYi9AxJ9E+sO1bR8GaXvjLsHJVzORQVr+WDhvZGPvZjtBD7alKQ4qQl LF0Q== 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=kvp5EJV25p0JqOW0CfO38BoZRI1qkUwN6uwCeW/+fbvFluZcfUpCc+fp70w3p4Gf11 ZSyPkYL6so+OH8Yn/dG85mxyq9s1Av2Ztlw7dY5ByZlM0YgrBElyPc+B4F14e3+Z0XgB qCG0Y7m0c6n9nfkM19RBodjQ+nApt7N1rAaM9ME49pYw+N8mb2cd8GT4lKAaLeqIxEzu IIPhs/cWZlW2bN6IysGyejA/iOJ2HWKPOvMaSzI8W0DICuqvkNhHNR/to1hWzJaNK/zx raB3dtPsX5jcnaTA0Qaiv2O8NqZxv9/RdIpS1gw4c21ateMyyBys/enXRkVg6bKxMKtB bfSQ== 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 63si2028085wmh.107.2018.01.19.23.25.47; Fri, 19 Jan 2018 23:25:47 -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 02B291B2A3; Sat, 20 Jan 2018 08:25:17 +0100 (CET) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0055.outbound.protection.outlook.com [104.47.38.55]) by dpdk.org (Postfix) with ESMTP id 812901B1D0 for ; Sat, 20 Jan 2018 08:25:05 +0100 (CET) Received: from BN3PR03CA0068.namprd03.prod.outlook.com (10.167.1.156) by CY4PR03MB2696.namprd03.prod.outlook.com (10.173.43.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Sat, 20 Jan 2018 07:25:04 +0000 Received: from BY2FFO11FD041.protection.gbl (2a01:111:f400:7c0c::173) by BN3PR03CA0068.outlook.office365.com (2a01:111:e400:7a4d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Sat, 20 Jan 2018 07:25:03 +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 BY2FFO11FD041.mail.protection.outlook.com (10.1.14.226) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Sat, 20 Jan 2018 07:25:00 +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 w0K6GGgd024888; Fri, 19 Jan 2018 23:16:19 -0700 From: Hemant Agrawal To: CC: , , Date: Sat, 20 Jan 2018 11:45:02 +0530 Message-ID: <1516428908-5430-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> References: <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131609067026392450; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(39380400002)(346002)(39860400002)(376002)(396003)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(85426001)(4326008)(107886003)(8936002)(5660300001)(97736004)(336011)(47776003)(77096007)(16586007)(54906003)(86362001)(316002)(36756003)(26005)(53936002)(305945005)(106466001)(105606002)(50226002)(2351001)(76176011)(51416003)(8676002)(508600001)(81166006)(2950100002)(81156014)(50466002)(2906002)(68736007)(6666003)(356003)(48376002)(104016004)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2696; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD041; 1:59jTHHaJlptqoQ6B99pV0G7wtF8HbW34hF1pyma7Vwq8AaKmnfbf+NmRbL9IL8dptPiAW9qXAUWgz8grpBrfFwkQaNr2LMPJ3I+mopFZsaELGhE8cR8gTxq+SU5SQaFw MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 00aa075d-d9e3-48fd-c422-08d55fd6ebc8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:CY4PR03MB2696; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 3:VHMDPnaTswBWMIDB10halWPirD3PNkeZVgWC9y4qNr82Vh7xwvkGCe1qRxvgPIT3Z84+2Nw6r0HSHcOpZI040rOab5FOCk20O+9GOVljVIPVOeURmC1RZd+GVQEpQ/33yeI4oSi2sD7F/HoJn8d6gyiNOKmPRNi4MlIRmX7xeT9sx1bvlpjFA3pCiH+Lfj8NNBzXZwKMJ4ym2zGNRjfigKQ5fnogYho0SvL7KP24wS6fFlrfWjeyfAC1tHs8U6leC1f4HmUIVG7vqzBIY8X11C6fN7992L61jlZZ/oe90yE+6Z77gmSdUd3+vPQZ3kY2RfJh8P3TQUGbEShcvq/k7KnN+Qv0JEKtvLRcaw8YnMc=; 25:EvqHcljf68RrR8CnE1WtZ57EPgJUQmdamOknN6IcAC5CXBhF9NHXqFDGuttIeKnw/xWQMMqq6W9JIBQaFLzLvGUAOwgp+Fi6fkdht9aQ5CKnaymYw6hDj1ymjtFBcVPJAPGiqJEWHw70E6S05P47AFSirDCEiWVeDjl4jw+WOCIwDdafWjuVk5By1hu0aqcs8MrjT75qniFKrcKw83u0GIuTI7OTLSvMXM/OCqJaYnWSo5nAsnUQAwSYFn3ls9fAJgy+PNnNMaR2jXL+pQz6ioqrdpzHvdDYKEIOmikUYs1y/HwvU90rfL4dINsSwkES+njSUG7Q0X7Tf03lEtXwEw== X-MS-TrafficTypeDiagnostic: CY4PR03MB2696: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 31:EYeDNCHhtWWZAfaAW6w2vOqzvy9DEOBtYKmRGZEQ7qIU2muk2DR7c5QN8CQ29Rt8WjychefVyWDmEGHgRxVOJOhRU5RMePjaDI1/D8yjTFreZp5nISdu64TImumkkYPeijqP0upb49M7QNTY1Xhp2ojEetu8Lj/fhz6EBwlDq3ojs23aUp7ufsZjsjWDRcjISzp5l8L4oLmqAK93gA9yW6e5V4Y+blaIqmh/hwVjc2s=; 4:gMeQ8Aw90HOkAJ0zOvAXktZXxkGyQ5wFrb1YbP477ALPKgXjm3BglDs20TVKbbLbaHoQ9u2toIH7hFNivFJpcILnF53ip2S2McaWRw+g2u0b/rQw0CoP4urhDZabzWATs6sEe38v1glVQzgqc2LY2W6gUymdXz+RoBi9KtvTXFD7NU91N8i9h7UcfuUMLTqOr825MuJYFEsouFNkTJGJ2antA6qlBr9iU/oeOP8Azfu776AAW1SopgjAjcE3GA26UNSgVcYhP+Xgz6XDDqFHeR5w2ji8C/FsPw4jdu7WLUzkHvMlWmJMj2kbDfiafn7G 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)(10201501046)(3231023)(2400081)(944501161)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(20161123559100)(20161123556025)(20161123563025)(20161123561025)(201708071742011); SRVR:CY4PR03MB2696; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY4PR03MB2696; X-Forefront-PRVS: 0558D3C5AC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2696; 23:Q/gusAUJJuIYEZvOkmvHaqvmY3J0/vIqGGYaszm2F?= emNU6g5S8OnW+PG7CXLayqzx38yH4Lo8N05Ecdqdoyo23rsLApJ899zTSO5wqVvR5o6m0Ghsd5kc0NAvdrdr636xj8Sfg6oMeksgOOmgtCkWVN4X0DWVS5/sPycXiOa1/JrIOTQc02DkD3R+OIy97DhSlTa4QqqvLhQr67XVRjUVVtEnv1NUB30LW1hoyyiXkZie6BKGwntD/3anJoh7ZojBKNhO14xfomJQVGWOJd3nV1wuhZhj1T5rL2EJqEFho5Qnma1wbvk4MTd/MsvcAMVkqkWPZzUBjwdF8EPxozxbQFMpVdembU87YlAbYxL1z620j4FSnugEAw2tHONlxICgrYYjbXL8hGrET+CExp+8rHp8zewGFDD9JCDXJ+5GBV+JSVYPev3ga0xE7d8SELxyHBnO988dYLXRCmEp8k324CEQxACACLLZd+EE9sCrI/5bZosDCnoTqV36ikACEFzrbWz6yuLJbpb1mpWmYmA8JRDos6oGsDbqATLkWZn5KJvs5tVNJt70Nm3n7mkA2yc1eMEpP2eRC+JFusmH9Y6uNdcJt8N2pI9oZc58QNb5hSQnjaRnW6VoEIxnSbTuBIUFYy+9q6YuGpW5ZkvJB7s0AUW9H4zb7couAbF+oiooOyPr9BCvYDsJqdG/yo0i3tZwAddtq5HbGv36JEnt5OFTYKL8JGXVlmuS0L75ZppgkoQ9pxHHNaiVSV7TLeYrmq+EvdIIgSeRdhOy12C+rR1sZPF8HtO8Yzbps4CbiKjD9oCKH4VxS0NlJ8BN/mNL0/8ZcLUCyTDsSxwngeNNpM0ka5rcgSEtONU8Sry0Dtq5j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ETj8S72a7m0pSfnYSusOqFr1Oc21Pai6zftmycM4uKlGWePC8O1SUXuYOP77AodoRWAv82nqgJBxzCkxtrGuV7JVe26abx9AKW3gddgJn8/JIzuSev5Y4Re SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2018 07:25:00.4240 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 00aa075d-d9e3-48fd-c422-08d55fd6ebc8 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: CY4PR03MB2696 Subject: [dpdk-dev] [PATCH v5 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 Acked-by: Olivier Matz 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: