From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0048.outbound.protection.outlook.com [104.47.38.48]) by dpdk.org (Postfix) with ESMTP id 064CB14E8 for ; Mon, 11 Dec 2017 12:13:14 +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=SBW0zScRlZGZyDoPRLLxyElYBbjf6Rgz7on98n0EsF7nms0vVWC4N0JCiLcAVs6SYpbcf0UQ4BUH3Jj5c57YgdkWnvZoisV54/IakbOqEtRfU1pReRUsz49V/N8IYa+nC0IcLz0JXxMKd8yTaR4V2UAWacUMXfy7hRYbu3yYRTY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by BN6PR07MB3458.namprd07.prod.outlook.com (10.161.153.21) 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 11:13:08 +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 16:42:31 +0530 Message-Id: <20171211111236.1331-3-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171211111236.1331-1-pbhagavatula@caviumnetworks.com> References: <1508330348-30060-1-git-send-email-pbhagavatula@caviumnetworks.com> <20171211111236.1331-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BN6PR1301CA0010.namprd13.prod.outlook.com (10.174.84.151) To BN6PR07MB3458.namprd07.prod.outlook.com (10.161.153.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 46c9f98e-b882-4856-9325-08d540882ab8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:BN6PR07MB3458; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 3:dHzH3RCAC4d4P9xdUm1nOuMF/Pc3bbdRjFEQrW+YFO6RnmYyHHGJGecuG/WBCfnAi7ILTrTRXS3MItpCr4lzEoQ/z+GJUU+j8WCHvMjjhwO+GRgIWOU0xz7TAuc2+91cCJcuzyU9pCInlKtWXCOTl7Sy0Yv25qbWPlUqUiKpJG02Hzch5nEVEqvhEKe0wOWzQifP4C/TmKarA+uiJ1TbjZwSMaCpUkdyITL0tBjFWR2M5gtv9J1NA5BEzu2+xcA5; 25:iiBFlPDuyVhn5/yrNKBXkwmsrIRh34gB7QDn6ms/MrAZUjqxkSbrRi0FrXCEcRqM/2IwWi9HMiQY12SQ1J8R0rfE0cgrgCRXCEj3M5FK8+r2CTVvMnjB5BbcuFdDkBUprpf20qWOsOVelNFJujQqHi8MdldViRCMeCSkHuDEXIGkLDen+lM1SI1ow93kAbbQtDW+uoGm+pNz+dr7d+ksE2qgz6iYW0lXXuB9ZgJCKSwNUdzUhDYRQopJU+tPdob4jxNmDPQeG1OaQsApIJwmTVoT0h0HVYb2Yz0IwM0ve2Gzb4Wom0AbsZfy0Z4GyJNYqVAQZwYpeqPqS3XT4fLJwTnNoSAFizBICo6pch9qWz8=; 31:j/CjNwg1PoG3lczaqvDu5zSoYCybL0eKRF5OSfzRpGKrlDs2WeSGffpSC4kCnZXtzbPx3UdTpcyb2MlHeAoRs8c/uKLt6g6msmhRn9WYmU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Y7GK/7GmLMxSizbI/as1rpK9eWbV7/XcVTFBuI9gziFscNuHhi6sScNdKySlyZO3qkzo0kiHR70BMP973 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)(3231022)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148)(201708071742011); SRVR:BN6PR07MB3458; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR07MB3458; X-Forefront-PRVS: 0518EEFB48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(346002)(366004)(376002)(189003)(199004)(76176011)(51416003)(105586002)(48376002)(59450400001)(5660300001)(52116002)(6506006)(3846002)(2906002)(50466002)(106356001)(97736004)(66066001)(316002)(25786009)(305945005)(2950100002)(8656006)(478600001)(4326008)(16586007)(16526018)(42882006)(81166006)(6636002)(8676002)(81156014)(72206003)(8936002)(33646002)(107886003)(36756003)(68736007)(69596002)(6486002)(6666003)(50226002)(575784001)(53936002)(47776003)(6116002)(53416004)(5009440100003)(1076002)(6512007)(7736002)(42262002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3458; H:Pavan-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BN6PR07MB3458; 23:QJt0nYHzvfO2mPe/zOZUrMWCxzyqxVoh0KsW42XIK?= =?us-ascii?Q?9VLU2OU2fRCxb5rW0Ywox5jkoD9cP4pe0r0aNYP9Wpd65ASbafOU8BSuWhuW?= =?us-ascii?Q?QXw76fgqKFchWQJAp920Wyhen7dA3e4K0v5XLi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BMGnuRYPzzPds88vuguwp9gc=; 7:LNIjVXxmWgsOfhwaOmDk4YnOhB5W4SBTHkdOGXHecUwqrnYZMbYtGx1bio7NRF0twePdArSuE7nVl64zvqPpSvJUs+OQZNN/u0UBPpGH7ChSvl51fQ5jGwlpnWHSkBh7NLWZtoz97SydOoTOn5Q8eI72r4yxnIZgntLoe7EFKVjnIPawWKoeBS7L8m2ztT9zpmfSchigoopXAMmRVGZuccsKo1i53p5x6s61H1XxUezeMHJl3V5MrMXmpZZKReOi SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2017 11:13:08.6137 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46c9f98e-b882-4856-9325-08d540882ab8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3458 Subject: [dpdk-dev] [PATCH v2 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 11:13:14 -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