From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0076.outbound.protection.outlook.com [104.47.38.76]) by dpdk.org (Postfix) with ESMTP id C23CA5F16; Thu, 20 Sep 2018 08:38:45 +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=AHrIbXKUXu/fmfUtN3sN6HxrCq+8bTJfDEViIt009aM=; b=NLUAPmBRJWWhx8lgPyFjY7sOvVIqpZHqXx3EqhnfDouw/VPUaLgljU91XTubPl2aYhQXbF56L3w+BQbWnOi5vQSV2iUWDqXG0o9mFLysP1IIBoe/52Q00ULsomeDztB5sNBpk3p05kjGp6nSiGAPsvaLQfKvHfG/yVX4wksBL14= Received: from BYAPR07MB4997.namprd07.prod.outlook.com (52.135.238.214) by BYAPR07MB4933.namprd07.prod.outlook.com (52.135.237.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Thu, 20 Sep 2018 06:38:43 +0000 Received: from BYAPR07MB4997.namprd07.prod.outlook.com ([fe80::c465:d2a1:d4ad:3af7]) by BYAPR07MB4997.namprd07.prod.outlook.com ([fe80::c465:d2a1:d4ad:3af7%5]) with mapi id 15.20.1143.017; Thu, 20 Sep 2018 06:38:43 +0000 From: Jerin Jacob To: Nikhil Rao CC: "dev@dpdk.org" , "vipin.varghese@intel.com" , "stable@dpdk.org" Thread-Topic: [PATCH 2/2] test/eventdev: remove eth Rx adapter vdev workaround Thread-Index: AQHURcHJjAD5yUke8UyurWKTQR24KqT4zZkA Date: Thu, 20 Sep 2018 06:38:43 +0000 Message-ID: <20180920063835.GB2283@jerin> References: <1536225103-181590-1-git-send-email-nikhil.rao@intel.com> <1536225103-181590-2-git-send-email-nikhil.rao@intel.com> In-Reply-To: <1536225103-181590-2-git-send-email-nikhil.rao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [111.93.218.67] x-clientproxiedby: BYAPR05CA0008.namprd05.prod.outlook.com (2603:10b6:a03:c0::21) To BYAPR07MB4997.namprd07.prod.outlook.com (2603:10b6:a03:5b::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR07MB4933; 6:07pQS4Wm+qRBLUBvlWlq8tmaDoEODlgPoeWhQouQk++P9xxNGBayFDa6vwYavE66rso+j4+MvRu+hAQdd/2aW2UDzTPs/6tqJ8enwCb1pc9Bhq6FO20MlIXJF4vZmRfkfkp4IGuw3ryODTdXKRI+OxzyqLZUXN3JBNYvz1KACOtytXPZMx7TA/OBcnFvf2v666gYjtIeHvjYsRgItSkqxsN02XkAilrkN3qeZqndHuDYa7VQz+CKm6cbjKkbgW4dMINdH0/krrAB7UG215DpzcKP29a2xQkq+IqHv1B21hhTTmDWnOYLJlAm2hweSiqku40kjzG10qmvxwZHfGBryMhQOf5Yq2SgvlYF1+NuX926VvF5dgcAyX2vf3IV0Hz+fFFyvhnckVdj+JMId0/6XiZzmY5jyAzy4NDjGvvNNIEvOcmhVOVgZQ7n/juF3sTykNM9gTjZkOPabJQznU7zDA==; 5:9T92jt+BcFZm76EGA/HlVcp/FR20sy6/e/R7D9/FgZhKC22TcwLKq4PCgtZXLmeskbV5JkE/645n1S464nyUmLV/+Kz55QkpfyB4G0GN9byoW/gacQzjU8MuwsEU0maDhGLUaCoizPPjXeAP79vxwv2guTRobviij9kgDt6ItGg=; 7:9auooBmAuhpPKeqOZ0CV/pK2fyHOu0tQ6RHOgJr6CZ6A9aFNAOgVtCtyGIAE0zvYykMUODwX2fCCq8CwV+XCpwJxbfqam14ZN591KBo4NxQNupmKw5sqzk3RxMQB+cMhngOH1/FiGOL4k+uXUwt58KvStIbaLw6pk6h7IFMcHUAA5p7wyzZcpULrObCU0KMb57GtRcWKB8/07b6ESi8Srg6PyjOXHw+y9aQFMl1Eu/wYRlr2CsWEZFx9Aw3u6mAK x-ms-office365-filtering-correlation-id: 281743e6-0344-4fd6-f555-08d61ec3b54c x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4933; x-ms-traffictypediagnostic: BYAPR07MB4933: 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)(3231355)(944501410)(52105095)(10201501046)(3002001)(93006095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051); SRVR:BYAPR07MB4933; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4933; x-forefront-prvs: 0801F2E62B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(7916004)(396003)(39860400002)(376002)(136003)(346002)(366004)(189003)(13464003)(199004)(5660300001)(102836004)(68736007)(97736004)(26005)(186003)(81166006)(5250100002)(105586002)(4326008)(7736002)(8936002)(305945005)(8676002)(66066001)(81156014)(256004)(14444005)(2906002)(2900100001)(25786009)(478600001)(316002)(9686003)(106356001)(6512007)(3846002)(1076002)(446003)(6506007)(386003)(6116002)(54906003)(76176011)(6916009)(99286004)(53936002)(33896004)(33656002)(33716001)(14454004)(6436002)(486006)(72206003)(42882007)(476003)(11346002)(229853002)(6486002)(52116002)(6246003)(71190400001)(71200400001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4933; H:BYAPR07MB4997.namprd07.prod.outlook.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-antispam-message-info: C6fLj6prt0kJX03pZiONBdymdszvBweQQcntQL48OOhbBOl1Br3SFH1qMexAZnsm+F+NeHGIF0FOLLECof3PZEsIdE7w+zA6HP2N/vLZwxD9KpEcuYufsuEV+0MgUcdbEaNq3JIEpfUx+xjH4teEo11aQDiZkUI3DvBhdWoe0Dk1xf7LHKcLH2kRfihHkZnAAajHEs+HgODReCQcMKQOoe0s3AIw+yyn0AfBugoXHoPTOy5uZtt1nLCWjl4j+zJlqNEhHqKVpLj5ygSnxbPkvvFLW+dAH7IQSm/a3Y6k3P2F9aqE8iOoDoyu5Hfz1wkYXj18Flu4YONnG8qQPOJwSy+bOA1RqxxtT0Ko/cTvAA8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <10EDC93FAC79044EB5CC817A90D2C217@namprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-Network-Message-Id: 281743e6-0344-4fd6-f555-08d61ec3b54c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2018 06:38:43.3252 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4933 Subject: Re: [dpdk-stable] [PATCH 2/2] test/eventdev: remove eth Rx adapter vdev workaround X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2018 06:38:46 -0000 -----Original Message----- > Date: Thu, 6 Sep 2018 14:41:43 +0530 > From: Nikhil Rao > To: jerin.jacob@caviumnetworks.com > CC: dev@dpdk.org, Nikhil Rao , > vipin.varghese@intel.com, stable@dpdk.org > Subject: [PATCH 2/2] test/eventdev: remove eth Rx adapter vdev workaround > X-Mailer: git-send-email 1.8.3.1 >=20 >=20 > eth Rx adapter has been updated to support hotplugged > devices, devices created after adapter creation can now be > added to the adapter. >=20 > Update the adapter_multi_eth_add_del > test case to create the adapter as part of test setup > instead of creating it after creating vdevs. >=20 > Fixes: 2a9c83ae3b2e ("test/eventdev: add multi-ports test") > Cc: vipin.varghese@intel.com > Cc: stable@dpdk.org > Signed-off-by: Nikhil Rao Acked-by: Jerin Jacob > --- > test/test/test_event_eth_rx_adapter.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) >=20 > diff --git a/test/test/test_event_eth_rx_adapter.c b/test/test/test_event= _eth_rx_adapter.c > index 4cca77f..d6d137e 100644 > --- a/test/test/test_event_eth_rx_adapter.c > +++ b/test/test/test_event_eth_rx_adapter.c > @@ -489,9 +489,6 @@ struct event_eth_rx_adapter_test_params { > err =3D init_ports(rte_eth_dev_count_total()); > TEST_ASSERT(err =3D=3D 0, "Port initialization failed err %d\n", = err); >=20 > - /* creating new instance for all newly added eth devices */ > - adapter_create(); > - > /* eth_rx_adapter_queue_add for n ports */ > port_index =3D 0; > for (; port_index < rte_eth_dev_count_total(); port_index +=3D 1)= { > @@ -509,8 +506,6 @@ struct event_eth_rx_adapter_test_params { > TEST_ASSERT(err =3D=3D 0, "Expected 0 got %d", err); > } >=20 > - adapter_free(); > - > return TEST_SUCCESS; > } >=20 > @@ -675,7 +670,8 @@ struct event_eth_rx_adapter_test_params { > TEST_CASE_ST(NULL, NULL, adapter_create_free), > TEST_CASE_ST(adapter_create, adapter_free, > adapter_queue_add_del), > - TEST_CASE_ST(NULL, NULL, adapter_multi_eth_add_del), > + TEST_CASE_ST(adapter_create, adapter_free, > + adapter_multi_eth_add_del), > TEST_CASE_ST(adapter_create, adapter_free, adapter_start_= stop), > TEST_CASE_ST(adapter_create, adapter_free, adapter_stats)= , > TEST_CASES_END() /**< NULL terminate unit test array */ > -- > 1.8.3.1 >=20