From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0076.outbound.protection.outlook.com [104.47.36.76]) by dpdk.org (Postfix) with ESMTP id 471B21B1C6 for ; Mon, 8 Jan 2018 14:48:33 +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=Ou699jcGYMSUhNIXwYO70Cz6YzMR+OI1u/9lAyeExatJSv8jCs5K+qMWdQkM7KOPhbYMdg3weM5CkgxW5zgbMkPEgPHUdvC2CHak49q5s9pr/apopNcC3/8Q+xDqXK/LN06SUoifxR5TGR/Du0/ZTp9Ik25+MJ+KjnPW+xJA31w= 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:29 +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:36 +0530 Message-Id: <20180108134742.30857-5-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: 44058138-48d7-4c1f-60dc-08d5569e811f 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:4jPhlxPErAp88jgNlopGygFl9dTz7e3Zl1lgfzwMVirXOnMAhnA0n83wpkZCftCylWK3MiG7/5RGdMyhBc+kskcd/iLUmripEf9RJkJ+sb7AD9YyrDVebR/I1kxcEMfPGSHa8u/xUU7SI/yydPhTAYV8q18KZRUGESAkU9bfcVspEskGVZFSZ2gpjCZDsR19gBPIoqRgBy5lJOLRgypQQtoaZxL3oitJT309U/b5fyFj7xR1pO3PLhd1irmuvmYY; 25:o6XlQ+YVhadcrU+bDd+W/4gbBQOKnPVQDFIZAV8eHXcsSSqAo222Rhv5x4weEEADiiPgqfG1uhghJtps+Tg4Gc3wUNNtlQjuhty10atZtnoSKh+bLDUr5b7tNMp/ge5wr4Ovz3lMWw9yW1bnJ5EgD6TN+NYGwPMnQS6BTdHLISX2yB18gHBrpocr5rLNg0IErjLjxCuR+x9m4Xl4rnwONYSQciGYGShS/F3UKmTjGB/qtqBmsy7KwBUcl/u4DG1+nJnY4AdOGALpxS9qZBF6E6Q4QNUiNXMY9Vj8lD7gvR2REmbItCb0QJ2ndMj6/7Noi1a8lnyTDMjjA8y9Aijxqw==; 31:QaDeQe6+K8cE/jOZ7AblFViPKzoj0H+aPfxmhkKyKaARm2sXw5QcSLEmGVbe8nhB9TfZ1GhFimCRPKnu5FH4fVLkpWyDB98UkKpvLYxjLrYpzc7Ho2fgk7wg8j17X4IXa/GorAjNyjhi/Us5UZyaHYvOKs2d3idLI1MbVL4EAS1yG3rQt2csBZ8SX9GFULm5rsDeMaTMWxNXaYzwPOwp5OiuzZtlHgB02RpzbqSvCm8= X-MS-TrafficTypeDiagnostic: MWHPR07MB3470: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 20:bFn1E3SThI+S92zsWUWanXpkNb29y7VlXVzYvp6AhqzxX97urpJyBkq/ruv4Xvgh7pUHBQIJRrgyJG5kZ06w3iQ5VbgaikRzlu4Lmei+7fIIW/jfXG/TzSMqw9MN3wh12OWl0mZ0MJtN2v8JqvHrkNK8+JvSjZo5GOKcdLdHqitw0yNQA7mbsINDScieceuoKMLmm18lRH8R3Ww2E+wzwZddlIBKYsxFehSXF4HvYJtPWRyVGQ95a0JSR0/PmtcJYQm4XuZ3vqa1h8SFW8tHzQ3HmAjqJjgyXAdzy9wLoviVvl+aboC7K2Ktm2c1gtJ63cnl3i0remfQ5IHZjWRydN9DB/vDU27S7qCXu0F47+uPK3ek/m0/avylzQhqG+0rfpKGgi3EpHeE5uJWfNIfRTh6nqtzz7a9ZpOGME0VQYY3BJdK1FQjpZW4c/xo0uU/l4xSLgBGnNjz45cn0iavAfiIQ8qKMs4/xighLZWn0qRGthDt1Ie67DnGQ1Xg/bwPxhOqohRxvDkJBwJHsrT8CZcshYFA2ADMOUFe7gf5BHnG9jSF3No1AI7joT243v7TGwz/ncZNytT+iPNJX7rxjwITwJnEs7mRs0IuGYBHvbs=; 4:YCkuc9Cz0NyqcQwMuSWCSWkUViqF2uoIxOjpiowqqN7aylLV+DFhAtTwJpJire1QZDm4kjEwz3bbW9nG6RivF3qW1IFjYp6gFBvyTKGWjb1IZxy2ituncYIimSZCFJkvWyNpdGOdA2nopa3LKkZ5J1G9U9rAC5bNRtcjmVNHcaonosDbOfnQratvN8Qv90O/7fb4c+myvj6Kl+FbEBt1PmHOaFg8HTv580Fvwsl9B4V24s+XIsQ/cfeiXN2b44sCT+TO0x82P8jba9N9y56vtw== 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)(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)(575784001)(1076002)(2906002)(305945005)(7736002)(6486002)(76176011)(51416003)(52116002)(2950100002)(36756003)(16526018)(6116002)(42882006)(6666003)(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:PRX6owumhDYtUys/9uRy0msg+KWy6Z0npJmTGROtv?= =?us-ascii?Q?KCritovjoF7/UekoR7hsRX1Ym2wRvGjAEl3vSffsxtYuzN4mmpuCmLy5Z8mQ?= =?us-ascii?Q?f1wWI3u22JyNyG0ZiJe15IrP5EEz13TwIv+xLypnLnq8QA7jHP2ughedhQnF?= =?us-ascii?Q?Dp3K/xspgC6U467ODvJldLOFcb/o5P0fC7z8Lj3LvTLc+Uc34i/vXpVi7y0+?= =?us-ascii?Q?8KsmhJddxrUrvhm196R8+5S7ZMPoSPU8R0dXgXH4C4kzyhbcUl2d2u5uS+L2?= =?us-ascii?Q?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3/3VcU/dhWxL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 13:48:29.4087 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 44058138-48d7-4c1f-60dc-08d5569e811f 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 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, 08 Jan 2018 13:48:33 -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