From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0043.outbound.protection.outlook.com [104.47.41.43]) by dpdk.org (Postfix) with ESMTP id D587E1B1A4 for ; Mon, 8 Jan 2018 15:07:02 +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=py1hYoccr58XmHh1nQkeVGWC2vmVzVC6CWRM3XLr9PU=; b=NCnLVrsMd9PFj/Qrjlb8QZY1+DR4l/7MGTtzHPdkUTdu+KNXXN/GVnKs2gPzk1Rwp6Qc4aF/ajL5Yw6x79jeKBI4r44+33fxrTOXhumYeZHXRVDBdXwJHdkuoLJUhhoTLgCKM/5euAL5FzZInHGCmd0BhiDq/VWZU3XCVLBO/Gk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.61.92.144) by BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Mon, 8 Jan 2018 14:06:57 +0000 Date: Mon, 8 Jan 2018 19:36:33 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: santosh.shukla@caviumnetworks.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, liang.j.ma@intel.com, dev@dpdk.org Message-ID: <20180108140632.GB8412@jerin> References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> <20171218214405.26763-1-pbhagavatula@caviumnetworks.com> <20171218214405.26763-3-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171218214405.26763-3-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [171.61.92.144] X-ClientProxiedBy: MAXPR0101CA0019.INDPRD01.PROD.OUTLOOK.COM (10.174.62.29) To BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 29806de1-ee58-4d0b-58e7-08d556a1164f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN3PR07MB2513; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 3:2bOP9VQpKT9y9YEGhschi6WC48OfE3gzivLZSPnyxr2tXNp62Ure8enHCdadheD5l+ERmp/YSyZqJY+xJzpUs3sJdhp6kuM7Wj3sdAf3NP0qbYPCUvWwD05GlIAeIVqPgi5CxJIKZtlC1r9bv0JO9z05MrS6S3EH0K2Zc04yk+h9eQysQa7GSgp28m92mFR0AuWbqwnyv3G099u1nc8UI0ex3tBVGpZzA4EgVcCf16Ip5xzcg4im27vtUy9MLJEr; 25:6efYwzeaQF4muQfigNq3TAJMcg4DiuDslU6aSGh3EP7CObDFpqfrx17cTk7cbqRbiFpzXsfKpS4PoCBDaMScGM0AhH+q41cXgcOccZPXvV0CK+DuveyapnL4jJWW3v/eATZweyqj0RRWgKVUoviUgR/wUa91eiFSPjSkzjiNKfwGBzRSsXeD6vv03drvhbdI5CBoj38HtwEyFlwIJUXMwrsPLN+CyTmhQiK1WRci2GBSVioEnbcTIKNtgHEoPNRjOCTaBEFok9ZoP1VcfluMELPtXYrBnaPvKPSuJp9nBVVmo/8lLKl8LGZ7zMXxZdk7ZVHpVdKyeqNeUkTzkg4Ktw==; 31:DbYEq1AnOscJ4k/OfcRHun6SvBVbTQC098yAcW+A5jqaVG6j081NpDgBe81JsFAFiyiC51ydOpcQPh6JLrP2M5qS8bvmAOzbWAzRyC6H8Jj7c+nysDtX8JXKzctp6n55nH5N8s2PCrFlbF7soMmFAdh9HZsounQ+evYI6Hs2qztslhzsuF6608mGljTECF8gAGZ3nW4npPmnEL9Cf7/pasruSilZVZr6S8hrh1wSKnI= X-MS-TrafficTypeDiagnostic: BN3PR07MB2513: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 20:45yBq+myAxkHLBG0tIuBODa2OdVIc58MD6fIL0ROewWy6zQezltiCnxcHnIigdRJiKwwMR4yQtXDhq4VU4RFkL9HoEOdIhTmIKb1/Hx6m9YrHZF2KjWqjnke9gA9Q9LZqlXg05YRy932HTPAvqWWCsCNdSj9Vuv0P2SXOfidgRnjerIbJzR7Ps16d/Gqt+1jxAieAlsW10zf2tPgo3xfSN1hGIMs+FnElRMid6DihvINNssRoNYadtOHqF87dmiYj+h+xN/4qMwjKZM4HWmjnY3vDzjHOm3CwmA7vcQ8aoVPTMCR0mgPuiMEjTm8MiP9Nvv1G7imuHL6mlOSNUcOXNKSoYMvsGYdz2ngb+G9NLDQDTzgscWzvMrGlhnjIAFGL3wiCk6UwsqHIyZCiZtPtBO2OddVgsRq9U5Cqv8TEloQJDcgp029Dao7yH33T9wcTa81UGNT01TDejvhf+gU0X9Cbf56KDSmBXY+gZ6pnxDHS0glR+3hfLda4WKi2rN0Hz4r5/J7bbLbuIUgI9E2dhHmeaLKtPOJyh25YmREfJyZCWMt4s92dCMTdoKlkgflwUIDJWGs5ZRAS46aWT3qJTFplj7d5yiHVnah4p1TyTs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(131327999870524)(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(93006095)(3002001)(10201501046)(6041268)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:BN3PR07MB2513; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN3PR07MB2513; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 4:8ww4etGR1+PAUFUHFIKybp6ez75QYJuvdStnPWwhuiXYDztQi7008UFf+GB96dgiFR4M9/sDx2BBAoElSL7q/CSP71qtulR8EUoc2wBTPYUUE5YFySVvpKORIBm4g/BQrIwvegoIzj9OmL8MtBry1GxfCKewkswssd5r2GrFnL1OtxqlkjZ4FPZFtNTyqIrUK578TPq2EkbthmNfkLpLMMB6dNC09nm/AnfBXK85xRK9VhR80x2Ik+xy5w6huOdP4zh0f8+xB3oHIwt9vMG2bffJy5xDrOGd1WZ4QIWHcR4bome5S/E3JXj/puWu7uCgJG+6+N8iX5/sWS+fi346XerF4+n1Sei+ifg0FPo+/AD7iD03Ti0UBKcGuw4RrXgW X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(396003)(39850400004)(376002)(346002)(13464003)(189003)(199004)(229853002)(97736004)(33896004)(2906002)(33656002)(33716001)(6496006)(105586002)(52116002)(6862004)(8936002)(6246003)(55016002)(50466002)(76176011)(106356001)(83506002)(8676002)(9686003)(4326008)(81166006)(81156014)(68736007)(25786009)(58126008)(16586007)(23726003)(47776003)(66066001)(386003)(3846002)(316002)(6116002)(16526018)(8656006)(2950100002)(72206003)(305945005)(42882006)(7736002)(6666003)(6636002)(5660300001)(53936002)(1076002)(478600001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2513; H:jerin; 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; BN3PR07MB2513; 23:lAkDni8Qc4rb/lZmrfrfAzUmR4CdSj6w23ZA3JIBQ?= =?us-ascii?Q?Ev/jcS5g+9UQXhsVS6s3cuNsTCKIryl8y6KnUZJzakwE2qfdMwpMOmTOZK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apS8=; 7:r8FBWSKSJO3gn6IxR7Q4bB/sti4Ykg6uXd4L+rIN+RHabQK+WMCdlORvtmie/mI6950eQLehlliuLPqmgx9tbgIG2Wsl1eiMpyWSPD5SA8lH7tdrstcDA9VPlCdFWsclXwNkn7e+g24XD0IdV5i0MLg4DrbeiMjSqmy1t71lJIs4+VYIXylawJamgn13uZujcWAiAVU/KzeMpUeKPYUEccILqke2YfkXmtk+lvfZVJiK0oVcOcNwqZO4r1RcQ9za SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 14:06:57.3064 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29806de1-ee58-4d0b-58e7-08d556a1164f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2513 Subject: Re: [dpdk-dev] [PATCH v2 03/12] app/eventdev: add mempool setup and destroy 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, 08 Jan 2018 14:07:03 -0000 -----Original Message----- > Date: Tue, 19 Dec 2017 03:13:56 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, > bruce.richardson@intel.com, harry.van.haaren@intel.com, > gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, > liang.j.ma@intel.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v2 03/12] app/eventdev: add mempool setup and > destroy > X-Mailer: git-send-email 2.14.1 > > Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob > --- > app/test-eventdev/test_pipeline_common.c | 29 +++++++++++++++++++++++++++++ > app/test-eventdev/test_pipeline_common.h | 2 ++ > 2 files changed, 31 insertions(+) > > diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c > index 6e9088719..d34003362 100644 > --- a/app/test-eventdev/test_pipeline_common.c > +++ b/app/test-eventdev/test_pipeline_common.c > @@ -32,6 +32,35 @@ > > #include "test_pipeline_common.h" > > +int > +pipeline_mempool_setup(struct evt_test *test, struct evt_options *opt) > +{ > + struct test_pipeline *t = evt_test_priv(test); > + > + 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; > + } > + > + return 0; > +} > + > +void > +pipeline_mempool_destroy(struct evt_test *test, struct evt_options *opt) > +{ > + RTE_SET_USED(opt); > + struct test_pipeline *t = evt_test_priv(test); > + > + rte_mempool_free(t->pool); > +} > + > int > pipeline_test_setup(struct evt_test *test, struct evt_options *opt) > { > diff --git a/app/test-eventdev/test_pipeline_common.h b/app/test-eventdev/test_pipeline_common.h > index f87d02d6b..35367d546 100644 > --- a/app/test-eventdev/test_pipeline_common.h > +++ b/app/test-eventdev/test_pipeline_common.h > @@ -79,6 +79,8 @@ struct test_pipeline { > } __rte_cache_aligned; > > int pipeline_test_setup(struct evt_test *test, struct evt_options *opt); > +int pipeline_mempool_setup(struct evt_test *test, struct evt_options *opt); > void pipeline_test_destroy(struct evt_test *test, struct evt_options *opt); > +void pipeline_mempool_destroy(struct evt_test *test, struct evt_options *opt); > > #endif /* _TEST_PIPELINE_COMMON_ */ > -- > 2.14.1 >