From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0060.outbound.protection.outlook.com [104.47.32.60]) by dpdk.org (Postfix) with ESMTP id C4F60201 for ; Sun, 23 Sep 2018 10:59:29 +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=tU7LhjHGcQq2KLpH8fr7O1fFjeXpXklUD46XVIyjwek=; b=bhURptekmkZbf2Xq7ybWzdsbWLByJMFsyI3iOai+RQKyN4EROw9w8GFiqOx0Klk4l6tQdvxOetk2Grsv+Wh9R5TJnDiqqdGOKo1/jGmO18fITEuQEpwI3Ls6tMZHRpSr93uCPV+s3VHqVAbred0PCn2MPTg9X5ngv70yQaBq1bA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by BYAPR07MB5000.namprd07.prod.outlook.com (2603:10b6:a03:5b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Sun, 23 Sep 2018 08:59:27 +0000 Date: Sun, 23 Sep 2018 14:29:07 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: dev@dpdk.org Message-ID: <20180923085905.GA30840@jerin> References: <20180905142331.9167-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180905142331.9167-1-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BM1PR0101CA0001.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::11) To BYAPR07MB5000.namprd07.prod.outlook.com (2603:10b6:a03:5b::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb17fd0a-0f14-45b0-b1bb-08d62132de81 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB5000; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB5000; 3:DqHgdpG6JyfXIO1uYNPbiiWSb5FZ2P5RF6wzSA+3e5OWQJeH7RnL4BLEtmlJcY06IzsB/LxmvPwA04ZLAjuyM1DttuHb25nE5ye+F+CrTd247rLycRfJ7wr8103h2OBJe0QOLCKjldmMzLYPEusEXZL1DRmF74ic/dxBMiQYQMW7IHk9mex59CK9xnIgS7WW+k2Yg1O9/7LCJZmprWSeO+64KBFeFmq9ZPkPCcEnTKn5YSbsTnrM7X08s7b583Tl; 25:tbiQ7BfcKUTmnpywPfkrxVrt5RtIf78kHm7LOdG/69h6RRAHZ+UeqZhLGHINBhJg53Ms/9JP9E4N41L80fyGW6ciELbz+Pxh4q6ksH0j8+5/P7gwt9KOSe1WB4Haq3KroVfdWHHQYM1tkOPI438mcXbpfvPWAb9DeH7JfRrG3tYz9kT7F0M5F+TR4Wa10pvkzEwSD+tlbPawbeHbkhbpm9tttwWb6wJJCqSBQPPyE17th1BzSgmi3lymeeFYILr8yTt9IH71mAS3E2DqthrndzwNC1/P75rQ2upDv582hzTwKmI7MM5PRGAXgzI3LC7ex5tEqsgGk+HYqBjVzyfu8Q==; 31:V5tuj3NA0XKmAMJ3C1qpbv2qYv97v4yn6AuBCvfkMC/lQX+9BzrEn4Pwwt3uE2sSD9SgPbq1iZxFLtzx46Ymbvziqy7ldbK2uWdcqAZkfRbacZpsFzLcvWr8fUtPGQkPTBbvbakUKvQFc38ddpeY77/XWdX3Vs00u/7E4z2FgiYYTS+gBcfOx/9ksUv415Gepr4yLmAWiqsLa3CcvJE39kozjcnchJxQPFdgvFrcGb0= X-MS-TrafficTypeDiagnostic: BYAPR07MB5000: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB5000; 20:V5E8kncP3g39zHi+FuCLjwUoCU6+iF71vI5eLAPSvYZtR8zzwaYslIVrjuXexJOqYuxWuhazPZp/lUCutZo85mmufMyOYNb2Dz9OWk21S6qAueGW/ssB0kpEx48e76WVEsrp/vFRXBOGepY0qeqCYRgUr+Uoby1eD0KAj3AJ62Sf7nuP1zsmGdUAPK+SusrwYyVFLABoWe4QO0nZwx5pvtUo4B97o7H02sG6Sh9dXv9tiB2Kq0nO0T3he2ydTiEtgpItOLun1f5etBzZunwnP53qdSzLzNGK/SM3iZu1Vxi+f2DD8o+xkjPyfg8FNdiho3pfJvmABgXLnEI2KSpPOfk3P99I0lWjISauqTWpDortTqVBoKu0oumlpPq2nE67xjWRrD/P16H+uq4dU3U0zd6eMPQN+DblPAMKI6nF16BBIxfCSslmkC9cfL5kG9SXuvEgFEtqjiD9G6hE46HAMlSmuwgIH/6NzBPsee2c5ZF0FPE4MlXjzvzuGCsNb3plp90eE3MxkNa4rsN6LAxyb09ENum0L0IU2KGfXj5nZH8gg0tu6P4WaxnOVyZ9kDDkaxVwhVcAdiJL+WJ/BecLV5GtFtpEQ7thTjsJjrlFiOM=; 4:RND/Ks/z9f2Tcf0CRIIYnVH0kxjfimjZXzlcOqxiqZv0N4o07vIB6wPtTFZyLzG1Krt3TEm+w1lc8dWetozUvomDvz9heHV0Jf5UxlJaVuU/DzVNgPRkwMWWrm5cWpcLwfCguss58XJUAsXOb8vEM6m9hYGPIumiUHv6R3FvI9lpH//Og7Sqn54KFy/Frdo2HBTzVVba/khgMpk1nA2jB0pr9J9Qs4EjU8wIQ1npQgiiiMTEALY35Zzco17fxVrjvEKGx9GjNbJieIvfyzMguw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(93006095)(10201501046)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:BYAPR07MB5000; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB5000; X-Forefront-PRVS: 08041D247D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39850400004)(136003)(366004)(396003)(346002)(376002)(13464003)(189003)(199004)(476003)(55016002)(6666003)(11346002)(52116002)(26005)(3846002)(42882007)(47776003)(97736004)(33896004)(446003)(386003)(53936002)(956004)(44832011)(575784001)(2906002)(6246003)(33716001)(76176011)(9686003)(8676002)(81156014)(6636002)(486006)(6496006)(81166006)(16526019)(316002)(106356001)(4326008)(105586002)(305945005)(1076002)(7736002)(8936002)(33656002)(68736007)(50466002)(25786009)(5660300001)(6116002)(58126008)(229853002)(23726003)(478600001)(66066001)(16586007)(72206003)(6862004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB5000; H:jerin; 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; BYAPR07MB5000; 23:QXS2Y1ZcKgIXbk5N3RJuyPPEG/Ij2HA1PWYb1cCyR?= =?us-ascii?Q?1R3SM7EScEXSiIbCJW1USZRHdSr5TB1gH0V/DUKqIzj9gUAB/SqiWjlsP4Rq?= =?us-ascii?Q?2fqgUPFeQ0zWhScE+RmpUEWVcNibh4YXE5uRg0xQPlhfsILdrHK9zFolCXzd?= =?us-ascii?Q?IEMu1bAitw1PBR7xvhXYrQ4UNUfNF53oyn1fhX7NFqIYCJ5wLVW+JAr6EAht?= =?us-ascii?Q?WwlECL9s5hpLqTbTTLIoZ1aquXSxj9pqqBd5QT4g1LjuwGj5BG0cun/o16YG?= =?us-ascii?Q?MSndItoc+Ynj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p24u6Syz2c+R0LBtW5BTd5MckalbyJeQEZ+ogmgjTVdTa/B2i59GvHF/tw/pat+p+ErZwGnttOrS4UATL0/Kw==; 5:ELy/HOoFCYOZDSOFYjSl/lUSRc6zPOi776ujiFoHx3unbfVJkFn6ELLm3N9NOdK7xiLh31jKO+hwdPhzW99Uc2G1Stgubd59nA/Gv8uVP/KxfGsKYpo5QqEkeTqJBlJaXZgbPMdBYniVc0qgMIo/Bl7BtUt19Xvz7DVnO0TDnBs=; 7:rzorxKLVNJZXI3P51SemUZ/Pgi6nFI3/6+pFqH0qYdgEg9fp5yDz7h11pyhc410IbhNTtltoGd2BsMXP5ikgF5Fgaa2XfTVj92UfUN/jT2AMBpuptGW1CjaYSxizKLxX4l96Gc+0/V02BsmkF33M0Jx3dAYZMKgXmKrU87suoCiFF5Pw6026s3RiSjUQTYQwd5OW6Cm7JY+q0PYeDsKk/bNmt8/P6fqQNDYN008K6bc4PBU+apAy6KyzWrZJ8W04 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2018 08:59:27.1077 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb17fd0a-0f14-45b0-b1bb-08d62132de81 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB5000 Subject: Re: [dpdk-dev] [PATCH] test/eventdev: fix incorrect unit 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: Sun, 23 Sep 2018 08:59:30 -0000 -----Original Message----- > Date: Wed, 5 Sep 2018 19:53:31 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH] test/eventdev: fix incorrect unit test > X-Mailer: git-send-email 2.18.0 > > Enqueue, dequeue depths are only valid for event devs that have burst > mode capability. Check event dev capability before testing depth > boundary. > > Fixes: f8f9d233ea0e ("test/eventdev: add unit tests") Cc: stable@dpdk.org Acked-by: Jerin Jacob > > Signed-off-by: Pavan Nikhilesh > --- > test/test/test_eventdev.c | 21 ++++++++++++--------- > 1 file changed, 12 insertions(+), 9 deletions(-) > > diff --git a/test/test/test_eventdev.c b/test/test/test_eventdev.c > index 04bdc6b6c..00d73275c 100644 > --- a/test/test/test_eventdev.c > +++ b/test/test/test_eventdev.c > @@ -190,15 +190,18 @@ test_eventdev_configure(void) > "Config negative test failed"); > TEST_ASSERT_EQUAL(-EINVAL, > test_ethdev_config_run(&dev_conf, &info, max_event_queue_flows), > - "Config negative test failed"); > - TEST_ASSERT_EQUAL(-EINVAL, > - test_ethdev_config_run(&dev_conf, &info, > - max_event_port_dequeue_depth), > - "Config negative test failed"); > - TEST_ASSERT_EQUAL(-EINVAL, > - test_ethdev_config_run(&dev_conf, &info, > - max_event_port_enqueue_depth), > - "Config negative test failed"); > + "Config negative test failed"); > + > + if (info.event_dev_cap & RTE_EVENT_DEV_CAP_BURST_MODE) { > + TEST_ASSERT_EQUAL(-EINVAL, > + test_ethdev_config_run(&dev_conf, &info, > + max_event_port_dequeue_depth), > + "Config negative test failed"); > + TEST_ASSERT_EQUAL(-EINVAL, > + test_ethdev_config_run(&dev_conf, &info, > + max_event_port_enqueue_depth), > + "Config negative test failed"); > + } > > /* Positive case */ > devconf_set_default_sane_values(&dev_conf, &info); > -- > 2.18.0 >