From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700084.outbound.protection.outlook.com [40.107.70.84]) by dpdk.org (Postfix) with ESMTP id 3CD771B4BE; Fri, 13 Jul 2018 10:51:44 +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:X-MS-Exchange-SenderADCheck; bh=oCQCO/GsKJl8VaM0bCR243pvp3Fqla1O1dm51z+Typ8=; b=elgTm1csPtzDYNY/+ztsaQwvwzOcbQkLEiGmNxhqiGcvCLJUnpFgLQWIrUe6ZHoi1dinD1q7RnA8eDmZfd4bdUfe7OpztB+WJTVOh4xxBER/KnPmWZzlPcgDkjhTYY5CLp08me9HBbAa/rbUEg0I7VDWUCHZIg25+poO/9qR+A8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by BN6PR07MB3457.namprd07.prod.outlook.com (2603:10b6:405:64::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.20; Fri, 13 Jul 2018 08:51:40 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, gage.eads@intel.com Cc: dev@dpdk.org, stable@dpdk.org, Pavan Nikhilesh Date: Fri, 13 Jul 2018 14:21:14 +0530 Message-Id: <20180713085114.25356-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: AT5PR8401CA0051.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:741a::13) To BN6PR07MB3457.namprd07.prod.outlook.com (2603:10b6:405:64::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0d7a0976-f3a6-41bb-44cb-08d5e89ddaa9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(2017052603328)(7153060)(7193020); SRVR:BN6PR07MB3457; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 3:Ujpy3XBSPsYHsvJHGqVt9aSuypsMZ0SrqyU/YXKp8BvzKQFckQMENEETKfZi5IbFdljFVbvWGubtcVvHNI5HYrlKmbRYFwLfAIIFRd0ECr36+q4g9GNm34dF/WzvR8CABnxzVd/8R1PxYpHM+EzD85/lktNP6Cq6PNIGWRyZx/urp4ImOhcxYPCK7B7f8pti+4eRrrpx/KpNosl/qX4SSA5QwyIuVoIFQsMRcDuMevpqvizn5psCFrXLZVswE4QW; 25:YcetwGIlSTEla4n3NQIpL12WfY1il2qSL6eSTJwkcDaxSE9AG/t6/fPi3kBHvptLUnk6SmEv+JUP5Gw3y5LAj+dAXl7vYl4C7kXszeqJkL6OE1QeIB90bquFQjn3iqpiOx54nnvZdP7johQ37ElMpd2FRVt9FrNgdmNdcMQ6Ft/btgUBB114xNaEsiQe/G5eQ6vi+Ul8asgzeJO2q5mkvi40acLNOetD08G+4yIz08zA8i4ZrbkptpeI/R6BbFCLWZ1R2YwNlGES2Z4dlQ8u4XzXpG6NPSAVKh6wB9CbYZVsovDoiOgD70abF+ZqEZAnBaC03EMxUOGIyUpd+qu6+A==; 31:KCUjdXja8rbjacyFJMcefi4Buh7qa3fzWgRCieZ8BTs3xaCCACdLmwTnOBs4TMIzfvv1MvvgeT+kJ70NvPFl6gpi/F4J921W7+GadMsYsqkrwWultb8HmXPiv3QZe0tkqJyunCrTwAsrEFCxnxAB58VoE9bHWHuhyfUIh5Kp7XynjNeZRlp4ojzjtFmErl8zxMSuzypQvBLYAANJtMqYhI8KGvxwTXY3DLffUfu77uk= X-MS-TrafficTypeDiagnostic: BN6PR07MB3457: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 20:ZaBoAcw3MPYD8tytq+Es0JH1s04LvcK6Oun+wnydJ9HY4fmjmrOPVp09HwFcKaq/IFXa0WzytXE0S/c/OQw++TJZ7EGNl3zPZsy2ogn1OBt2g0NjsnV4k902CGzhgjpVdtdbQeSfcKwMkdxF/6A9hZeDiJMaRwkKVXKFhS4v5DyfD1CA7D2hATrEvO2excFd9SV0+nBEJV0M/1rxe23xPq4lJqGdxPZ66VlM9W+VTeZi7r6ORnhe/3OUxw/8UUhfJCvQw6Bodqa2Bj2BVxiOYrDzHlIHjIPQ6Hq6R9MuM4NhcX0kjBcYCz8lLuW8YJWicY+c1KJVssfKAJMi3CqLD5/tHy92bIPsdr8nN1QCraMy2S8mLh0TTISL1kAXq9eo3gSCgyjv/PcKRtGONvK8GC27BDjsXI05OuQhNQbjC2ZV1noRsr1dUebv6PaovCNVexlJ65JEVoVB0El64iOS1znAc4egOytlNhNsmHDfG5KgAa8ITuHKi4mseRhljB/BMa8WGXNKloj2UxSgBunN5eKhltoylCNykHJfJRJvxGpabu4SB0RIsu0lS1jdu3WBVQfkfpYyqAsbJpI+sguairuCBj9tNh6r0Mor7heXFTk=; 4:bCqbgFyCUE9uGEcdG/B8jTkZuTJLHgzXcs41H8gc7VwJ+dYPKliyyq0HHzJ+a59n+nWY6yuA/Kw6PWecCZQ9eGrar11GV/AprxSRwsJMUlD8i3LEvbAPqgMF6867kDbya7/dIn87KtodWr2selPOcv2NFM5tuTTwDIXSsildZPozHYMJJLIRShCx5RY7jD1nRywPuWoLTICG0nhh69iKyH/xoNzRzYEzjfjYbGdgdTlITRL8wlRHOXbGUx2i0/zKceQKfAL0RTrxrIO//JCThCCkcwFJykT0sYLwcJx1JkoiYp3nhq996+VcipMny9Na X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(3002001)(10201501046)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BN6PR07MB3457; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3457; X-Forefront-PRVS: 07326CFBC4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(366004)(39860400002)(376002)(346002)(396003)(189003)(199004)(26005)(3846002)(1076002)(69596002)(48376002)(316002)(2906002)(107886003)(6666003)(47776003)(36756003)(16586007)(53416004)(72206003)(1857600001)(16526019)(50466002)(386003)(478600001)(6506007)(8936002)(5660300001)(6512007)(53936002)(51416003)(8676002)(486006)(2616005)(68736007)(106356001)(66066001)(105586002)(476003)(7736002)(81156014)(6116002)(97736004)(52116002)(14444005)(4326008)(50226002)(81166006)(956004)(305945005)(25786009)(5009440100003)(6486002)(42882007)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3457; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3457; 23:3i+l88Pqx29f3vqLGlyz9bZDwbDB2Jau2woQXXDcm?= =?us-ascii?Q?zOPVI0PrSO09BGQn16NWkX2vzLz+3ujjKWUUjDZN11BuQjFrS4HF5LK4R0rh?= =?us-ascii?Q?c7IBkz4scsb642D5fEMBy8xhNIWlcCJm528sjBvMV61spRw2oA4A8vO+DBAj?= =?us-ascii?Q?US63GBdsbcvQtA7eI2RP/rivC5O6FLKEV8v5q2D3Xb4J2sNZXe7DjLYBZSom?= =?us-ascii?Q?j09c+aHgSgGghk8/VY1sYT15USs4c6SMR2DGKlRNDJ3GJIjUsvEWaMhUkmBw?= =?us-ascii?Q?R5A0KxlOPZ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PrX1d0UZsLy82+Y/3PkAkgc7813+EFakfGhl15EAjC+HJ0ZMKODsxGdwgOqBlHZ0ni5/GjXbeOfHy8YbXUxrvc6TCStnIrUrZAzy/KLPp5VL2f0BOud4d0ZRtw2dqfmhPPdNttChORBJk=; 24:GizLhwTEhv67DdpzuiuqWiI+l9zb/tKd9oT3YWaHEnRfobpPHZD/MW9m76yPdRrCNRSXB1nbew6LHO2MVzs2OzjKLpZwB0STXfwrX+ARBWE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 7:Y7cWZzC6tU8mXAoofqVsHLEh0yLH2OJzBI2JQmjPQvtoN779SH1WPcnOgWLwqaFEwvKYpMweqL540GrhyBVcEW37tvkbFQwgZn2pCqdylDGm2sco836A2enurVq6AYJW7Ir6X/uXBdQGy87NNS5lFmmcpWWswzh9EWAEbcbG2oVB6abP7b2mINvN6430XOyHtRYd7IjkT0gG6nTtdFfNb/+Tn854CgpT/9H8z9q8+2DBbA66jj+dp/piRgqkCVV8 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2018 08:51:40.1326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d7a0976-f3a6-41bb-44cb-08d5e89ddaa9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3457 Subject: [dpdk-dev] [PATCH] app/eventdev: fix order test service init 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: Fri, 13 Jul 2018 08:51:44 -0000 Previous modification to evt_service_setup() broke order_queue/atq tests. Fixes: b0333c55dfa5 ("app/eventdev: add service core configuration") Cc: stable@dpdk.org Reported-by: Gage Eads Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/test_order_atq.c | 12 ++++++++---- app/test-eventdev/test_order_queue.c | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/app/test-eventdev/test_order_atq.c b/app/test-eventdev/test_order_atq.c index c57fbbfa6..35debcfdc 100644 --- a/app/test-eventdev/test_order_atq.c +++ b/app/test-eventdev/test_order_atq.c @@ -151,10 +151,14 @@ order_atq_eventdev_setup(struct evt_test *test, struct evt_options *opt) if (ret) return ret; - ret = evt_service_setup(opt->dev_id); - if (ret) { - evt_err("No service lcore found to run event dev."); - return ret; + if (!evt_has_distributed_sched(opt->dev_id)) { + uint32_t service_id; + rte_event_dev_service_id_get(opt->dev_id, &service_id); + ret = evt_service_setup(service_id); + if (ret) { + evt_err("No service lcore found to run event dev."); + return ret; + } } ret = rte_event_dev_start(opt->dev_id); diff --git a/app/test-eventdev/test_order_queue.c b/app/test-eventdev/test_order_queue.c index f603a0230..17f7b9845 100644 --- a/app/test-eventdev/test_order_queue.c +++ b/app/test-eventdev/test_order_queue.c @@ -164,10 +164,14 @@ order_queue_eventdev_setup(struct evt_test *test, struct evt_options *opt) if (ret) return ret; - ret = evt_service_setup(opt->dev_id); - if (ret) { - evt_err("No service lcore found to run event dev."); - return ret; + if (!evt_has_distributed_sched(opt->dev_id)) { + uint32_t service_id; + rte_event_dev_service_id_get(opt->dev_id, &service_id); + ret = evt_service_setup(service_id); + if (ret) { + evt_err("No service lcore found to run event dev."); + return ret; + } } ret = rte_event_dev_start(opt->dev_id); -- 2.18.0