From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0044.outbound.protection.outlook.com [104.47.33.44]) by dpdk.org (Postfix) with ESMTP id 5A847239 for ; Thu, 14 Dec 2017 16:02:53 +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=tdk/7EaapQpTuhmRXl86hMf4RhZSL3OXCxXGYUqs8K0=; b=o/qzq50+NUWzS8rdzZrWouh21dnsKxeMdwqCBIIQLyZ51+ZKhjBcs1tz3shFnKz3vkXd/fOan6nMLMlvmvJYB1gb/HS+FU3rCprTei+Cx+fYxVmiROr/GqWenUwcwLSTFQAgKfUG+Y/zUItsQRHuXYd4YZ4Cd11jl1C7eqpIsS8= 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:48 +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:36 +0530 Message-Id: <20171214150138.25667-10-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171214150138.25667-1-pbhagavatula@caviumnetworks.com> References: <20171212192713.17620-1-pbhagavatula@caviumnetworks.com> <20171214150138.25667-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: 58858564-2d5f-4693-ea98-08d54303bf36 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:0rhBfdKn/BWnceZZfV9Auk/oyNQMVxtlCGReHV/qeYYqH46LCcfGsGvTMpYHeZkmn2clPNN0D46HxVO7NX5TO8v5f8g9fOca8HknLNtHMxQQuewvtTR2GeHHs6MAKzSuqJlLmuIZm+cN147UVomik7QfKcU8x94D/aefapxL60HJK6Qhe6yIlpou2oahnrOCdVtnLwCq06DOUrv4zJao6BqxvV7+Vww77Qx2HRwCiXcOpLfGjqfrNXt8krg8hYNG; 25:nIUEtb6b10KbOyaEpueLTpTgm0JYdo2GxmcS5bvcN8QZ/faES9YvF1+stgz4AadlOZUUJOHxi7Gowfd2jVXtJf56lktGCUHDNZ0MrU6YDtlapjVc3achYN0smszi9ff7EGTk3q5rdhd9QoykYFB5VU0w57BhKGXnXBO35Nu0mS/IVsXTKb1cGRrfizz/PLxuIKExxEqeD2I1WrHCAlYhwiIcpvbO1EQcUQEgBfdhBE4AfScpRmwNTy6RLpB45vnyaFhanaGdh0wZfyDfO0Fh5vAhZcA83Y7dTBlYg3Ak8PV01pBZF676HG0HUUD8UXmWRMQixDAoQbBYE42M1NOtRA==; 31:IGsxrksvLqZ4jBuZPYjV8LA88aA+TS8bM79EXhe7sagaiVr1fOhvktmuAX67ykI9UkptHi2K9bTUBa9mUB9UMPvfMdq3OI15CSG/Whwl7wafK9VxGc+c5NiC4GPUAuyp1T82Bq2O9XeRi7whNLmOAQiwaz2uP+uXC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am-Report-Test: UriScan:; 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)(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)(15650500001)(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:Z1KtBP7GC8LdRLXiFfNkkL+Jr6IxMd0nmQs4dRauW?= =?us-ascii?Q?2JswAHmPYu7f67QKa5FZcQAUfV4TxZyibWrTA6qh+3KdNq56q+8Wpl0olnB2?= =?us-ascii?Q?24hQAMGy1YXV2wvrq1kh9DOrzUxpuVAACDprm4YZWalxKpE4ufCEPgjpWjE4?= =?us-ascii?Q?zPcWcgT5S5db7dzwL2abFDZKmCIV2r4lZQLbEEQU9RyS1jAxWS4uiV8zS7cs?= =?us-ascii?Q?9sJz9svFP6nRP6n8Isu0g9HyQF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JPQFamv9ZEVNUwkxGFYU9PwmoTfRPnTaeJ/CvRxJbo07L8XGjn5ZuZiN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2017 15:02:48.0115 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58858564-2d5f-4693-ea98-08d54303bf36 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 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, 14 Dec 2017 15:02:53 -0000 Update software eventdev ops to invoke selftest when application invokes `rte_event_dev_selftest`. Signed-off-by: Pavan Nikhilesh --- 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 5b4a20889..565a9898d 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -790,6 +790,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 085938887..556bad012 100644 --- a/drivers/event/sw/sw_evdev.h +++ b/drivers/event/sw/sw_evdev.h @@ -333,5 +333,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