From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0084.outbound.protection.outlook.com [104.47.40.84]) by dpdk.org (Postfix) with ESMTP id 1E7D51B208 for ; Mon, 8 Jan 2018 14:48:44 +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=T2gtWHOOqi5mUpNd+oBq0oxRplreCeJdVb5fbHzIyNqjg8DKZWS8wmw2Uto6TKuIkKdJOELpuxp6kmGansKpbr34Rudvy33qGMzUpJrFA0+iSyOu4P403cC1NKfGif2oee4McCwQe0cYj2KMKpizPGca2SxWLYrx+rLJrZDcU4I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by MWHPR07MB3470.namprd07.prod.outlook.com (10.164.192.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Mon, 8 Jan 2018 13:48:40 +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: Mon, 8 Jan 2018 19:17:40 +0530 Message-Id: <20180108134742.30857-9-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180108134742.30857-1-pbhagavatula@caviumnetworks.com> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20180108134742.30857-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR06CA0105.apcprd06.prod.outlook.com (10.170.138.31) To MWHPR07MB3470.namprd07.prod.outlook.com (10.164.192.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cebc912e-028a-45b3-f250-08d5569e87a1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:MWHPR07MB3470; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 3:gG5bxCjRV2aMS8YkAjxwFCkgdozonSb3gw4Ecly+JzJHV/w4QIDiHNb+8zEyuD8aYmDQzV6i3+YEc3DFLHuRKGh4VWsod8NXbd9t+808wHiOgENS9LNx3fm03XfLAxt42/OZFqeOuRJArRlrqivVeSFAxC0FVC1KheeAavtSfoo748IwEKupLthDyT4Oxa7u73+VTQdLRO5zLsyBgcXyWnoJTG4tnuCH2mGlYT70reUR6WB9jj/BvpRZ3oDCk33/; 25:B288HIoYpzfnGBAlAimxiSewAOoGy1PxxGroKuoXUxi4cWSMiWd7gms7oP/OQ7CoTPZqrBuwdVlLS+xg5IShG+F/Eku7bRIZY17bKtWbop/1hdIh8t5Ulj+V/oZphMV1nJCcUTpzpcJCsqGcEjF0UtdV+UCqMkSiwYx/tVlHLW8gxhtfW+3aHM0DMUdtqfrCOH0u0tG1+QC0gYLyx1DZbHkvRI8/WDJ4lLEytzZvJAAaEvkR5nk+OzGVbdWbLGv7AqhNr2QRQ16KcMoapR9XCfIjGLIihnnkE1ckm7wWKyzE0Z6RNuNYrGZkxueRfrSHsV5c1Wy2iCAi7MkcAivZ1w==; 31:N/VUem+z3avxx+baxBdXJsi4lW2wTI2WJI98POkB8D1aQ32IA+J9QoNRGxLQKKdLYfXqeUqKkIhf/qmCe7fNKwe+UoodCEFAU3jE6vcTZzI0Eqs66PdPz6Uc5NvhyDwLckUVEuT93ky7ntNgwmVgyfTBxPwcFj5VVgmNEzwzqZjVqcohHlqbHEcPFEFqqwbB+VrmrnlW0/eNU3CcHDDBs40dHlQ9vv1IiWKn8ODQFoE= X-MS-TrafficTypeDiagnostic: MWHPR07MB3470: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 20:cSHmlyvFW2V/UCh4VWpmx1NMNAeOEh9uk0erU1Ob1jjd9xuM5EDPThDPcXQM8aCqDjRsqJe1c7qrpWEO7oJbajX8nB8jqkzDwve6Lg1HE2I4mu5Sv1JLc52A3g9DucLNlY8yFRitYYpwwTh+00HdSxNTx5QKB05hkEZvaBNeg5GSjYn+ZXcJq7grSNZ7pn9cWFJSmM3wt6UKV0eyIxmZiRVhYCizyDSYlAFqWRIla67jwNdZdwVLTnu8z1e8MccbrvLQVGMARUv7ScKMb62NeR6Mno36Lmq0KRSVLuGObzp79RveAneL5F7d04UILZoIeIieqfX9xRY6SNOYntJQPmg7dnNBh3GQhr/rmtVZnFXkqOw7J2PcO+ZPj8paQwgz+MH1iwvNmmvvg9Zh05Pm6LeSDtijkvH4IqPWS6iNJLKWaZtXAo/Lx9jZmlkbXw7iVTT+xjB+rdUcOaqrVXcHfwEGiQuHq85JgsM3ZX9DP4jR5c0n+gCH6hBkQVB1OHdfSx+xyDXXsr1c/JT+94FIkkDfqJrm49lc07Uoer1KqmoTie/mFw+aQd+HQcE47ClqtbdmKUPAKsLMC6sz1ncXiIfA1n7tdr2yGq/eP75HYKs=; 4:16IHEps/y5Gvdamx04YO1CI8/hBB6PfEubXTivR1GjBzXYC9ySoZncZgggmUeovPR53uTjBojN1FX5vtsR7a7v7kADs6g5Qpk5vDrQCK8/NYEHem4+sdHQBeZuqaNQg0ldXNmgaSSYyZuLuhv1LsIgosDal7RidRzgdZeWTuF4dunac9MJe/2PisiNG+k8t2SaTh2BHEeOFL7WJ3pkf055FWZO9NJLcaHuL3Ah74S+4ysrPY5xof19ho9IlCO1KciuI9IXo9wsbV5L+nZJabPCbk4iLDZCueWk18eSN6IQEMxVWebPdZgMp832M+rMD5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(6041268)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011); SRVR:MWHPR07MB3470; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3470; X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(346002)(376002)(39850400004)(39380400002)(396003)(189003)(199004)(15650500001)(1076002)(2906002)(305945005)(7736002)(6486002)(76176011)(51416003)(52116002)(2950100002)(36756003)(16526018)(6116002)(42882006)(316002)(3846002)(5660300001)(5009440100003)(16586007)(53936002)(48376002)(50466002)(8676002)(8936002)(50226002)(107886003)(81166006)(72206003)(68736007)(478600001)(105586002)(6506007)(106356001)(59450400001)(97736004)(386003)(47776003)(25786009)(66066001)(81156014)(6512007)(4326008)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3470; H:localhost.localdomain; 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; MWHPR07MB3470; 23:FCbF2NHw2fLjkbL10bOgWatYKPPXAt+NMhVMftlQJ?= =?us-ascii?Q?OtWMI92O84C/3wuDYrNb2y9XeZrF0ZE6d6iNAGcmZrBmQPvnRsVMKzxYl6Ys?= =?us-ascii?Q?7h9RUfq0CFzFts6yV/aOXt+xA49O86XKpF1ylhSNazs7iYC1rfO9QPz5IaXw?= =?us-ascii?Q?wLlenQxfUHk9+q8Nq39HCAcHFEGkKnChB+oH6DVzpgvcVowJi3TxFMiM33LR?= =?us-ascii?Q?fHgtTXdi3pXm5E0LKeZvHJIUwrGSfCd8Veaj/Q+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pamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 13:48:40.3151 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cebc912e-028a-45b3-f250-08d5569e87a1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3470 Subject: [dpdk-dev] [PATCH v4 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: Mon, 08 Jan 2018 13:48:44 -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