From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0079.outbound.protection.outlook.com [104.47.32.79]) by dpdk.org (Postfix) with ESMTP id 8FE10A495 for ; Thu, 11 Jan 2018 11:23:25 +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=E8Ipg8ZQvPf8F+bSQz+yaXsB4SaWuUWqshNRb84njFU=; b=WF2Nx0S7eC+4aEAXCgu5nlqcGTBPnsJYTczY7hsiv42s0JftdUxeOBfaKFalWUqFUkLwip3zk5wEXYbc+1GwltU5pqmmXY5vJbowD8cn4EQdwtWFVegNfclqBFF/vbKJwlxtJBpIWV4+ZRGFiw2sP1Zctm4JmPUba6jgtUQaUvs= 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:23:21 +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:50 +0530 Message-Id: <20180111102156.12726-5-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: f63d3214-936d-4f18-6f96-08d558dd588c 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:zmSZqYgitMfeOo0f5tTt19VTEzqWnA8joJBf+0zOAAPmnOEBXfND4gGky0KP7GfXjEohQ7jtfn/SZnkbkiMrq+TqirrN0/awuZWN+wQmYq15VRenj75vyz6ljjrOt6xKfN4d7bsu4WoJXu1lNQ1pK3XQzpmYICau6OqWJWivw6EXLyi6y7NrxB/AZCs+i9CtznXgavzlUNXW/bX/6nK3U89QNH28My7/YC80KwRYzVBhHLgVYuBV8lx2obCMXsmF; 25:VUx0UXzpG3uol2ywnxP0icjLUoV7HnJVeJc3KCfS3MRlIqo41g4TPGGasIG6xmDAu8T1YwPiXpFVFk2a5CdnohoI/KYf5i8PgmMshwXOsSX8HpGhE6M2oxvO4JDadBybnV1Ve9M3DudK8Q0qqhpCft2BIRKRYfxgy4OfJdzJLV6IlA/9rEFX/F4UTaDHZrw1H5BYf6la3JlhyjOinwjOnzPOlAUOlZfBm/p7AOMq+X3KhlNU61YZ9kahl0CVP5Q3/Y9NFOqiNqOa6kEXumHioklTCq8y+yvl3RD9t1ks8blGjOAfHVFtouiU1YgYiy/WDanRPLpUcpkFUJgG1iqgGA==; 31:VWbgs6LNPsu+fwrtXiHHmif+rIysHj2M5dqMcgZMF1EIa1WCqnADZHY8zwOlMON0pX558SwWKcND9DSdU6XCY7bOgB60prRNR2lwPZgd0+DZV3RDeUFmHfU/aZyFn5CYjAcAH35VL4hgaB0xRK3AP6uXNw7wsscao88s9DrrxMQZOiMKipW628DhFJfrHbrp+grxmOBvmcyHRHhkaqtxdCnr1BRcrYZ0rj0V9MK1ka4= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:Ws+krgSKTw0GE2u1cz6VLhN1ZtvL3KsVagiPQOc0R15pvJqz9THv6bqfUV6MaVx5XubMK+hI2PVBA2xWNbPtxamrGUS+INkR2Lla1VSKDP9dohtChMUhKzQM/Q5Trbz78phfFx48XNCHSOcAZhB3Uz/FI49U7KZ93oijCy6JS3W3mjzyG/jVhnbUJExRE5JLpkqGKv4TW8C8MCWNb5St27kXWo2nBeBgrnIDBB16v13UKq3YO9XC1DlvG371eATuD/2U+Qs0hFw0xaD3tOUcLjU932nhuHjUkSQw/hr18myZzl84pTxj4uPu/7GK69BsC/5PALAAlmjip+PMEDKKtL+Sju+FD0pcES4+NuRMnEqJikXcpJtfjfV43PFI883U7HqCzQr5K4n2XFWwlwzI/fBo2+a5SGI0d+6XAMxgmbZLrXa9PJFSEMnbXPUhMBZpgqyXS8UHz7QNLlAVlfdGQSPk+tOxg2TexeinVaf1wKQUybK2G6hdSjQdQikLbzJKSri46C8wa/wdhxdB5pbZ0IrYl3uGSxHLYWYjGsOIrONzcvjtEN+H7vkzq4BxQYTrAnGioSSia3uumEqqob6UvqSlnIAckrPNzbvbbj8rItk=; 4:EAnd1TtQk4+b2Su8qlBpCusby3lzG8W87nHkGAS5mD6kRYz0Lfrmz9nW6w1tNwjOsWbZyzfEgDZe7gP3Z/pKEzTXiGfGB5Q0/1DVTLZ4V4QUhj1M7iIHjadhsy0z0YmD3kXR1GKdT635k3ehVFQpCHLaAFivQHeyEHxAnrRFkFXjaQmTu+6nQ2DeJAHt3kQxq3rwusFKRd1xF8wCqUatW6gQteFdlya+3uyWc/8p+6vmkuNxRv8DbYvrHpvQT7MrgG7hwIgejZ1VMBQyK+6dUg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231023)(944501075)(93006095)(6041268)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(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)(575784001)(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:gxORw6aDGeyBNKLAubjWUXFkSasYifLiAUFNdSrgG?= =?us-ascii?Q?gRql5PuJfGOBOGSCByzEBqtITBVD9TiVoFNbg63FVC9mUmsoWJ3pgS1WkXSR?= =?us-ascii?Q?8AVScNXS04gNva1nOmgwP4cp4rtc9R/yGTI1URsH3Rix6Xwmob+WpkLiepXi?= =?us-ascii?Q?MlF3g+0NdGqLaJqVwUh8NqmMr/7G71qlCXZazqBQe6FH785nWvQugrPvnw4h?= =?us-ascii?Q?B4XvRaynllUfFPwVH0ptm8LcKKBdP3uQRelQ7NiCuyzIRRuqvkFb37UyJg17?= =?us-ascii?Q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QEP05PIA6N0gX2MGt2XfMaindE1ack6fOtFIIjSmeM1qxtTfpv5IIqVv1zOH7B25RUhhneQc8ZN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2018 10:23:21.4095 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f63d3214-936d-4f18-6f96-08d558dd588c 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 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: Thu, 11 Jan 2018 10:23:26 -0000 Update octeontx eventdev ops to invoke selftest when application invokes `rte_event_dev_selftest`. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- 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..9a6ffdfb1 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) += ssovf_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.15.1