From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by dpdk.org (Postfix) with ESMTP id 9E0D7199B0 for ; Mon, 8 Jan 2018 15:15:53 +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=Luf1FFpUy6F9saduG6DxvEJJWruP4dXA4oOPUk9Ripo=; b=lZ0STFGGruDEStTURfmZLumRyOq2xTusqpe0Eu/M1s1KCEDhSUtc0MWpFltdNUEMoZjOASeSipnXd3pN6AmeGrm1mHIm9cuKzjcGn+xEvztt9GZiZK1Yjob52xsjEUNNH5/ApNJPnHMRYLWKsdqnUFRvPWu100An3LEs08m0eEY= 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:15:47 +0000 Date: Mon, 8 Jan 2018 19:45:30 +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: <20180108141529.GD8412@jerin> References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> <20171218214405.26763-1-pbhagavatula@caviumnetworks.com> <20171218214405.26763-10-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171218214405.26763-10-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [171.61.92.144] X-ClientProxiedBy: PN1PR0101CA0021.INDPRD01.PROD.OUTLOOK.COM (10.174.151.31) To BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4f3890c4-86ce-48ef-170b-08d556a25242 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:bVk25iXo8x+tbp1CQEKq7b/XgU5UO7vcqtNJ8y1LDhoHgaBjuNsQ61bZEy0KIy+xu9nzNeYeLj8STlKaRQgsBR4g48ijI6IMid5G0hZBCvnACJClrh8vt8w/0ZxnK89q257lEqDPz50fpnwvlelqA0D0WmqFUlboLRLUf6Uy5Y/Q8QlNEGdUz2xZuU+EoaroPaZViKhSTcE601Thqes5KZsKEbGaW66NPHKkfFa3fCxXUw66AQaDMs1x0d6lwSR3; 25:aOmbAwLYhLgjmUnnY6XRm+fAOt9EiboYphfocliNu5h1znOJsM8Jt+hd7WmJdP7TirCntOcoCm8jOm3MIo7N+njxV5qSXK7Xdtiy0A4XUxOd/PN49SWopdNc4vlWZrh0XT7bVbzpoHBT+9rx9+yqFYf1NBLFLC8/XKMur/Z27Mfb6pNJ5wNkNsaTPETgoXomksM0M4VA1O+kHCJNRkA446d6xZf4C6JGd8RFmyNGQIcMxyynwW8HjzSECPbj8LM4Dex9igOBIJbIUxZIVQTGha4wQHZZupKjp9gQlJgdQPS+YdNXS7Z0cseZ0dElO53N0hiTq7uk2LtH/aOO4Z2/pQ==; 31:qDMqPdOynDQVfVGPGQJsUtToYjBJhfsh+q/jPQs+D3rln9tPO1DpjGBfsPWmpVlzLfnhmMrizo2FN4RT9EVvI4zbhGdy270hEWbSdcytqSbVkwHeA2C1xYLA65a5urRlJN6qxJxcq9GV/pA3L1Esn8GwyXc8HcU8FVIr0XjcB8ackxr9x/KXolsiCfAJaBpwSjEQ70wifwn5Bj5y4AHKIZDaaGGO//rmb6qeA0coXAA= X-MS-TrafficTypeDiagnostic: BN3PR07MB2513: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 20:4uc4rf6Oj8bC+pnjINNKYiBk/eq7yZomZ+MPW9O4+aMsIfHDeQiY6mm7oGMVqb8326GpAkuntC+X+PaBX9a0/30M/49whYwoERLYKyQN6CCLTj/WvZKaQrBPQPF+kZ07eGFvhXP5WmW43JWrXFcLiFPnCQ++ue/rLbA71mC0kh7zvCJQxGYu3l/RoNW/eoveFijJnNeQR7l5PKm500VFUtR2ZuIWLepIdDB6yxBayO1/RphBCTK3bHYGQwylHr3alt0tliPx2I1HCW/UroLHFnFSuCHCmDs+Nun/0OVB8cS8rmyjlDMwEjHDE7N1GupRxZ/N/GgQFWB2T+UDw6pTMoG99NmLRDdrNaYrO5dtzepeANr8Q0JZMrCqtw3KUllqeFGLZDrLXpJ/F6klWMify9V1vzyz1wscUakHaL3cDYHk7eFNgIkv6L3cxIamjAkpE1xdwDbEsiPDvWEiOcHBRs5h5ZxcoBhpkILgJ2zlIl4VVCxyWHx32wQQjeW5hvowS/6zNyn+MeiLdQxzkR0SY+ZV456bfAZYyqW0KCNgoqBsWLjlhUhPW8UVSfLQnugbbwEi5sskVhADh/7f111fDyG6VXJTfd0PVxwpeaWLRN8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(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:tGMPxJIJO0XOQT0a53ocC8tXSdUuvEx4bYsYTPKir+2PoXsNVWyzPStObOcAjKxw2ybZKbFXc2QvbccR2KIMfXqQGmtaiAw7GokXty9xel6feUxPIo+ToPKQMzWGljaP+tR8A1aISoUHKePOBVcgVsWlPYWCa3Akmf1MWVxnZyqSoe/8Eg5Oj7Mf0XbFmw+xuCbX/vOi1uAyaf1rft2VDK81T/KtF9wUuFKn9d9Dy10I7PG3tISPZixswDiU2/fLsLVdc/XaXAhH+goKKG6tC1z+px/lL53lp5CExSm6fBjg6illQK73LDqW/g73u4xTARKOO/OtTLH9j2hUz6cNXcGLwdvqH8toBzalYo7/oSc= 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)(6306002)(53376002)(68736007)(25786009)(58126008)(16586007)(23726003)(47776003)(66066001)(386003)(3846002)(316002)(6116002)(16526018)(8656006)(2950100002)(72206003)(305945005)(42882006)(7736002)(19273905006)(6666003)(966005)(6636002)(5660300001)(53936002)(1076002)(478600001)(18370500001)(562404015)(563064011); 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:IL7JunIHtTpLpXYtRPVzRVZvYT/MadfWzqezhybnt?= =?us-ascii?Q?bAbLfDyHUC7O/QUpeyA7o5ZG1VgGn7oCVtWfwBRkimbPDEJxrfpDhZDH+4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YuPULD8ib2aMH0j+3JFosoVrwee7J8gKFElqNPqsJQGfeWowuiqccaLpxR+RLgl3eGuFq7nX5CozUhU/k/AdthhSt8=; 24:uJrvKdCgDPUDUz6qUTe8ALt25SKlxRlobIDNabF2QRWI8pao433VZzzEkkn7oTzYZd2XWSN/Gjtulm2Ushmjy9UaIgSgJxGhOUpGk0spbGY=; 7:sUYvIO68JtdnFdx2bSG2CRUGC3QE9bEk/0jFq/VCh7MGDa8AmGLXjouT3ogk80qiZA6BeVOj2PmsxswisOudnrdn062GPjmzI1FftqsQQzn0j/Z6oCmZqSRA7Firr5P5nXj+R4oKtdqqQ2aJMizkCNZjGbRuQ0hYLQQMfZmFy5xdJc+ssQzD6fe6puuPpkj71urrWGCCQh2L634aN6zovm5CDxTWQsbK6JlOKhsS9dC61hH0ASnMTQLODJ0f4AuP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 14:15:47.8483 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4f3890c4-86ce-48ef-170b-08d556a25242 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 10/12] app/eventdev: add pipeline atq test 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:15:54 -0000 -----Original Message----- > Date: Tue, 19 Dec 2017 03:14:03 +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 10/12] app/eventdev: add pipeline atq test > X-Mailer: git-send-email 2.14.1 > > This is a pipeline test case that aims at testing the following with > ``all types queue`` eventdev scheme. > 1. Measure the end-to-end performance of an event dev with a ethernet dev. > 2. Maintain packet ordering from Rx to Tx. > > The atq queue test functions as same as ``pipeline_queue`` test. > The difference is, It uses, ``all type queue scheme`` instead of separate > queues for each stage and thus reduces the number of queues required to > realize the use case. > > Note: The --prod_type_ethdev is mandatory for running the application. > > Example command to run pipeline atq test: > sudo build/app/dpdk-test-eventdev -c 0xf -s 0x8 --vdev=event_sw0 -- \ > --test=pipeline_atq --wlcore=1 --prod_type_ethdev --stlist=ao > > Signed-off-by: Pavan Nikhilesh > + > +#include "test_pipeline_common.h" > + > +/* See http://dpdk.org/doc/guides/tools/testeventdev.html for test details */ > + > +static __rte_always_inline int > +pipeline_atq_nb_event_queues(struct evt_options *opt) > +{ > + uint16_t eth_count = rte_eth_dev_count(); > + > + return (eth_count * opt->nb_stages); > +} > + > +static int > +worker_wrapper(void *arg) > +{ > + RTE_SET_USED(arg); > + rte_panic("invalid worker\n"); > +} > + > +static int > +pipeline_atq_launch_lcores(struct evt_test *test, struct evt_options *opt) > +{ > + return pipeline_launch_lcores(test, opt, worker_wrapper); > +} > + > +static int > +pipeline_atq_eventdev_setup(struct evt_test *test, struct evt_options *opt) > +{ > + int ret; > + int nb_ports; > + int nb_queues; > + int nb_stages = opt->nb_stages; > + uint8_t queue; > + struct rte_event_dev_info info; > + > + nb_ports = evt_nr_active_lcores(opt->wlcores); > + nb_queues = rte_eth_dev_count() * (nb_stages); nb_queues = rte_eth_dev_count(); for atq.