From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03hn0200.outbound.protection.outlook.com [104.47.41.200]) by dpdk.org (Postfix) with ESMTP id 209861B2B2 for ; Tue, 16 Jan 2018 16:18:43 +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=oZ3idTvAVcQhU+QzYrHM48DO3ngMpLPEuB8GsQQipaI=; b=eaqpUI7R7uiU+bdi4NZULqXrxDlbq/LlF3RrrEsHEJfet8Ao+5ymRhj73C4rVKbbMpK417x6j1iCb116j70VDYhVY4bPgCYuos7LSkOIn9GDqqiIlCB8kcRBBLTbd5xb/T0c8F4xl2iKyoIVS2TklYsqUbncDOL5X4BOkWXTCYA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 15:18:38 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.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: Tue, 16 Jan 2018 20:47:24 +0530 Message-Id: <20180116151728.566-9-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180116151728.566-1-pbhagavatula@caviumnetworks.com> References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> <20180116151728.566-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR21CA0059.namprd21.prod.outlook.com (10.172.93.149) To MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fbdefcee-dd03-463f-f11f-08d55cf46cb1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:Mv6oHwMKELrjjH4e3WebB4+xeCJFrFEzgEZTZGt9anIk+q6snhd6Aq2q4bffcTU59ywPQxTaAPnCBjOzbGRnIRb2Iyj9yL389qXy36IDOzDpuAFpu5K5tfiseghAk/P7hEj4CxmYnBoYTR0TyAiKtC23bgSGCZ1D2CXs0Bf2/SoA5UdwFnwVDPQQPG9bxG2j8LZIZIAdefZEPuKT0KG177wzufQzwAEKTJ1eUpDOhvjfJEV08/letqIKchMx03o9; 25:9UFJG/QhvwgdMfiy8SgZIFQvthODVc4LBz/JnGfilC7c9xGIL+SHLMhngAQtPPtOVUHFIRcSwRKBKuk6LIBKVf5NHEmZDlVnjm57snBynKrnGaT7P5/vW7Wp63iV3q5CuqEcAyxWqfRkcComX3Brbpx9FGobDLJKSj1sUX3ASHile59HxhSGHXG5WY6NdWsT/Ib1IMBBL50jUFCJIr50LfUwKrF2OoMg1hAPF8RKCHVygZywatLQ/UTu6rTOmuOzsy3bAH856xIFYt7R+E+tr4vnAnNJx+yfrzK6W246R8pwwTgwi+8ylaXAVtuO2v27qP2/m94PfKCLUgAGg8/Wew==; 31:AvR59yC2eLIXnY1zmCwjfRW48amw4ZKioX7a6+WLCei+vmmYEzUMELlAt8MyChPF1+39yA4smRoCdQxUj+MWxDt5oECHxmwrLhwziBva2zGDWiQSsM+rgtsP57UXlmhCze1KYeAfa05f0i9ypy2iC4JELEjqWkKB+mWZGck7Z9kvygN7/fswLWQedepehmvxAl879bykyYpf2ln8hnZKKb2qlNgCCtSC5yeRqHsZxOU= X-MS-TrafficTypeDiagnostic: MWHPR07MB3469: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 20:ALKCjkg1IYe/c+fCPsfz+zH/6+t90dP39Q5TAweXfm3jG9NvzECnb2MbLyqvTdAaWrHwMxCtIFOkMjdMtCL6CD7ZXXk9ZQyjpGWOXChRgrN9YApvxNj57pUuAl1NDPkJp1n0/YxwDO6FVx/v1OnjNSA6efeN9oHzJqyb29zxST61qa6M8t9EWp1OEnLo2D2g4y7cBI7B/S4t9zA71qiZrZDkerVy1PDXwOBva6PGGwEedxsJviqHIlWgPNHK565VOlLpj7SrTbXjIYAPgwWFPEGmsLqyE3s0ztdTxDu/teRqE6MJB7p+X9YWdSZiQm33EO0KqWfx5kbRTg4HFu0LVI858F97ASMSXgA668BQyOWcDt39Hw0HcgyQYxYYyQubGZ7kt9YWPB/brP5z2kVwABGwQLfv3gr0h3rBhuyexMo0TO390wopPdh/xBExkkPpQ5mkE4nFEgYS9+8A2bNGWy2rT3cqEASglt0Nq6AzXFzbfE5+LzDVS/TiKFmTm0R4YhgtWA7Gv+Net04BFZIEAng4ulmZnB2SyFphbbR1WOQzJ+nmaGgwk5hb4xGAsyXG1WFFf4FHW8CaSaiO/BycKeoR7fx4QzTCbk+i/j07p74=; 4:fWGs2Toq3OxiPA7RWv6CBniQlRVidFPORVOA0vniGS8LhPlq+OV1aAdeESEG5YE27CcPeoQmKQHzBqh1ueinLb94FdqECjOewt7HTSlpNZu/sf/l3GXi9k66gbr1XbUTi1pEntz1aJkdTvF8SyExeGBJh5JZHSLBGQ9b/dfD/H9cW/rIMvFdSk3saxA3aYvhc+dGnttpSZEWL+Cl1Lrss67leUvZZl8TkLCuzjIs95l3lf1MaT+Dj74EzXXwUfjxud+2pe+l58y4b88lvL5jh96eX+tMzBe90Dr6gOFqN8vSO9w0QTSGHe9KrYN38Pyf X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(66839620246622); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(3231023)(2232001)(2102002)(944501161)(93006095)(10201501046)(6041268)(201703131423095)(201703061421075)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(6072148)(6042181)(201708071742011); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3469; X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(366004)(199004)(189003)(2950100002)(4326008)(42882006)(5009440100003)(6666003)(53376002)(107886003)(25786009)(68736007)(16526018)(72206003)(508600001)(5660300001)(16586007)(966005)(26005)(50226002)(53936002)(7736002)(305945005)(36756003)(53416004)(6116002)(81166006)(19273905006)(8656006)(69596002)(8676002)(6306002)(6512007)(81156014)(8936002)(97736004)(386003)(6506007)(50466002)(66066001)(76176011)(59450400001)(52116002)(51416003)(2906002)(47776003)(48376002)(106356001)(3846002)(1076002)(105586002)(6486002)(50929007)(562404015); DIR:OUT; SFP:1501; SCL:5; SRVR:MWHPR07MB3469; H:Pavan-LT.caveonetworks.com; 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; MWHPR07MB3469; 23:+PI80PwNGZtH5ybyNWogP7v3/tINiTOLyFE1jI2l7?= =?us-ascii?Q?kysh4aTwYESqE2zEyyEJW5gh1AC4y2/HKbruBb12thmUWv1pGNA1H6wwlo6S?= =?us-ascii?Q?4igmknFjxT5N+591WJfGC+sxnl1oFfg13apMvXKSqiqnvdaLcyUXnvPxLbYv?= =?us-ascii?Q?J6QRALEEhRiFUDdhNHzDYI5K9upaaLPjfQoCdUR5yULid94dnXoJok5Mw5iI?= =?us-ascii?Q?+QTokSF++djxa762PNTHzPm4kPShSwb7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kwRUmQW8mtFN755fzFFwClLDWNAJsXtbfW4rTqUKjDu2BBqZFWSGtdc4O7t5kU2DVJ+hfreYAYGxTpYqtUQ4gyBIbVmUlaPmJGxmQNXGFbBImNz2A0OIVonMk6yLI4YOgRXUF8KujYdUA/BStYH3yBOPih6M5S77b24W5N7/D/7UEu9wHfF6f1ywIq1LpZc4tLijDNFJsodl9UZjRCSW0 SpamDiagnosticOutput: 1:22 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 15:18:38.4574 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fbdefcee-dd03-463f-f11f-08d55cf46cb1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: [dpdk-dev] [PATCH v5 09/14] app/eventdev: add pipeline queue test 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: Tue, 16 Jan 2018 15:18:44 -0000 This is a pipeline queue test case that aims at testing the following: 1. Measure the end-to-end performance of an event dev with a ethernet dev. 2. Maintain packet ordering from Rx to Tx. The pipeline queue test configures the eventdev with Q queues and P ports, where Q is (nb_ethdev * nb_stages) + nb_ethdev and P is nb_workers. The user can choose the number of workers and number of stages through the --wlcores and the --stlist application command line arguments respectively. The probed ethernet devices act as producer(s) for this application. The ethdevs are configured as event Rx adapters that enables them to injects events to eventdev based the first stage schedule type list requested by the user through --stlist the command line argument. Based on the number of stages to process(selected through --stlist), the application forwards the event to next upstream queue and when it reaches last stage in the pipeline if the event type is ATOMIC it is enqueued onto ethdev Tx queue else to maintain ordering the event type is set to ATOMIC and enqueued onto the last stage queue. On packet Tx, application increments the number events processed and print periodically in one second to get the number of events processed in one second. Note: The --prod_type_ethdev is mandatory for running the application. Example command to run pipeline queue test: sudo build/app/dpdk-test-eventdev -c 0xf -s 0x8 --vdev=event_sw0 -- \ --test=pipeline_queue --wlcore=1 --prod_type_ethdev --stlist=ao Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/Makefile | 1 + app/test-eventdev/test_pipeline_queue.c | 237 ++++++++++++++++++++++++++++++++ 2 files changed, 238 insertions(+) create mode 100644 app/test-eventdev/test_pipeline_queue.c diff --git a/app/test-eventdev/Makefile b/app/test-eventdev/Makefile index 1707318f2..94b489f41 100644 --- a/app/test-eventdev/Makefile +++ b/app/test-eventdev/Makefile @@ -26,5 +26,6 @@ SRCS-y += test_perf_queue.c SRCS-y += test_perf_atq.c SRCS-y += test_pipeline_common.c +SRCS-y += test_pipeline_queue.c include $(RTE_SDK)/mk/rte.app.mk diff --git a/app/test-eventdev/test_pipeline_queue.c b/app/test-eventdev/test_pipeline_queue.c new file mode 100644 index 000000000..773c3ecaa --- /dev/null +++ b/app/test-eventdev/test_pipeline_queue.c @@ -0,0 +1,237 @@ +/* + * SPDX-License-Identifier: BSD-3-Clause + * Copyright 2017 Cavium, Inc. + */ + +#include "test_pipeline_common.h" + +/* See http://dpdk.org/doc/guides/tools/testeventdev.html for test details */ + +static __rte_always_inline int +pipeline_queue_nb_event_queues(struct evt_options *opt) +{ + uint16_t eth_count = rte_eth_dev_count(); + + return (eth_count * opt->nb_stages) + eth_count; +} + +static int +worker_wrapper(void *arg) +{ + RTE_SET_USED(arg); + rte_panic("invalid worker\n"); +} + +static int +pipeline_queue_launch_lcores(struct evt_test *test, struct evt_options *opt) +{ + struct test_pipeline *t = evt_test_priv(test); + + if (t->mt_unsafe) + rte_service_component_runstate_set(t->tx_service.service_id, 1); + return pipeline_launch_lcores(test, opt, worker_wrapper); +} + +static int +pipeline_queue_eventdev_setup(struct evt_test *test, struct evt_options *opt) +{ + int ret; + int nb_ports; + int nb_queues; + int nb_stages = opt->nb_stages; + uint8_t queue; + struct rte_event_dev_info info; + struct test_pipeline *t = evt_test_priv(test); + uint8_t tx_evqueue_id = 0; + uint8_t queue_arr[RTE_EVENT_MAX_QUEUES_PER_DEV]; + uint8_t nb_worker_queues = 0; + + nb_ports = evt_nr_active_lcores(opt->wlcores); + nb_queues = rte_eth_dev_count() * (nb_stages); + + /* Extra port for Tx service. */ + if (t->mt_unsafe) { + tx_evqueue_id = nb_queues; + nb_ports++; + nb_queues++; + } else + nb_queues += rte_eth_dev_count(); + + rte_event_dev_info_get(opt->dev_id, &info); + + const struct rte_event_dev_config config = { + .nb_event_queues = nb_queues, + .nb_event_ports = nb_ports, + .nb_events_limit = info.max_num_events, + .nb_event_queue_flows = opt->nb_flows, + .nb_event_port_dequeue_depth = + info.max_event_port_dequeue_depth, + .nb_event_port_enqueue_depth = + info.max_event_port_enqueue_depth, + }; + ret = rte_event_dev_configure(opt->dev_id, &config); + if (ret) { + evt_err("failed to configure eventdev %d", opt->dev_id); + return ret; + } + + struct rte_event_queue_conf q_conf = { + .priority = RTE_EVENT_DEV_PRIORITY_NORMAL, + .nb_atomic_flows = opt->nb_flows, + .nb_atomic_order_sequences = opt->nb_flows, + }; + /* queue configurations */ + for (queue = 0; queue < nb_queues; queue++) { + uint8_t slot; + + if (!t->mt_unsafe) { + slot = queue % (nb_stages + 1); + q_conf.schedule_type = slot == nb_stages ? + RTE_SCHED_TYPE_ATOMIC : + opt->sched_type_list[slot]; + } else { + slot = queue % nb_stages; + + if (queue == tx_evqueue_id) { + q_conf.schedule_type = RTE_SCHED_TYPE_ATOMIC; + q_conf.event_queue_cfg = + RTE_EVENT_QUEUE_CFG_SINGLE_LINK; + } else { + q_conf.schedule_type = + opt->sched_type_list[slot]; + queue_arr[nb_worker_queues] = queue; + nb_worker_queues++; + } + } + + ret = rte_event_queue_setup(opt->dev_id, queue, &q_conf); + if (ret) { + evt_err("failed to setup queue=%d", queue); + return ret; + } + } + + /* port configuration */ + const struct rte_event_port_conf p_conf = { + .dequeue_depth = opt->wkr_deq_dep, + .enqueue_depth = info.max_event_port_dequeue_depth, + .new_event_threshold = info.max_num_events, + }; + + /* + * If tx is multi thread safe then allow workers to do Tx else use Tx + * service to Tx packets. + */ + if (t->mt_unsafe) { + ret = pipeline_event_port_setup(test, opt, queue_arr, + nb_worker_queues, p_conf); + if (ret) + return ret; + + ret = pipeline_event_tx_service_setup(test, opt, tx_evqueue_id, + nb_ports - 1, p_conf); + + } else + ret = pipeline_event_port_setup(test, opt, NULL, nb_queues, + p_conf); + + if (ret) + return ret; + /* + * The pipelines are setup in the following manner: + * + * eth_dev_count = 2, nb_stages = 2. + * + * Multi thread safe : + * queues = 6 + * stride = 3 + * + * event queue pipelines: + * eth0 -> q0 -> q1 -> (q2->tx) + * eth1 -> q3 -> q4 -> (q5->tx) + * + * q2, q5 configured as ATOMIC + * + * Multi thread unsafe : + * queues = 5 + * stride = 2 + * + * event queue pipelines: + * eth0 -> q0 -> q1 + * } (q4->tx) Tx service + * eth1 -> q2 -> q3 + * + * q4 configured as SINGLE_LINK|ATOMIC + */ + ret = pipeline_event_rx_adapter_setup(opt, + t->mt_unsafe ? nb_stages : nb_stages + 1, p_conf); + if (ret) + return ret; + + if (!evt_has_distributed_sched(opt->dev_id)) { + uint32_t service_id; + rte_event_dev_service_id_get(opt->dev_id, &service_id); + ret = evt_service_setup(service_id); + if (ret) { + evt_err("No service lcore found to run event dev."); + return ret; + } + } + + ret = rte_event_dev_start(opt->dev_id); + if (ret) { + evt_err("failed to start eventdev %d", opt->dev_id); + return ret; + } + + return 0; +} + +static void +pipeline_queue_opt_dump(struct evt_options *opt) +{ + pipeline_opt_dump(opt, pipeline_queue_nb_event_queues(opt)); +} + +static int +pipeline_queue_opt_check(struct evt_options *opt) +{ + return pipeline_opt_check(opt, pipeline_queue_nb_event_queues(opt)); +} + +static bool +pipeline_queue_capability_check(struct evt_options *opt) +{ + struct rte_event_dev_info dev_info; + + rte_event_dev_info_get(opt->dev_id, &dev_info); + if (dev_info.max_event_queues < pipeline_queue_nb_event_queues(opt) || + dev_info.max_event_ports < + evt_nr_active_lcores(opt->wlcores)) { + evt_err("not enough eventdev queues=%d/%d or ports=%d/%d", + pipeline_queue_nb_event_queues(opt), + dev_info.max_event_queues, + evt_nr_active_lcores(opt->wlcores), + dev_info.max_event_ports); + } + + return true; +} + +static const struct evt_test_ops pipeline_queue = { + .cap_check = pipeline_queue_capability_check, + .opt_check = pipeline_queue_opt_check, + .opt_dump = pipeline_queue_opt_dump, + .test_setup = pipeline_test_setup, + .mempool_setup = pipeline_mempool_setup, + .ethdev_setup = pipeline_ethdev_setup, + .eventdev_setup = pipeline_queue_eventdev_setup, + .launch_lcores = pipeline_queue_launch_lcores, + .eventdev_destroy = pipeline_eventdev_destroy, + .mempool_destroy = pipeline_mempool_destroy, + .ethdev_destroy = pipeline_ethdev_destroy, + .test_result = pipeline_test_result, + .test_destroy = pipeline_test_destroy, +}; + +EVT_TEST_REGISTER(pipeline_queue); -- 2.14.1