From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0052.outbound.protection.outlook.com [104.47.40.52]) by dpdk.org (Postfix) with ESMTP id 5325B1B3FE for ; Mon, 25 Dec 2017 20:18:50 +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=3IGycHXxGYvK3bD8mdxFckFXr15J/fJ1r8V+9BlhVPo=; b=AMzNcOO+cfdY83yxwuDoYn/HaRhRta1m7nSH4EPaJzT7w1FlK4XiSPa1zO8pNZGXXTvBDromuwAnmF9OUIa1lK4BXLI7sdpmr1FBe1Mp2NdOamudTbqTAlXVQJqJhWQ76HPNyQPlTiLHwgD+9S/HQypxpR+GA7QasSEe5V46I/A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Mon, 25 Dec 2017 19:18:46 +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: Tue, 26 Dec 2017 00:47:36 +0530 Message-Id: <20171225191738.17151-9-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171225191738.17151-1-pbhagavatula@caviumnetworks.com> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20171225191738.17151-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR0601CA0004.apcprd06.prod.outlook.com (10.170.128.14) To DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a034046-14b9-481d-423f-08d54bcc539b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:DM5PR07MB3466; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 3:bztf2DehzwNfHNXtTmUfCi6UONbCyrA49wIhCK+A/c+BQjUCh8EUt1lStHjDtXJLXkcBlUbm+0OH6biDMVVUG2AkPpmfxJUkXL8m/txrca1WNASfBaMak6NlQ+DrVLgttfPP3OpP19SAhvvpTxSit/5wDUVtYxjgs7VTd7oR98A8nLp4FSaT1/LNWwpWDsjLgsKfUBCwnIITQ3jKA2pwBrd+MXd89fz+uGKnLsvKmMZNJMeSbylXkhx608ayuBMJ; 25:xn10a6VUAsh8REm6ma0N3kTjIg6ZFimMbna2b9pe/aCvG1N7UDZ0ON5TUqU4mA5+35mg5iKdKXUoMQi4L2cAonF/txVt0fspy/eiXiwR4TC7FT43TbRh4x8W5gVBIdNSxT6w5GgBIbP/Tj7bQspzvS9MhzGpuwkKFPnleUia9Tb9ctnTNmaHd5AxtT6bRwN9VkVvdQjjjPbbQ58k9R0Rf/M3Co6Lw4z1tlnMAuGzbSUMXGKjCKGvpU6jL7Tt+i977EZL7h2mDErA9d6N9/fRvTcRx7Lfff3kL8LCR83o9OnBKhgJlTLwCcz6zajsKHdBZ62vIH/QfIurZaIOR7BFzQ==; 31:2pfugkMsCFLUlT7HIp7w/dq6iXbWlUhZ3GkobqEe5Q4vtkigmu0KGpSLc/SIh32RD5wHlfP7F+jLkh5GMLpT5b/ItNCDxDebyAN/WNwxCnmEYYWz4WHuS/ad1Pej7IT0IusXG4qYSGQa9nd7t7XMLLK/02IVqSEvG/uHUhqcs/gdgTuAQMddcL4Y7B4nPfp0lFS6VowD6XcNoNg2K4s1zmRfxXNnNtgJjIj58Npoq9M= X-MS-TrafficTypeDiagnostic: DM5PR07MB3466: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 20:PyJ8i4CAuHm7V88FSmMjT+8G4oVUVKHcUt/UsbIfygBE+A+yfbWNFG8Mr2Bhs55JcU+osnLw+yxAT3dlJtLNbTeXstwDA10d7dldHG2qA0mBwOAgDv1Fkeh4uzzjXdYvu4MQVqaAoAbNz2AN8djcBBRCeBAYYT5atVN5qYP8OcLk/cUk3iSQaazjtBbQoAENYskHJb7BjMGuoVotl3dkD0ONh1yEKSTughL+0/p1QBWRnjbnh22p726Vq+cK/m+L3xDeMCPxj36vkLfeKLtgoQPqfJgB++66CeGPnvoafi07RPWxrBOlFF881JXqHfC+73kGKETiGNGV+1DqAbutIJyVQ0im9RvvRGaR5xwjc4UdcPJT4FlSprmGO1eCZdUD9+yJDg8Z4UOUwD7rRyLFOxwtHipYLEH/5Gv5DZm3nuJaVP9v3QQdsjd/hvnBLCTMJCQWlOPUeIGKexzqUbcBqNZrPkFlCyaSbrst25psnWK6jODzqiRDvwaEJQllwz0WCgNzd271fh+WPoOXhhKipEBhJPnexo6H+Dvvh7+ltBX/fZSqdv65AqPYmOqAXITqL04Msg0H53IfFh6aYelec9hTC2u1KB1kuj2aehI6H1U=; 4:OmkkWcnjp3BUgSVUMve4fMuzy5LrMKWE/mIqO0H9LOHukXaLbALxxjpoeVLBalLtsIdGlRCTNtlXHS5UjHgUdrxtM4kjgOfRzGI/ieT8qnHYrg2JJuK5BJTgmDW5qLa92I2uQDhBAAai9vFm8V5aY51SIEM4L6uI4H5W4VBLgjivO6mGtncwymVavI+skvcJi2o//Q15dpBzPyQKVEu0bqE1ek2+bPc/qCYTSNOlaXp7woxVcJaiyrN5A2h7sCJlPIv0gV2/eOLmDaScxtxIYZFt/BRCGEOAPKDXotrOxznksPGxSrHeBmpp+G1IDlxT 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)(3231023)(944501075)(10201501046)(3002001)(93006095)(6041268)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DM5PR07MB3466; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR07MB3466; X-Forefront-PRVS: 0532BF6DC2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(396003)(376002)(39380400002)(346002)(39850400004)(199004)(189003)(36756003)(68736007)(5009440100003)(7736002)(66066001)(81166006)(478600001)(81156014)(305945005)(47776003)(16526018)(8676002)(59450400001)(6506007)(386003)(15650500001)(316002)(97736004)(16586007)(5660300001)(52116002)(106356001)(25786009)(53936002)(48376002)(2906002)(105586002)(76176011)(51416003)(1076002)(3846002)(107886003)(6486002)(4326008)(6666003)(50226002)(72206003)(8936002)(6512007)(6116002)(42882006)(2950100002)(50466002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3466; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; DM5PR07MB3466; 23:jeFpPhz39RA/9eNYqL5MLTzFWFvHANaB3cqYBYOSa?= =?us-ascii?Q?L2VgtaR/DeSdTgG0Vs+icdcQ6XlFy5VRK2d16D5ZGAqYOvXuXHwt+Rudul2l?= =?us-ascii?Q?JjZHw9jCPOsw8gzd10ThT9slJZtsc61lMrCautLWNqRgY8pI4QkwqsCBrHXg?= =?us-ascii?Q?l9UdTu+1cyWVsT2Yh0zi1wG8RfTPTUKgDJ+SIcq5I/udaM3ovAkQCH2iOruT?= =?us-ascii?Q?gYr3a9w14Sgkm87vEfRwHChRLP10/kPU73Wxc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za12iT9a/4RIsfqQyi6Ls1fC21DRGEYWBBJW1rs8e3lV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2017 19:18:46.8388 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a034046-14b9-481d-423f-08d54bcc539b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3466 Subject: [dpdk-dev] [PATCH v3 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, 25 Dec 2017 19:18:51 -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.14.1