From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0077.outbound.protection.outlook.com [104.47.42.77]) by dpdk.org (Postfix) with ESMTP id DA5581D080 for ; Fri, 8 Jun 2018 19:25:55 +0200 (CEST) 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:X-MS-Exchange-SenderADCheck; bh=Kh8WgjGVNcPYxYTfhAUVoO2e7OY6058mcDBDuq0AGgw=; b=PVuKEn7yz9aKF0silZozfSaYkAeds/8D3/uRjcvonPAdhUWAv+h24mNObOqgTl1OjOQ4pAi+TR2jQForVO6z3T1MgsPTxzmw7JTioETLwbbqjQSiof81iA6iBc0opxDxhW+uX6KHikkeJcF1SfQ1W1J6ovLbht70joXQPBNKrNw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.caveonetworks.com (115.113.156.2) by DM6PR07MB4906.namprd07.prod.outlook.com (2603:10b6:5:a3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.17; Fri, 8 Jun 2018 17:25:51 +0000 From: Anoob Joseph To: Bruce Richardson , Jerin Jacob , Pablo de Lara Cc: Anoob Joseph , Hemant Agrawal , Narayana Prasad , Nikhil Rao , Pavan Nikhilesh , Sunil Kumar Kori , dev@dpdk.org Date: Fri, 8 Jun 2018 22:54:15 +0530 Message-Id: <1528478659-15859-17-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528478659-15859-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528478659-15859-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR0101CA0050.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::12) To DM6PR07MB4906.namprd07.prod.outlook.com (2603:10b6:5:a3::11) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4906; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4906; 3:Ns5suj+F5Lh4NoptVVx5n/lHbZE4wXyi+xpYpeyjx/Nb5707DGjysbh+bENAhv+zRF52pbtRKUVyKjbW+dIIRuhiriigySU08yfPl22xw6dnMvul1cx0c2El/fyNlM0FgmqwNOiyn0A5UVzt91vbI0f1WL86QVnHlGKk06tNcASL4gmxumcrW9qwst9liho9MLygNhBtIj11hoo+XzV2AyFEyITl81d9R3nHAsAfD/3frw7cxIe7BsWvvWuDlXZO; 25:G3uhShIAVIOGPtt1YdZmHIxcvOCRsG4r24nP0bjaEXDYsSFq+6LE+iqXxK36IdAauVttaQlPpsnx4nbQh4s01jlavXdCC/9TeAjoB6M5f6+Cr+NywIH9dBud3Y45/RuAd7AWDuH7LujFRINNacqOqlLcByZS3sJMhSulo1AnApdk4xCHRxPx+L4D9edyagMsJgAB6Gkpp+M2IzOKB1lD8jcP3qkiqr/1QTPIf9F9LZHwWpvDJOZdQt3ecqIFVzwFv467H0O+oyrAOjDumWzZejBZJ17VOcDiXfXxkn20bJkXKEvnhYSN4sGBqK6SAqMo5A7Enm9cmUvpquX4KTjBcQ==; 31:JjE8xeKwFu6LOFBi/fZoDDw67aW78+bFGrfeT4U4x2I93OuNebADeGZmRx8RRUxtECuYSYY30HJYmgwHwALgAh8UxhFXXQIDJaPsyAyeXsI0G3JBYX1tStI2Mea/ZLrIBdzHNNytXN7VTlV09io3R2VPwbjfo7xqtMNkqsQssl0ZjObBvvT375w2HfnCbnt50IDNSaha39BvFKsGKhNPDe5zrCB519eb9L8axNDlBdE= X-MS-TrafficTypeDiagnostic: DM6PR07MB4906: X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4906; 20:scnhIFKfoKEX1EIQ+FVOrQiQllUouvjrtnsv3C9Cha6/11ngrgG6Kqp4X1cR/l1UEwPe6nDtSrcY/drOXzJ1DlKVIuVF2UnTa9dys2RcKHgAAMlLEidhdUDoKPbSRbUr5bTVRGWE6p485JZJJ/8IzmZtdym/83LmORLVZiyFvwzRIqbKH2pNWOR3E5Iy6XJrSTV8wjoR0HafxbJcYY4mqKUy/BpgUxuWV1gbgMgDR4qBBsFFCJPwZoC0fo6QgkU0wdu/c9n/tnD46dkUtgioYvwwg1EtZMWefaDlNK4tumbnlEAiFhkl2GOWWIf3ciSw7aQ5h6CiJs4YTrcC236ffn+aMb9Bgj/EEw+pqdb3ucCr5DgUzQAFPezxNL+LxASABrUz3qR5d3NxM0r8mwhBa6u/RS0E8KHo6ytefa6fTNjka5eJqtjbVmX17CGlvEtu69GHiYEpNp6/OHQn/7Xilk1+M+bvA2EOy6eJ4d46+cTHmOL4duhd3S7z2EZJRdlml1bXK4jmaYr/Z/we7p1E5H4tsWl7U3LffOwf+sGvJmE+i1ZFnuphRswnhMWsJ1xU8hAijBUZ6LVkF6U/bB8qyEQNUUwLeMVzHo+MyZZ3wKI=; 4:kTRbYukzmbHzWD0KQfPKdGH+j8dhnrOFnYZU5KrrhggLqzQHL+6oL/BjY83zdGBzOMieF76gxoKnPpliDAcqG6JI2E9LEca+ZogfL+Bn4xiQ2K4KG43Xps92N5Omb2gJ8SXklENhtTsH+jFpu5q3+XHuF/2G+gQqhNwDOA3vIW/BHDTfh1VuMMHIKTWhtAN+kCMp72kZTxTr4pEfNkQAcxKOmdD0R1rI/gb+YY5VS8vMU3rrxtlP0L+XPYus4Ec1MgdscHYHX+XUElD2b3JJ9Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(3231254)(944501410)(52105095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DM6PR07MB4906; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4906; X-Forefront-PRVS: 06973FFAD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(366004)(376002)(396003)(39380400002)(51234002)(189003)(199004)(186003)(16526019)(5660300001)(26005)(42882007)(55236004)(66066001)(47776003)(68736007)(6666003)(305945005)(2906002)(8676002)(7736002)(8936002)(36756003)(52116002)(2616005)(956004)(476003)(446003)(50226002)(81166006)(11346002)(44832011)(6506007)(386003)(486006)(76176011)(51416003)(48376002)(50466002)(97736004)(316002)(6512007)(25786009)(53936002)(6486002)(81156014)(4326008)(3846002)(6116002)(16586007)(54906003)(110136005)(105586002)(106356001)(72206003)(478600001)(8656006); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4906; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB4906; 23:NbgQu+C10bmScs58sO7V/vVrJrBSV1XfWw0T2soM/?= =?us-ascii?Q?noJ3w9kUOCiUgRgWhMNAJ2QOgvBWq+h4+PlMeTDYPBL4LVh35o4xh9NzCCB6?= =?us-ascii?Q?P5+Gv7FSFmwu/+G0pLyySyFlPPS/WX2BoiaIozjgrDY2oP3iqxbIRdzlbR7C?= =?us-ascii?Q?red3eMXiCjV/MfVUMlZkxHqqEsbTUoJFTN3wl4ZHMg3ZPguavL58waNvPZb+?= =?us-ascii?Q?o779cQKpmv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yPp4Yslh6up85woUBEbiMARSIh4VcXox4DZrfVvSI+v2vAFaBCxCjVnwlDyicT48yvk2WjHIGzhgOeJ/H4ye0unykLjZJZQ=; 24:W+t9t8Rgn5POy1DeRVV7N8xokavaFrO0JkBDBzDS53x+KmggsF6dwxdayebU/uQOS55xVrYML95no/LX4/SGM/xtG4AiII0XqJ2paYCcHTs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4906; 7:YH3GKoLPsZ7tsPUCb3jHdX4cwIo4/WZjVuu2Xj2TBlLjiPJwjHrgzwi6YpmqqeY2U9ltdmQjqxvc0SCH4KUAckIN10sgDa6Tp7wlfPX0FdXzL7UliqdFPHucECqLhaAWT3M6m1FiOK5yK334uOvpcpFcwQ+3N/8L8GxFILpK8+Y+mnI4gtbC/RkKxg5ixdpCK0Y1l35wylOHo1xEssTMRowQslRywcJ4mVB9crJcsgrwWsdiTfhD81Gjr6xbGlw8 X-MS-Office365-Filtering-Correlation-Id: 3f2e1e50-377a-4c1b-fc99-08d5cd64e3e0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 17:25:51.8108 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f2e1e50-377a-4c1b-fc99-08d5cd64e3e0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4906 Subject: [dpdk-dev] [PATCH 16/20] eventdev: add routines to display the eventmode conf 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: Fri, 08 Jun 2018 17:25:56 -0000 Signed-off-by: Anoob Joseph --- lib/librte_eventdev/Makefile | 1 + lib/librte_eventdev/rte_eventmode_helper.c | 3 + lib/librte_eventdev/rte_eventmode_helper.h | 10 ++ lib/librte_eventdev/rte_eventmode_helper_prints.c | 161 ++++++++++++++++++++++ 4 files changed, 175 insertions(+) create mode 100644 lib/librte_eventdev/rte_eventmode_helper_prints.c diff --git a/lib/librte_eventdev/Makefile b/lib/librte_eventdev/Makefile index 80a5830..c427b63 100644 --- a/lib/librte_eventdev/Makefile +++ b/lib/librte_eventdev/Makefile @@ -20,6 +20,7 @@ LDLIBS += -lrte_mbuf -lrte_cryptodev # library source files SRCS-y += rte_eventdev.c SRCS-y += rte_eventmode_helper.c +SRCS-y += rte_eventmode_helper_prints.c SRCS-y += rte_event_ring.c SRCS-y += rte_event_eth_rx_adapter.c SRCS-y += rte_event_timer_adapter.c diff --git a/lib/librte_eventdev/rte_eventmode_helper.c b/lib/librte_eventdev/rte_eventmode_helper.c index 6bdd64c..82cc6d3 100644 --- a/lib/librte_eventdev/rte_eventmode_helper.c +++ b/lib/librte_eventdev/rte_eventmode_helper.c @@ -832,6 +832,9 @@ rte_eventmode_helper_initialize_devs( return -1; } + /* Display the current conf */ + rte_eventmode_helper_display_conf(mode_conf); + /* Stop eth devices before setting up adapter */ RTE_ETH_FOREACH_DEV(portid) { diff --git a/lib/librte_eventdev/rte_eventmode_helper.h b/lib/librte_eventdev/rte_eventmode_helper.h index 1ade32f..c1676e3 100644 --- a/lib/librte_eventdev/rte_eventmode_helper.h +++ b/lib/librte_eventdev/rte_eventmode_helper.h @@ -96,5 +96,15 @@ int32_t rte_eventmode_helper_initialize_devs( struct rte_eventmode_helper_conf *mode_conf); +/** + * Display event mode conf + * + * Parse the conf and display the current configuration. + * + * @param mode_conf + * Configuration of the mode in which app is doing packet handling + */ +void +rte_eventmode_helper_display_conf(struct rte_eventmode_helper_conf *mode_conf); #endif /* _RTE_EVENTMODE_HELPER_H_ */ diff --git a/lib/librte_eventdev/rte_eventmode_helper_prints.c b/lib/librte_eventdev/rte_eventmode_helper_prints.c new file mode 100644 index 0000000..08b016d --- /dev/null +++ b/lib/librte_eventdev/rte_eventmode_helper_prints.c @@ -0,0 +1,161 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Cavium, Inc + */ + +#include +#include + +#include +#include "rte_eventmode_helper_internal.h" + +static void +rte_eventmode_display_operating_mode(struct eventmode_conf *em_conf) +{ + char sched_types[][32] = { + "RTE_SCHED_TYPE_ORDERED", + "RTE_SCHED_TYPE_ATOMIC", + "RTE_SCHED_TYPE_PARALLEL", + }; + RTE_EM_HLPR_LOG_INFO("Operating mode:"); + + RTE_EM_HLPR_LOG_INFO("\tScheduling type: \t%s", + sched_types[em_conf->ext_params.s1_sched_type]); + + RTE_EM_HLPR_LOG_INFO(""); +} + +static void +rte_eventmode_display_event_dev_conf(struct eventmode_conf *em_conf) +{ + int i; + char print_buf[256] = { 0 }; + char queue_mode[][32] = { + "", + "ATQ (ALL TYPE QUEUE)", + "SINGLE LINK", + }; + + RTE_EM_HLPR_LOG_INFO("Event Device Configuration:"); + + for (i = 0; i < em_conf->nb_eventdev; i++) { + sprintf(print_buf, + "\tDev ID: %-2d \tQueues: %-2d \tPorts: %-2d", + em_conf->eventdev_config[i].eventdev_id, + em_conf->eventdev_config[i].nb_eventqueue, + em_conf->eventdev_config[i].nb_eventport); + sprintf(print_buf + strlen(print_buf), + "\tQueue mode: %s", + queue_mode[em_conf->eventdev_config[i].ev_queue_mode]); + RTE_EM_HLPR_LOG_INFO("%s", print_buf); + } + RTE_EM_HLPR_LOG_INFO(""); +} + +static void +rte_eventmode_display_rx_adapter_conf(struct eventmode_conf *em_conf) +{ + int i, j; + int nb_rx_adapter = em_conf->nb_rx_adapter; + struct rx_adapter_conf *adapter; + struct adapter_connection_info *conn; + char print_buf[256] = { 0 }; + + RTE_EM_HLPR_LOG_INFO("Adapters configured: %d", nb_rx_adapter); + + for (i = 0; i < nb_rx_adapter; i++) { + adapter = &(em_conf->adapter[i]); + RTE_EM_HLPR_LOG_INFO( + "\tAdaper ID: %-2d\tConnections: %-2d\tEvent dev ID: %-2d" + "\tRx core: %-2d", + adapter->adapter_id, + adapter->nb_connections, + adapter->eventdev_id, + adapter->rx_core_id); + + for (j = 0; j < adapter->nb_connections; j++) { + conn = &(adapter->conn[j]); + + sprintf(print_buf, + "\t\tEthdev ID: %-2d", conn->ethdev_id); + + if (conn->ethdev_rx_qid == -1) + sprintf(print_buf + strlen(print_buf), + "\tEth rx queue: %-2s", "ALL"); + else + sprintf(print_buf + strlen(print_buf), + "\tEth rx queue: %-2d", + conn->ethdev_rx_qid); + + sprintf(print_buf + strlen(print_buf), + "\tEvent queue: %-2d", conn->eventq_id); + RTE_EM_HLPR_LOG_INFO("%s", print_buf); + } + } + RTE_EM_HLPR_LOG_INFO(""); +} + +static void +rte_eventmode_display_link_conf(struct eventmode_conf *em_conf) +{ + int i; + struct rte_eventmode_helper_event_link_info *link; + char print_buf[256] = { 0 }; + + RTE_EM_HLPR_LOG_INFO("Links configured: %d", em_conf->nb_link); + + for (i = 0; i < em_conf->nb_link; i++) { + link = &(em_conf->link[i]); + + sprintf(print_buf, + "\tEvent dev ID: %-2d\tEvent port: %-2d", + link->eventdev_id, + link->event_portid); + + if (em_conf->ext_params.all_ev_queue_to_ev_port) + sprintf(print_buf + strlen(print_buf), + "Event queue: %-2s\t", "ALL"); + else + sprintf(print_buf + strlen(print_buf), + "Event queue: %-2d\t", link->eventq_id); + + sprintf(print_buf + strlen(print_buf), + "Lcore: %-2d", link->lcore_id); + RTE_EM_HLPR_LOG_INFO("%s", print_buf); + } + RTE_EM_HLPR_LOG_INFO(""); +} + +void +rte_eventmode_helper_display_conf(struct rte_eventmode_helper_conf *mode_conf) +{ + struct eventmode_conf *em_conf; + + if (mode_conf == NULL) { + RTE_EM_HLPR_LOG_ERR("Invalid conf"); + return; + } + + if (mode_conf->mode != RTE_EVENTMODE_HELPER_PKT_TRANSFER_MODE_EVENT) + return; + + if (mode_conf->mode_params == NULL) { + RTE_EM_HLPR_LOG_ERR("Invalid mode params"); + return; + } + + /* Get eventmode conf */ + em_conf = (struct eventmode_conf *)(mode_conf->mode_params); + + /* Display user exposed operating modes */ + rte_eventmode_display_operating_mode(em_conf); + + /* Display event device conf */ + rte_eventmode_display_event_dev_conf(em_conf); + + /* Display rx adapter conf */ + rte_eventmode_display_rx_adapter_conf(em_conf); + + /* Display event-lcore link */ + rte_eventmode_display_link_conf(em_conf); +} + -- 2.7.4