From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0041.outbound.protection.outlook.com [104.47.34.41]) by dpdk.org (Postfix) with ESMTP id 3E9B01B159 for ; Mon, 11 Dec 2017 16:14:18 +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=JhByUwo3qaBmauIc5nNsxjZbzDsxOxfTV1idRAAG80U=; b=HTCyEA2NUQTZc3QiWw9+79DrsKCOCVlDZqTzPeWNyok+FLcURAUf3LJbVCzYpcHugbqKLmCABSiyR4hVUysCjcB/OyJ3EiXS0zlyNC1pCcA9EQJ/HawYyRoN/4w6+refYA5ACJDx/3lptplOn9oII53M+rVTKn4wX6YKZBQlFd0= Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by CY4PR07MB3463.namprd07.prod.outlook.com (10.171.252.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Mon, 11 Dec 2017 15:14:13 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, 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 Cc: dev@dpdk.org, Pavan Nikhilesh Date: Mon, 11 Dec 2017 20:43:41 +0530 Message-Id: <20171211151346.14405-3-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171211151346.14405-1-pbhagavatula@caviumnetworks.com> References: <1508330348-30060-1-git-send-email-pbhagavatula@caviumnetworks.com> <20171211151346.14405-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: DM5PR13CA0046.namprd13.prod.outlook.com (10.168.240.160) To CY4PR07MB3463.namprd07.prod.outlook.com (10.171.252.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f5293218-e37a-4081-0a08-08d540a9d857 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:CY4PR07MB3463; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3463; 3:zgfO3mlLWX69XPFsgfDASTxVc81QxKZ626VpxsifpXiXS1ZVakgQz6/c9KEUu67QxXncV3UZVLHSXqDg5ryK8em63ZXXNnvAWJ0DFmg5rm4Cy9Rq+xdnp6Pk5Rmx1IDSGK+LHn6/dS3AnNO2QyXhQ4uiYUAOVW2askvdAVX8B5SSkO6lQgd+rIypxmjLBT1yB54cjFAJYtBiVLR7p5R3nD+Klp7IBDRL5uZKn3m3wTNfvp5YK3eMaelY7Yn6SDbs; 25:GyYFarlIY73k/sD27BB0dJ8xg6H6W+M9flCaSdYFwabnHUvu3+2+gHw48i15CnYVAgLRtZJUAAPrfyUstQ5upsCtvfHtJzeY5XdjYpZsPcnOKhI9iKWUNh8R5tJuCQcSX6Alt7/58peY+KbnHeRnY/Pdjf8Xn5NlUshdcluMWlekzBNDsuE+0UbulptaFXvHxud76c+UMPYeyYgrauWX91I9RQI5Gy2Dx2Pn7scuZ/eVIhVYacm6EBjGE3/3Ib+MFOIFmYVk7EcNfEbuwYxZBrolLHbnJyYDZnMmks5gyGB0L7Gq34Iiy6HjCbHSryWQrFap8DGiw3EdYkgxMfwPHQ==; 31:r+JihpIWclu3GeoYcxaoJ8bvLT4PUtnkeT39X5E8/173Emq49RECBqSrPrITvuq0QbYeMD8rdf98UXyT5Om2A3guaY3rnuZyfHE0cUyVGWajMNg4RD1mOl0W2ZRL/yMurbfl8GFrI9tBJjpxGrNSYw2uVa3sv4erI0/FuGfNAY1dRnIs76Rgf5M4eG+7lwn8whQHSFB0tYc8YP9JhlLe4qAA6wiz83RdCuo381OXPuU= X-MS-TrafficTypeDiagnostic: CY4PR07MB3463: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3463; 20:DJ7GQBSJjx6ELwfDqaX89pzUe8UytcgYm4d4qdj5yRIuqEwG1eq89noLXgapx9sIeWrX+k+s9Zk3vFf+m9CKRChztAbo0KKCZ1PqnAHK3LR4bFAtyn860P2gKOsYk00RjToa5J8GaHfS/to1fyNQ6Q0ibzuOpHqwspKdhxXvNrDmUvDHarPHUbX9OaRB5/rZofA4pqNzQaNo6hBj23nys6NlnI0hZ+LOxuukRBBcwK/o/RwisgzOe8/LRh1Z/wgm7TgY8KTgDv1FESyuVRBORC9KmBv8VuR/XbKdx4QEQDLaiRcIyeW4TmzE9vipq+QyVb2BEVYTYBrUbEwY1iHf5Iv1c6+dHjtZMiKiy+YsEzizMOGAcrBQM3HJI896KQH0C2f1sO3GSFY9vAiYmrPv/7PBasVU9mDF2g1PYjO6km7V32zU5c0Qt00Vvs76tZyWCB/DMkT8/l3owG3/oK1WW/m2T+VKOamhvVcKoJsp/5KtrMxLXQXMPdglIbhN/IWvgX41cp0s9ouAZUnfsXDTeNuU71SYYU/Ebk1lh2qf+nyBIkjgzpR4/xrTbb/fWCC4sreMNM0M6hF1BGDd+D5je3KLBogb/BWcfAFdE9U9+4A=; 4:bZSj9p/NyDes7OcH0v/NTOP2C45QQjbpELj5dd1Go2rLEDSYqT4fbzX5lr0f2g8CasElJhPYcwFGYWMcV7U7snGXahGNBRvjlDA790As2muj3PwHgdNPVoq8ne/T+Qu4yB8xWadvPKPgYSoWvyKj8QRuES5X0SMgBUVQL5pQaCx3mEJVew4dapRcUNoZkC3eM1ZcP0hxLLqdkx8AWV1zsr3kbE31RXsf5d/pOWZ5H6hFDUFnfHhrb5kTGO+jmb2ADW92JoSC9vDACsjRf2EFFw0SXnU7d0tb3fBomJszngjULJbPYQWDR1jp7lDdUSeq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(131327999870524); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(3002001)(10201501046)(3231022)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY4PR07MB3463; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3463; X-Forefront-PRVS: 0518EEFB48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(376002)(199004)(189003)(97736004)(53936002)(53416004)(106356001)(16586007)(105586002)(8676002)(25786009)(1076002)(8936002)(107886003)(81166006)(36756003)(50226002)(69596002)(7736002)(305945005)(66066001)(50466002)(6506006)(4326008)(16526018)(6486002)(81156014)(3846002)(2906002)(2950100002)(5660300001)(42882006)(6636002)(6666003)(6116002)(316002)(68736007)(47776003)(478600001)(72206003)(52116002)(6512007)(8656006)(48376002)(575784001)(5009440100003)(51416003)(59450400001)(76176011)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3463; H:Pavan-LT.caveonetworks.com; 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; CY4PR07MB3463; 23:ELc9AvClh55AFwtaN+3YswH9R3xDqbfLeyWpl1cTA?= =?us-ascii?Q?IHf63cgF2QFGEuo6bFqs6YPzQetxr6vts+LvEXYo7/WRHDhbE389x3E7CoWm?= =?us-ascii?Q?xC+A1oPPjrq0SxB3FtO5avMWM43IIrpQUAOOM5CXHHdLTmH8LnBpx4aKsrtJ?= =?us-ascii?Q?cVL8LaK4vqg8TeXGMjH7gB5ALynvCbriyKIQdyXqaW6hj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u4J+1SSvLBV18h7HeoFWDdikX54ARr/j SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2017 15:14:13.3995 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f5293218-e37a-4081-0a08-08d540a9d857 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3463 Subject: [dpdk-dev] [PATCH v3 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: Mon, 11 Dec 2017 15:14:18 -0000 Add pktmbuf pool creation used when configuring ethernet device as event producer. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- v2 Changes: - Set cache size as 512. 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 114210ea6..18945c0eb 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -412,13 +412,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*/ + 512, /* cache size*/ + 0, + RTE_MBUF_DEFAULT_BUF_SIZE, + opt->socket_id); /* flags */ + + } + if (t->pool == NULL) { evt_err("failed to create mempool"); return -ENOMEM; -- 2.14.1