From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0051.outbound.protection.outlook.com [104.47.37.51]) by dpdk.org (Postfix) with ESMTP id 261EAA84F for ; Thu, 11 Jan 2018 11:24:08 +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=WPljVGeqirFpLk8Ekg+Ko+ZYnrPIzB1U/FiYMZyXJes=; b=Y7ugKkw0xMc+W8Izvj4RyXqAR1Q6r533mlgQ0WfbeDeCdV4CDrWAv6Ya202E8L1xXJS3DLVPtJxTAbUBOpQw6ee8B0iatuxPjOfknkfnO1Cqanc4exDdXPQI6QX+2oq/DWRUoMRExA8ekxY3VQjz3y26Fa5h5vMTXjkeIe71P7E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Thu, 11 Jan 2018 10:24:04 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, gage.eads@intel.com, liang.j.ma@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Thu, 11 Jan 2018 15:51:54 +0530 Message-Id: <20180111102156.12726-9-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180111102156.12726-1-pbhagavatula@caviumnetworks.com> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20180111102156.12726-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR2001CA0023.namprd20.prod.outlook.com (10.172.58.161) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7073b2b-57ef-4bb2-5854-08d558dd7218 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:US7P/3YdXFXKxweCR3L43WYNyV5obRXVexNwgqmqDp4Su64IW8+V/2hEhXEcK+Irbq96vSvL5kugcNC6C7HoNRyQQ5H3Zc12nytK6aj7R6dwpETygvvrT/9zvZqgLNObmQfPaN0A5NC/WNR4O1lgp7xLB2KE+YU6m+pJ2Y5gU1/cVjmebvidHp0I2n5g1fbE28NI8RE4ivzCBzfyI2qoAzMeQCfqX9ryeYTZgAuowU+S3m2k3OsvERNzfYGhTGHi; 25:Kf8F477ZnFATUsfpudd2qgT6qLzJohtKpNBTrFC6UAqR8nD70Rr6VoG0nL6WybQMWa1BB1yYNcbK7h9IAHNvsM8VRXSemdVwp/APYZKP6A/3TMSn1qee5wImq4CnBbEy9TRMhIraBIyq3ODWwlMTknufHHsIuCuzv8vIPp++pqBqG39fGV85wuATvmzf85E2Kjqw3Rf7g2hBajKLzDKwRKcPwLi4YWUL+wFBzYOnbwQDJ3N/nYwC3SriC1wLQHiMjWqbet9moG6nD3mLQ62zyk0b+daWPJS/UvbamOtHHss1WUMooTo8Q6f0QQvX1FZTxuMKBeMiSEgY/E0iGfiG+w==; 31:ohJCSeDgQb9H/yfT4NwMujG6vhFCozku//RdRTypJ9mW6Ngw1z6WLHoc6GwOwcrvP5sqyDprfAoMmgSc1PL63Jseik8LWhxiTZuViKlMWB1gQ/bgKtI2LvqKSTBEqXAnVi4tH50Yx1SQYa5NtPksH4pBY6c0TnJlVDDhSUzgprrAwdDuMVkOKRFVRrzbBvf8GO9YK2iRq4nE43kPuisi5XFJy1MFAUODB/HBbfEz4Uw= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:M0lKyDXoIzbL08vDwu8FaKb2pnsU+3jcj/713yZS2Ts4QCAshQpCAv/58pA6EEHaj3+txOdUSHPd8FoZXImX/zH5tzXilKXkOY0ifdAk7En3iGld7Z/ajNn85ghG/579hoeUR271a6WhET+CLrdu/NAEFffmr2sqjbWM1waa+c57wjC8278i7eKpimlA9hzKVcatWSIuOryCDV/lL7Hmt7t4jkPirGNOLPmxVvEcDaZRMZP9mqQqneAbU9d2y3mgFKy++SzGBiOE5T8PMa7noF01IhSkaTgxSLDHvGXLwiOw0KgpF32RPbol3NiYiXE8gBlHMRL6QASGGJkMDUyThvCy8tQrf4NLpGmNenTKbst47Tbwfj4Y9QkXK8J7Q8gl1LNEpTc6UxMzqhVklMoo48Q6LaFZoIairAK/qcHr4cp/GgN3b/sAuI1mfIOYdiFFf5N9aTTqLJCzxAMEVTCo/kBWKXSXcVW0raEFldE5iJIECfdHh5lCj2i58sAotzP3CiIpEIApeYBldmlYNB3Q2o/JWn4EgqvX5SYUFJv7t//7bvmVJapa5HIu1cCxp/T73leAJnIdwDTpbspzQcwBdJ6SPvuQk0j0vqSuz8UwInU=; 4:BILUvq1SNU6OclZgkwz9EX3Giz/9S55/BDDKS9KrO1Esy+RvpgR99LDf8UH9+pdXwOjP+d7kGL6mN5Lhq669MslVgEBcbwGxhimuTCNW05IJ33bLnRn43soHIkSI7PGs70qRz8yglD+wae/rPEMJHX+/arHkjQk5i/lKY3LeUXs3j600bmr8chOfnMFyMFVVGP2acB6wdoCbLlNUd06W7ph+mPYVWjvKCvDwJNNmdP74r7fyTnurxKkEjKvBUkyR6+iGPvZcifaCK+94skteTjay3UYShACLs8k2C5h7FqA31PuCrAcNye048WsIwfHX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(3231023)(944501075)(10201501046)(3002001)(6041268)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 0549E6FD50 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(39380400002)(366004)(376002)(396003)(189003)(199004)(6116002)(2906002)(8676002)(6506007)(47776003)(97736004)(53936002)(5009440100003)(72206003)(1076002)(16526018)(53416004)(51416003)(66066001)(59450400001)(50226002)(16586007)(386003)(76176011)(25786009)(6486002)(316002)(69596002)(48376002)(42882006)(106356001)(52116002)(8936002)(6666003)(7736002)(6512007)(3846002)(81166006)(15650500001)(2950100002)(4326008)(478600001)(107886003)(5660300001)(81156014)(68736007)(105586002)(50466002)(305945005)(36756003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; 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; CY4PR07MB3464; 23:zhlWcVu5C9Fj0WqGl9hWG8mhWs0UDJYDkqFxnZq55?= =?us-ascii?Q?jkE9zoAZaza241OOQk5/May+qT7+sYAoHTHKThJX7Kvx1ewsuTnb3yQbPGjW?= =?us-ascii?Q?eKYqdIQ3J4Fvm8DuEXmc/hAuVCZIAtIA7oaSQF0zkKMfv+LSr7tXobUS+Asv?= =?us-ascii?Q?wLkCgsdF+2+/1L0zL4wSZVhui0kgxbc2mxpicfgjXRW9PwkG2TfVyrDQluWp?= =?us-ascii?Q?avWR4WqcgnagT/Le466/pXjg+80yEu2GYX7DM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w/KayUnQR2rXV21uuogE7z/H6wUP3sjofKiwZKUEXgtW3/+leoSg2GYVqa5o+h0LYvPYr5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2018 10:24:04.3945 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e7073b2b-57ef-4bb2-5854-08d558dd7218 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH v5 09/11] event/sw: update software eventdev selftest ops 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, 11 Jan 2018 10:24:08 -0000 Update software eventdev ops to invoke selftest when application invokes `rte_event_dev_selftest`. Signed-off-by: Pavan Nikhilesh Acked-by: Harry van Haaren --- drivers/event/sw/Makefile | 2 ++ drivers/event/sw/sw_evdev.c | 2 ++ drivers/event/sw/sw_evdev.h | 1 + 3 files changed, 5 insertions(+) diff --git a/drivers/event/sw/Makefile b/drivers/event/sw/Makefile index 2f2b67bac..149258748 100644 --- a/drivers/event/sw/Makefile +++ b/drivers/event/sw/Makefile @@ -44,6 +44,7 @@ CFLAGS += -Wno-missing-field-initializers endif endif LDLIBS += -lrte_eal -lrte_eventdev -lrte_kvargs -lrte_ring +LDLIBS += -lrte_mempool -lrte_mbuf LDLIBS += -lrte_bus_vdev # library version @@ -57,6 +58,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev.c SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_worker.c SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_scheduler.c SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_xstats.c +SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_selftest.c # export include files SYMLINK-y-include += diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 1ef634093..f40597aae 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -794,6 +794,8 @@ sw_probe(struct rte_vdev_device *vdev) .xstats_get_names = sw_xstats_get_names, .xstats_get_by_name = sw_xstats_get_by_name, .xstats_reset = sw_xstats_reset, + + .dev_selftest = test_sw_eventdev, }; static const char *const args[] = { diff --git a/drivers/event/sw/sw_evdev.h b/drivers/event/sw/sw_evdev.h index d08f7d042..b1d2c371c 100644 --- a/drivers/event/sw/sw_evdev.h +++ b/drivers/event/sw/sw_evdev.h @@ -334,5 +334,6 @@ int sw_xstats_reset(struct rte_eventdev *dev, const uint32_t ids[], uint32_t nb_ids); +int test_sw_eventdev(void); #endif /* _SW_EVDEV_H_ */ -- 2.15.1