From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0060.outbound.protection.outlook.com [104.47.41.60]) by dpdk.org (Postfix) with ESMTP id 7D0A658C6 for ; Wed, 18 Oct 2017 14:40:14 +0200 (CEST) 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=VDNPJI6foeB2olvLx4+seZNBFlfksLR7nH2hktFnGJA=; b=YU0s33woH73MoSreptUBuHZ/Zg7Id9uAsOT/Uj/4z7RDntNnzUUB+/+kZ9cAqaSeHY8Vp6VD7GDoh9w3spTOosftb+D3ScStBDDJrO/oJSK4gr3VzEw4r4+GOJ5cQlCI+cufUJSidYorRVcyUMjJxJcgcUl0uVmOrRp/kQ7K2Ug= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by DM5PR07MB3467.namprd07.prod.outlook.com (10.164.153.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 18 Oct 2017 12:40:09 +0000 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 Date: Wed, 18 Oct 2017 18:09:03 +0530 Message-Id: <1508330348-30060-4-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508330348-30060-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1508330348-30060-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0040.INDPRD01.PROD.OUTLOOK.COM (10.174.214.26) To DM5PR07MB3467.namprd07.prod.outlook.com (10.164.153.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e1a08a59-28c8-4b38-7e9c-08d516256047 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DM5PR07MB3467; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 3:f59/zMAwEcW9OvwESWykW/+6p9fg5oCwcc9byQkhvXSYPUYDClDJvy9+/XsPh7xZyCJuySG2iBsYue6V35pyCnnmLHgMRgs0aHxetz70Q8Gt0nnAgrmhjRowPzL8WTRsl7r844ybJ+YMh9v/SsdEMeRiiOhcia4mGEE4DCwGj7EsP4SIokvrIk+PIbB/qPjH8gu8bDV0fMX3pYuSFZVTJZHVr2kJM0QfsUGC9cE+bZgaY0NH5HntXeXCE55dYPlC; 25:LuNvR+LUxtxHgiaSRl/CXBMUB9uUFrAwZkBtpTBPtNYZPX/YB7k97nWpD4BMgytC6iKDQ//1LxkqAuGcKW8In9W6PnW7DRzW0ighcryQloqk8aOReq4hqo9AdXt7RZC5byipcFGQKyOiMn5sDH137C/DALGega8r4NH/MUu2cJqL16X20viRPKRbbM3oAoRAjZQlCLkzmu+1UpYEwZdA2ndMi2qr7X4o0XI5e37j/OxP86FeEjuLJpb5Ij5EbpS+e0+8IDFHbwT9co9HvrDp8fF8xfq8oTcjiiMX3jLG6vV+GLfbwx9QKYROvZfVXClww9z+a1FGXUkltZm7UHLLPw==; 31:sPBK9NtFUvlzjAqmvrdV/zS10TH+uysrhxibZSWy8cKDjxoTbmREJjC/Oh1XFLxFS4ooS8zxGz6zuQwR3TxIKnvhdhRxcFTeZzhdPcL66xhOAYWCaN+Gi4AdTXf1kAmOkInPfHb8kjMPG4ZYZkICkalZxnY/aF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Antispam-Report-Test: UriScan:(131327999870524); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123558100)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3467; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3467; X-Forefront-PRVS: 0464DBBBC4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(199003)(189002)(36756003)(316002)(72206003)(478600001)(48376002)(16586007)(106356001)(25786009)(53936002)(107886003)(6666003)(50226002)(8656005)(6636002)(105586002)(2950100002)(42882006)(8656005)(50466002)(5003940100001)(6512007)(6506006)(101416001)(189998001)(6116002)(33646002)(4326008)(5660300001)(2906002)(81166006)(7736002)(5009440100003)(6486002)(3846002)(97736004)(305945005)(53416004)(81156014)(66066001)(76176999)(8676002)(8936002)(16526018)(68736007)(50986999)(47776003)(69596002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3467; H:PBHAGAVATULA-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; DM5PR07MB3467; 23:+IKKK2Ru1nXMqRsvDU9a6ZbS+p5eHr6cGQudQ8B2I?= =?us-ascii?Q?Zu1MDz8GpPA+Ab53D+MDGCT3Nb6IjRlsDfDMyXLK3xJnmMAAtV7G6APVsBaY?= =?us-ascii?Q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TTJ+Gn6QfX/mfRSLAsX1rlsHNxM2qu3yUnMP5tLzOXWg/V/RiBO8s/oeRho74xuLRgNBlw6ybGNVtUIVE7AVZeKnCuLv4FvrjPi7LVsWmwul0JfTuWdhVNgKdlvF891wwWuTHTxlp8rRf1kmlii2ftSi0QzqPQupZPlJPeJk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2017 12:40:09.5661 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3467 Subject: [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: Wed, 18 Oct 2017 12:40:15 -0000 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*/ + 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