From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0060.outbound.protection.outlook.com [104.47.40.60]) by dpdk.org (Postfix) with ESMTP id B1FA51B38B for ; Mon, 25 Dec 2017 20:18:38 +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=rYrGu8a99hc5jJHPPbNrfZNzrbdstoXLArNKuaPfEo8=; b=kScEdGFUKp4ISfdJ08yVMTo2/nhDAFXd8ChRBz7ry7AOV8MrUi02pfy6VfaNA2PzKkiqQVtqXz2jWSKgPkkkFfrqSJYJ7SAo8ExatRullNU0DO56w0oSHmTqoCx7vAU54aSJGYzfSC+LxNiQlsMrw1TffzG/jip/mqx9IQQwtQU= 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:35 +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:32 +0530 Message-Id: <20171225191738.17151-5-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: e0e6b4cc-1761-4386-14b2-08d54bcc4cfc 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:lWwtj5BMPEqv8TlyfscdJ0nKIeKXE1XD0ZwghxxW9YgbBRon1mL2tzbkGVYGypwmi4wWg1IyjlMjL1OgCMegNrC69sUtJh74z66w9GAtoBEpkR4gYFc5Urg9NL1WAvCuUNMRoU5YJedW6cSPAXkJGIqzaZLTIl//iqwOxfTpwZ521NJ9EqW5cA+0dY+y7j83RWUKl74tXFCZP/XgT9EUs2pdVVEmw/r90qXpScas//guFQEhV0AuwQbL0mIpjy0t; 25:Z+E26fYxfToVDBvuzTeUg2gGuaj+CbP8ULFRTQL0WIW8ZdWOtVmo08UgpgkCZGwylPiy5rySL6X9sbj8ZxKYkRdHbVu4khIti0EEeOhCADDv6HRWuHncCPyxrnadKq0A85NJYwy6GuMdnqwr2HCMMGY9RtBIk2U7JKbkSis5TUiUN78wwz+WCQD8ZRvuVT6c1mQzHcyG+Z8naSlsslgVzlggzW+SeIiYzx7x+ScfpS5R5iwxkYaLDhYBsg9cEvr/OIFsPg5oKh5opJLUGDze+mHbBc6GMsm5FKufiiPjQSumn975ExMu+hyz9uhwsrVjBwBh8USSwGmLv0sAm04fig==; 31:UaLKG34TDFMUK5OQtUntZfH1+u9VhNzCFGvlFWQSpzNNprq8hzaX8/BCwAe+xY6vn2P9KhwxsveMc3dZG91vUhMxYYLWW/sRW4DMstidd3UHGTEiiGU8cxDL5UlJWV7TQJEezF/1C/D8FucoP04FuCPeZWKYgDOu8HdmddwsmU33ZyHrT/bdSG9AP2wHZOwyXnrWnUzD9q/HbbTMFktm1esXBYsXJUKvcigOBj0Aq/k= X-MS-TrafficTypeDiagnostic: DM5PR07MB3466: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 20:MewYyioRrOMBaOJUbjrDrTIjgvcfdSw/F1f4TmKbALp3B8p+zl1U+EA2yfH5Yldwsaqvq9c47FA7R4nJT81T9sfOcLyYp+553pnoSXL+wFC+vZt+ewBYoLTAeOgvqOqL7TAkWmZ+aPiP8+q6/W6Rfoc30BPIpYbOF5hbSRectTluDD81hXiF+SKFCeCFwXiQwnxHJTLJko7ijjuagaFNF+Fe4aUXKhL9dENNKdmNwf5/IObkeKm0Uq6ncDPIRzld3hwyVMrYDMQmwtq3gBOJgv5ks0RU9MYZy2yV/8Uy2Web1fiSDY7iwM7kcizEaTTmiq92itnQxfboRIe7TPT2SL4HmyT+A47qdfzBvF40jdFh6xFXRQLjcszBUt9yyr0Y9dfCnGf8WG3t6rYw6S6aSVGwPWlIMxb8CfMgMBVqBreS2PqM0KbdVZuaOHN4/kvxCXaQUqOyh/XIrYUOXsAhbh9ZUgIitHM/VUGyxq9pyDVoQIi519orUSIxqTki1FuqftFrIJAil8K++onG075GqFRd2s14DqXmqiPgd2q/vtMrDblMVr7oAXXlyoIukv13LPLtZRhb6WSCzFy2hgcewi8lVmcN6rKqtHTyafI4l/Y=; 4:uY1Tm7YRCgcDr2CK5z0eSlIbgqqVfGMWV3QBBI/zqmokMR//2LYKAGIU5m0/WymhRMDPNQIVvkjP6wh5A3T/MSS04owWtDXia8aVh66Cp0Kmosh7VBJbuOZcb4kzMqZcLfU2k9NstSUR3uhZaKeYDjtuhB5mJwWPXMO4lCJey7cZIxyN6hgd8XbOZxQNR5/IkwCA2Xvweli0UbWlwtEiAtNk9/HCQAyeYPgWTDcmWbrfqgUfB2ozMMv3szWP6DipTO4QDjnyeWJQYHb9KUYD6w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; 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)(575784001)(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:Ex6YvZj8AonuE4h7euJDH3+cMiKI0eUQyLa/P+Fue?= =?us-ascii?Q?Ufb/CEFU7iJJfvOa50Npg4eINMPX7oTOoE4IZTnshqH1QzRJvYued3ED6qXX?= =?us-ascii?Q?yRU0qD4ArvFLyQSP/dIqc8OMWka6SOgBFx8/P+tjLejF5+jecTYhuUfTEW6w?= =?us-ascii?Q?0XwHXwxrd3aWwTr2lfj8LcgXPdp+3SEI0dOC0dalG7+oN8kwZavGDTEnyIOF?= =?us-ascii?Q?edHZfjGerpi2CxntmedQtX/Zk/Fb6JN6XA2WC54ozycP8fHglkyK3xidyYhE?= =?us-ascii?Q?hvhl2ov7s6a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G8N0K4sxK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2017 19:18:35.7293 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e0e6b4cc-1761-4386-14b2-08d54bcc4cfc 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 05/11] event/octeontx: update octeontx 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:39 -0000 Update octeontx eventdev ops to invoke selftest when application invokes `rte_event_dev_selftest`. Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx/Makefile | 3 ++- drivers/event/octeontx/ssovf_evdev.c | 2 ++ drivers/event/octeontx/ssovf_evdev.h | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/event/octeontx/Makefile b/drivers/event/octeontx/Makefile index fdf1b7385..1ad638574 100644 --- a/drivers/event/octeontx/Makefile +++ b/drivers/event/octeontx/Makefile @@ -42,7 +42,7 @@ CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx/ CFLAGS += -I$(RTE_SDK)/drivers/net/octeontx/ LDLIBS += -lrte_eal -lrte_eventdev -lrte_mempool_octeontx -LDLIBS += -lrte_bus_pci +LDLIBS += -lrte_bus_pci -lrte_mempool -lrte_mbuf LDLIBS += -lrte_bus_vdev EXPORT_MAP := rte_pmd_octeontx_ssovf_version.map @@ -54,6 +54,7 @@ LIBABIVER := 1 # SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_worker.c SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_evdev.c +SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += octeontx_evdev_selftest.c ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) CFLAGS_ssovf_worker.o += -fno-prefetch-loop-arrays diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index b80a6c0ae..0a96fbd7f 100644 --- a/drivers/event/octeontx/ssovf_evdev.c +++ b/drivers/event/octeontx/ssovf_evdev.c @@ -613,6 +613,8 @@ static const struct rte_eventdev_ops ssovf_ops = { .eth_rx_adapter_start = ssovf_eth_rx_adapter_start, .eth_rx_adapter_stop = ssovf_eth_rx_adapter_stop, + .dev_selftest = test_eventdev_octeontx, + .dump = ssovf_dump, .dev_start = ssovf_start, .dev_stop = ssovf_stop, diff --git a/drivers/event/octeontx/ssovf_evdev.h b/drivers/event/octeontx/ssovf_evdev.h index b093a3e73..72a980447 100644 --- a/drivers/event/octeontx/ssovf_evdev.h +++ b/drivers/event/octeontx/ssovf_evdev.h @@ -57,6 +57,9 @@ #define ssovf_log_err(fmt, args...) \ RTE_LOG(ERR, EVENTDEV, "[%s] %s() " fmt "\n", \ RTE_STR(EVENTDEV_NAME_OCTEONTX_PMD), __func__, ## args) +#define ssovf_log_selftest(fmt, args...) \ + RTE_LOG(INFO, EVENTDEV, "[%s] %s() " fmt "\n", \ + RTE_STR(EVENTDEV_NAME_OCTEONTX_PMD), __func__, ## args) #define SSO_MAX_VHGRP (64) #define SSO_MAX_VHWS (32) @@ -196,5 +199,6 @@ uint16_t ssows_deq_timeout_burst(void *port, struct rte_event ev[], uint16_t nb_events, uint64_t timeout_ticks); void ssows_flush_events(struct ssows *ws, uint8_t queue_id); void ssows_reset(struct ssows *ws); +int test_eventdev_octeontx(void); #endif /* __SSOVF_EVDEV_H__ */ -- 2.14.1