From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0062.outbound.protection.outlook.com [104.47.32.62]) by dpdk.org (Postfix) with ESMTP id 1237D29C8 for ; Sun, 10 Dec 2017 13:01:43 +0100 (CET) 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=8u4Db6Os7tCSkuMbhEesxenoiUEMDeGGnjsYpW+NDrE=; b=knG7EyKEKZiQP5UsAXEQqFuCyt1GoReehenjH4gmQesQFVxuc5WyI+ExdE7ecmCoM/Gxs+LHpcrKoLgm6V7mDIFINU8YB7DwNDd40Xa9QVLNM0CqY7mhEea4Tp3y6SGd4yJ1OBAk8gJ4IjopMf3XGbgZ2PDkAlli51dCaMcktxU= Received: from jerin (171.76.104.209) by CO2PR07MB2518.namprd07.prod.outlook.com (10.166.200.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Sun, 10 Dec 2017 12:01:38 +0000 Date: Sun, 10 Dec 2017 17:31:21 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: bruce.richardson@intel.com, harry.van.haaren@intel.com, gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, nikhil.rao@intel.com, santosh.shukla@caviumnetworks.com, dev@dpdk.org Message-ID: <20171210120120.GD11770@jerin> References: <1508330348-30060-1-git-send-email-pbhagavatula@caviumnetworks.com> <1508330348-30060-4-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1508330348-30060-4-git-send-email-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [171.76.104.209] X-ClientProxiedBy: MA1PR01CA0076.INDPRD01.PROD.OUTLOOK.COM (10.174.56.16) To CO2PR07MB2518.namprd07.prod.outlook.com (10.166.200.152) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 50987804-2ca5-49cd-f837-08d53fc5c69f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 3:k4LUv7kM0ezxMr9g2zcHzX/Miy70LmyNGJuAe7ujngrOO6P41D07+mWu4himQbUsCI3wxy2zy041QtpdX/yZQOYVtP7c2GdKRAbDOVtAePBFkHW8XjiN+DQ4lkxODY6lB54JqoTXgJw8rhJd4yJDu0e44jbntLx2VlHy7Kb2pZ0uxRD8SuiHYAo30wcDDXKXwOJCzah+i9jtGiVDVDJGWd+z278S60plWfV8ahi6wOQjQrg765VRGRQPLExuDf8J; 25:vpZnXQ+Km7hB25IoEkVll3IMJ+kGuFxgGpNAFlvOpfe4wDCGw9lqQ1+tV+qMYi0LkxeGA3GCfsJInI3NGtdDLTNF5x+uhOzlHxqB6xdBM04Px0fmQJQ5O0OCRJhUOhuVavJFL031NcwIJFVbDilzwGLEwrCDWnTH5lzttNpbESkHNFvESdtgbS05XRyvqbDfolQtsAQJApsJSSz2yqo6tI704P/87GDYqY0XCOJ1rsIwVPAf/SxpmoBAvB7Wa7yzrdQCEdWjYyV4Buxj0F3PEj5zMDpYU6grx0ihFaGwBg/vd+K7Ampe74Bv7UneQKTIBRcw+XDKQXO7HX7qoWckfBRbMXZlE28WrRcprjzzQ3g=; 31:6LUQJbHLY4ucgy9VbJ4bsFhWRhZHP/8l5auw0zF/oRiNgVuXtMVq4ROunaFtdS3pROgZWdWb+b/psrdXo+IfWUZN3Q0w4vt0aFNA3BsVoTk9jRbdDY50ZKWfPpx4R01pR+Uvy3jf7jeGL7QV5/RqeYQ8qVlF8LRIWNUlvoOFlG0mc509lhh7t3j2mjcIqQFmCe5slJIxDu4Nb9IWLq1KGUDrl6k3rO8woXYq3IbjlGA= X-MS-TrafficTypeDiagnostic: CO2PR07MB2518: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 20:5JLlBuJ7OaBB2bsBg/Hi5XtInY+yePGf4I9mHwq8RaYd2rLWN70bW2siGhRtAg8GXzkUc+PhoGH3dzVtCJ7LlwDerN5Pbekj0Ou5fScmK5U42uS5HxCWjxgxxgSmoZczwAfAVwv3jNNdXuqxBISCjL3L1tUuf7I4WJlnf9AY4UKwadlkOSghe7drYXYsDUCWr771OCF2Swp6MLIFhGnU5BjECaIZaXFKmcsjzhFo1G3ZaifoRad9T4ngDwDoGZSwOWUJ+6CMQF0UXXoIZalQLZz59QqPXD15l0Q9cco2M/JXPGy994y89070ROr4eadHgzQ+/NWySZYdqaTuUYUD97hAtqcLl77Zcly6WJoSCkNhfNKnRkM9Y0r7SipBaY19uF0hL86DidL8hajw4wa0x6OM0hyWE1CdKch6pdqH4PmcIBKzXpaS/l2Ts6gpMo59PvhW3KTPuyXDnLAXiKCXhjdo3E0fB6Ny61jowN2c7tmnYMlefKCmy0RjxByS66MH8TnWoAcsWryDJfaNIorSzLyh65v0QGLD/9ZsSuDNwBZpMegQWFXA3VXONAyXhqN9vqSziHxgwmlNr8SUel0qiQYJO6GFA9g73xEQUk71SlQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(131327999870524)(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(3231022)(6041248)(20161123562025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(201708071742011); SRVR:CO2PR07MB2518; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 4:7FKIQIH9FE7PZxgsFqjIrWs18CBJ04WCGq/veFFj1+qG816rOLD3s3irHT9viijltHafZUXijacxKQRA4Rd4Uf4aECM2WCzF0xf7dnv6ZUt8E+G1cBjLwb98gZ5xhHqrrMByxcdJm9loMOArR8JlhNmXB1g/P63NySrEgtz5cAq6QfnaWJ/BoW/KIj9bfu3O0YRP70J+1+fJSszQRVyqb+KUwP8IvBD87gW1gsWpl6L9JHkEKmL6tGfnrIhk7oV6+7TyYGwWML1zmsJq7ImF/UFX+ehlKMD82ozxSewFUaIM93j3dRt0cpE4asEO1+w/AnbNQIWnFxpA72IiDso3k3C/3Uqwb3m6Z/G2vpA1PiSmtw2sT98cEAtC6QuHgOWG X-Forefront-PRVS: 05177D47DC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(13464003)(199004)(189003)(50466002)(6636002)(81156014)(5660300001)(66066001)(97736004)(76176011)(47776003)(58126008)(33656002)(25786009)(478600001)(23726003)(305945005)(105586002)(7736002)(6496006)(3846002)(16526018)(6246003)(33896004)(53936002)(316002)(2906002)(8936002)(2950100002)(81166006)(106356001)(8676002)(8656006)(83506002)(6666003)(72206003)(52116002)(1076002)(55016002)(4326008)(42882006)(68736007)(6862004)(229853002)(6116002)(59450400001)(33716001)(9686003)(16586007)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2518; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2518; 23:CcmOd0/pwrFep4rixE0jc20/EhX3iXZYc9XlJIx+h?= =?us-ascii?Q?k4UJHyw/S8Q/ZdaSdYLurEAhRczt6SUe2lmmhhS1fDevl6wLlBcFyYsFcn/P?= =?us-ascii?Q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46lZ17vn4/gNq5d5mGjLR6SusxM41ucm1yNx1rTHK0YhJEvjvnNiBFHtm9L0ZcxZRikheCk613Pixpjl11Kyq+N01XU3KlVKD0dCClXFA4MqUQVvJVQ6rf9EM3qdtGulCRztfkCLIOJKoK0IiB2zkLmSpVnOt67xWqCrxylsyLWx+OSaNlqGiA9rRunIEg7cgypB30pqeE8IaNyOYWjNS28Q0j6bzMemXBR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2017 12:01:38.2366 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50987804-2ca5-49cd-f837-08d53fc5c69f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2518 Subject: Re: [dpdk-dev] [PATCH 3/8] app/eventdev: add pktmbuf pool for ethdev 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: Sun, 10 Dec 2017 12:01:44 -0000 -----Original Message----- > Date: Wed, 18 Oct 2017 18:09:03 +0530 > From: Pavan Nikhilesh > To: bruce.richardson@intel.com, harry.van.haaren@intel.com, > gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, > nikhil.rao@intel.com, santosh.shukla@caviumnetworks.com, > jerin.jacob@caviumnetworks.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [PATCH 3/8] app/eventdev: add pktmbuf pool for ethdev > X-Mailer: git-send-email 2.7.4 > > Add pktmbuf pool creation used when configuring ethernet device as event > producer. > > Signed-off-by: Pavan Nikhilesh > --- > app/test-eventdev/test_perf_common.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c > index f7961be..b26d694 100644 > --- a/app/test-eventdev/test_perf_common.c > +++ b/app/test-eventdev/test_perf_common.c > @@ -413,13 +413,24 @@ perf_mempool_setup(struct evt_test *test, struct evt_options *opt) > { > struct test_perf *t = evt_test_priv(test); > > - t->pool = rte_mempool_create(test->name, /* mempool name */ > + if (opt->prod_type == EVT_PROD_TYPE_SYNT) { > + t->pool = rte_mempool_create(test->name, /* mempool name */ > opt->pool_sz, /* number of elements*/ > sizeof(struct perf_elt), /* element size*/ > 512, /* cache size*/ > 0, NULL, NULL, > perf_elt_init, /* obj constructor */ > NULL, opt->socket_id, 0); /* flags */ > + } else { > + t->pool = rte_pktmbuf_pool_create(test->name, /* mempool name */ > + opt->pool_sz, /* number of elements*/ > + 0, /* cache size*/ Please change the cache size to 512. With above change: Acked-by: Jerin Jacob > + 0, > + RTE_MBUF_DEFAULT_BUF_SIZE, > + opt->socket_id); /* flags */ > + > + } > + > if (t->pool == NULL) { > evt_err("failed to create mempool"); > return -ENOMEM; > -- > 2.7.4 >