From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0085.outbound.protection.outlook.com [104.47.33.85]) by dpdk.org (Postfix) with ESMTP id E89A7239 for ; Thu, 14 Dec 2017 16:02:13 +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=2fKaN2SH8cFqd+ku6TALnK9n4xjA7Z1UfwwpfNy8spo=; b=LYjDkgY+3Mabkb+7wX3txD64roRHRCDctW/rXW1h0+1b0ZypGhKJO+JwzfAQyjvSY88d89XCnAGKpkdooeIrM2P3clIH/3mAVe9sYyx98hpworTMkUdZCwzIkeRegY06sfBeLSLSfMAPirbxv7DIZTAU+PdrM6n6NZGzLBFmqX4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by BN6PR07MB3460.namprd07.prod.outlook.com (10.161.153.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Thu, 14 Dec 2017 15:02:05 +0000 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 Date: Thu, 14 Dec 2017 20:31:27 +0530 Message-Id: <20171214150138.25667-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR17CA0079.namprd17.prod.outlook.com (10.173.237.145) To BN6PR07MB3460.namprd07.prod.outlook.com (10.161.153.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1dbed7d-29dc-4e1a-3a81-08d54303a5e4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:BN6PR07MB3460; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3460; 3:m24ZLoMsvrVCl5yUZH3/akIKstAP4un5r3FBJvU7qQjRufTEESn8GozYvoUHx0Zto+UAfBsUk1pelP46UEQ9uldafShJpo/rf+u8W6ngukwm3B1nde3Vn3IOoW7MfMKYCKCpuGoeUWUiok/ujp6nyklGde8CUGp+KZ4aXlBNcFnJ/pUQIyhBhcBtSUi70DWYXTdSUZaOZLLwTA2ZNxYptVaSjl7yC2/PXgmnOdBSOR9TWbG0jubscKm0BrlwMsQh; 25:AAmjY4gplktVRA+uQNUqZxjqdakoj0sRM3TErN0MqJqS10s1GFt/bVsjH00ScBBWhhRMzYZ6DyWbCx/AWkNY5WJcQnAkpO9+R/8V/8T9zD63hcpOIrqZUtPwzgIkZk7wPjL/0xmiCXT5tKFQfCKUoDUInS4G+3UnD6/Aujhlq7Kb0hf8KSjHVdyKzFODgoiwHpvucJbO9LB2hW3a8CKsmYMhoBwkXU32g9+6V++E6vA/tqNZW8rCa4QafLeSi2xg8UcRwrkZiOfGG4GkY1JmiFjlWizc8eez0I724nnhbcv8mS23IsBktLtGjRxPZVRfiyDkfkI4GoET7GnB3Mxlww==; 31:zjpJwRP2XWslr0mX5c68e5s0RRQuLWb1eGKhl6sT9JHBZmVWK/MNNOYDuQOBM6pG0NWDjlaYzsZCbV24PhjqUCcbecFPZpiq1jq4ix+8YFVSvjp0irpK+h5FRzNOgqsPzY+S6AtEtJYsO8gPYQxbXj2tWJJC1GjVFhdjvtky5numfEEyKIf/Gb0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Scan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3002001)(3231023)(93006095)(10201501046)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011); SRVR:BN6PR07MB3460; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR07MB3460; X-Forefront-PRVS: 05214FD68E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39860400002)(346002)(376002)(189003)(199004)(377424004)(66066001)(42882006)(6666003)(2950100002)(305945005)(97736004)(72206003)(478600001)(2906002)(6486002)(47776003)(69596002)(107886003)(6512007)(4326008)(25786009)(53936002)(48376002)(105586002)(36756003)(106356001)(50466002)(5660300001)(53416004)(5009440100003)(6116002)(3846002)(1076002)(16586007)(59450400001)(68736007)(6506007)(386003)(16526018)(316002)(52116002)(50226002)(76176011)(8656006)(7736002)(8936002)(8676002)(81156014)(51416003)(81166006)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3460; H:Pavan-LT.caveonetworks.com; 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; BN6PR07MB3460; 23:kwntunFnaimdM/iIIogoxaQ8a7dvgqEfIM36dd8gx?= =?us-ascii?Q?nIhnIPtjeK7k7uATrDEdURFrgYSoD+GBv3lpecnkldjapDLG3xGHEpjXI3oZ?= =?us-ascii?Q?5mQtr1Q6Bx6TXPnt7aBZwUB82m3RiQx84zrTUMu4+CxsT6XSf94E7ivxRR5S?= =?us-ascii?Q?GkK9kr4x4GK+pWg6nhGelhFhGwCIIT6l7ljZmlb57X5BEdRtgeMO1nz2q3Mr?= =?us-ascii?Q?O1y9UIAPzZ6fzF4jC0YynxQ03QXnbpfbSXHUz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BYuiUInkAZ1MLDvvy0Y SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2017 15:02:05.5109 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1dbed7d-29dc-4e1a-3a81-08d54303a5e4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3460 Subject: [dpdk-dev] [PATCH v2 00/11] eventdev: move eventdev pmd specific tests into the pmd dir 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: Thu, 14 Dec 2017 15:02:14 -0000 This patchset aims to remove pmd specific unit test clutter from the common tests directory by moving them into the respective pmd folder. - Patch [1/11] moves basic asserts into eal area so that they can be reused by other devices. - Patch [2/11] introduces new API that an application can use to run the self test. - Patch set [3-6/11] cleans up event_octeontx specific test, updates the selftest ops and provides a devarg 'selftest' to run selftest from any given application after probe is complete. - Patch set [7-9/11] cleans up event_sw specific test and updates the selftest ops. - Patch [10/11] registers selftest command to the common unit test area. Pavan Nikhilesh (11): eal: add common test assert macros eventdev: add API to perform self test event/octeontx: move eventdev octeontx test to driver event/octeontx: modify octeontx eventdev test event/octeontx: update octeontx eventdev selftest ops event/octeontx: add selftest to device arguments event/sw: move eventdev sw test to driver event/sw: modify eventdev sw test event/sw: update software eventdev selftest ops test: register eventdev selftest doc: update eventdev documentation doc/guides/eventdevs/octeontx.rst | 13 + drivers/event/octeontx/Makefile | 3 +- .../event/octeontx/octeontx_evdev_selftest.c | 427 +++++++++++---------- drivers/event/octeontx/ssovf_evdev.c | 45 +++ drivers/event/octeontx/ssovf_evdev.h | 6 + drivers/event/sw/Makefile | 2 + drivers/event/sw/sw_evdev.c | 2 + drivers/event/sw/sw_evdev.h | 1 + .../event/sw/sw_evdev_selftest.c | 70 ++-- lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/include/rte_test.h | 97 +++++ lib/librte_eventdev/rte_eventdev.c | 10 + lib/librte_eventdev/rte_eventdev.h | 12 + lib/librte_eventdev/rte_eventdev_pmd.h | 11 + lib/librte_eventdev/rte_eventdev_version.map | 6 + test/test/Makefile | 2 - test/test/test_eventdev.c | 7 + 17 files changed, 485 insertions(+), 231 deletions(-) rename test/test/test_eventdev_octeontx.c => drivers/event/octeontx/octeontx_evdev_selftest.c (78%) rename test/test/test_eventdev_sw.c => drivers/event/sw/sw_evdev_selftest.c (99%) create mode 100644 lib/librte_eal/common/include/rte_test.h -- 2.14.1