From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0041.outbound.protection.outlook.com [104.47.32.41]) by dpdk.org (Postfix) with ESMTP id 32ACC160 for ; Sun, 10 Dec 2017 13:14: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=ug14wDlsL5bkjwG/pxtu06vl9F32cy5/7tPoMpkoVMc=; b=BUtNLpubAS2rcL/QeYoshct6xVg8wB1qijcqPtsTPHgjC2Wmo4NWi8a6qOaaVN6wtISBdvAPAIycp91Q+K9eA3fxqBzNnsbhePOuU++GajvLtxSLMG+hKXz60VtlIXaNbhPu8e4LEVLqAg6sy3Qbv0G2Qo1W0Hq00DH5WSxHLeo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.76.104.209) by CY1PR07MB2521.namprd07.prod.outlook.com (10.167.16.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Sun, 10 Dec 2017 12:13:57 +0000 Date: Sun, 10 Dec 2017 17:43:37 +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: <20171210121336.GG11770@jerin> References: <1508330348-30060-1-git-send-email-pbhagavatula@caviumnetworks.com> <1508330348-30060-7-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-7-git-send-email-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [171.76.104.209] X-ClientProxiedBy: BM1PR01CA0094.INDPRD01.PROD.OUTLOOK.COM (10.174.208.162) To CY1PR07MB2521.namprd07.prod.outlook.com (10.167.16.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 047af3bd-c48f-4533-2e26-08d53fc77f4b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307); SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 3:RAjtw5bIH2hn7hnpC4vMoQmJgv9CkIPLEBLOg2EcyYf0f9nPpZreVa2hCSUwHG/+jSeAHv4TRyNkffsZ4juQtRZyT1QhlXC7mmAjeKUhm+9kSTM2yESZsCVmEV0M7mI7n+2fOp8iLNuig5m9cQK2IfNFolc93hPRzqo9O5Sz/PmmOBAVu/uUHH4RiltVEtmJwX4uaZjf7SFQuXUsiT8ZHZh8fpzURR4ILAl2ePsqkH9CnRdTEuYr7yYpN6lrhAkm; 25:ntjHNm3ArohsbVc0KEF0cX7+yYXOHgyNURlwIXKtVbR7Jxc41Uy/z/C5XHVsT/mxRS+RlrIUe2GaJgIJCXJPvuH5fHRr9lGUb9kf0Dlw/8464kgOf0eNrv4e3KgpWp1me8PKVAx/WNpAHDZxbJvycUqiBBfvKGc+Fkc033uaFnwiaJT2PIcnYGTu2zENt0ZBPKCk7PUZca+plnD0iGtZBXEL85MJuYOYehvjHltqawtcU7/20ysRJd4VFbDhEtuc7a77qn7Kqi0fRHy3kbVNz5S8GFTnqUGIXxdUYJuG1bgvyYc1FMEtZS4dy3fIDUJZLw+UjVIAsUQJ9KNicXBYsA==; 31:2V/oR5TgChthgCTG58KhAmolIkIFT4ClKNO03hnM5AGemlpqIAneOTKHUBW559nGVkS5jrO89lI8KAbn8rBNT0TqO8aen4Rs1mvavSu8U2R2ZmyhbxGTZ3FrSdHHe7yHlRpG6v0Mb+AJ/0N+fGIqBkdoSZvFQ0rUtSc3aWUN6P6mztBClS5Z2o28xMcQUQdOPhC2Lhi5CbTarQ0NvVyefNQ7SNlXexaWsGv4/ebycfk= X-MS-TrafficTypeDiagnostic: CY1PR07MB2521: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 20:+xKJdaGwXnXSUG9aoqFRspFLk6yh9qjVqsRp86a/U+Y1Mmo2+wH6UcD5xPQejZf1ejmQ1IHmICUglEBX4VlLiHSPXKfxASi/vRUqXi+v1f/N3IoOkqUEzbQ6NglhBWZ0yLlK9yQYYPK1PAeBZxhw4Gb/Fk3WzTNvbMV7Ryj4jtd3V1JJRCCH2bFdv0RIryumCiC/Bc0kxdHpuDgxc234YThNULZ7c2sYuVDJQ2lJUEQyhop2iUDFxrhZtT049EQYEUduztuxAdJ9DpJwYLogT7vrO65iLvzOe1YfUpTDZfOyNUo3JIGOeZJlam7IHh9PBfMZ5BHQytJjSiHfETwdxSTH4MZOpzF7owvmqSWQlvi4Px6i6uWrr2knzVXsW799iSt6Jl5IaHt0C+BTvkwTu0bU+P+oWxOEP1kRRCx2zJcsIartn2l/Rz+9h8vaBcgWeyyFLoxfEdoi1zH69SwdxarBXvQXKpupju7NG3FYvPJC1XEWBywJCi6YmKv1X0haDGlDDuMd9wRtJiTYoUtGxZzeR1QRqWLx1d0aMCibw6KQ83wwUJXbWgCvOT+TXUjwwDfSm0aLq3ezX6IY5lW3e6iZLsEHjaougvWboN8OU/U= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3231022)(10201501046)(3002001)(93006095)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011); SRVR:CY1PR07MB2521; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 4:TIvZfRxdMOWJ2xFmg8jh0OWLJn3eXR6wtPqE5BjeAysIy4TmMf2J9gZwJvr2XQ8dyt5B6T9YHU2u7cTlkoQQgyK6wCodSTko6PtnKTzDCN3ZI4d8unlzoLwRDqPdEabmqS334AXvXhuHCqhXfx+mrm2pecWOw/kEAwZ1NUsAmZTHKvTf9l1LvIrVM7lsQgWKx/zaH7/ctj0s+sj6kVAYBE3xAuFrNmZCgiqZcdzXf3ZRu9khNwHuYOXI6DJr2Fi8/F8dlwXShDLafZQ7X50tLUuyTw34F10AM/w+KyqzAzzSEJiYw8rdMS5Yk/30DxPjfTumM0XSz5EbntkGcTYf70N+GwA20WYoSousQvq7SPA= X-Forefront-PRVS: 05177D47DC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(376002)(189003)(199004)(13464003)(6862004)(6636002)(68736007)(575784001)(316002)(16586007)(97736004)(1076002)(16526018)(53936002)(58126008)(25786009)(105586002)(229853002)(106356001)(9686003)(55016002)(305945005)(478600001)(72206003)(33716001)(4326008)(6116002)(8936002)(6246003)(8676002)(33656002)(6496006)(81166006)(81156014)(42882006)(33896004)(6666003)(2906002)(5660300001)(23726003)(3846002)(52116002)(8656006)(76176011)(83506002)(7736002)(2950100002)(50466002)(47776003)(66066001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2521; 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; CY1PR07MB2521; 23:Wx1EH2nKsbg1J6AGkXCrT7pY9FkBaLE/IjG5pgTc3?= =?us-ascii?Q?1e6soqR1DMqWS4U6NhiULcdHiWggVpuP1T9VDDXPFQgycynq6PidABqa5ZBw?= =?us-ascii?Q?uFAsgJxkKVNl7va3/T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Fle4aNc04KYhnYR+wSc25XgtqnhGw8RrUE9TNFiHjnN3OY1Bgv+hGkxaUIvcuu7AnBmU2E5DxZX3+3THMQ5ohf73kprXH4JMxpIbLrnZmE50Q0xNTXOi9TmEnVMCqrHFH5uP47UhCQP+++8wnLLIbltTfyS3ky4TlEMMbD52cJFXayQFggQJSLDARxDKNo SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2017 12:13:57.4624 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 047af3bd-c48f-4533-2e26-08d53fc77f4b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2521 Subject: Re: [dpdk-dev] [PATCH 6/8] app/eventdev: add event Rx adapter setup 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:14:02 -0000 -----Original Message----- > Date: Wed, 18 Oct 2017 18:09:06 +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 6/8] app/eventdev: add event Rx adapter setup > X-Mailer: git-send-email 2.7.4 > > Add functions to setup and configure Rx adapter based on the number of > ethdev ports setup. > > Signed-off-by: Pavan Nikhilesh > --- > app/test-eventdev/test_perf_common.c | 97 ++++++++++++++++++++++++++++++------ > app/test-eventdev/test_perf_common.h | 1 + > 2 files changed, 84 insertions(+), 14 deletions(-) > > diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c > index 04c0c65..0ade1dc 100644 > --- a/app/test-eventdev/test_perf_common.c > +++ b/app/test-eventdev/test_perf_common.c > @@ -232,12 +232,68 @@ perf_launch_lcores(struct evt_test *test, struct evt_options *opt, > return 0; > } > > int > perf_event_dev_port_setup(struct evt_test *test, struct evt_options *opt, > uint8_t stride, uint8_t nb_queues) > { > struct test_perf *t = evt_test_priv(test); > - uint8_t port, prod; > + uint16_t port, prod; > int ret = -1; > > /* port configuration */ > @@ -272,26 +328,38 @@ perf_event_dev_port_setup(struct evt_test *test, struct evt_options *opt, > } > > /* port for producers, no links */ > - const struct rte_event_port_conf prod_conf = { > + struct rte_event_port_conf prod_conf = { > .dequeue_depth = 8, > .enqueue_depth = 32, > .new_event_threshold = 1200, Use default config get functions to get optimal values instead of hard coded values. With above change: Acked-by: Jerin Jacob