From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 035FAA04C7; Tue, 15 Sep 2020 21:09:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B1BA1C197; Tue, 15 Sep 2020 21:08:06 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 1F5E31C139 for ; Tue, 15 Sep 2020 21:08:04 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200915190803euoutp016def2f38ad0ab057b1a8bb1653aec3df~1CpZy5JiZ0517005170euoutp01a; Tue, 15 Sep 2020 19:08:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200915190803euoutp016def2f38ad0ab057b1a8bb1653aec3df~1CpZy5JiZ0517005170euoutp01a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600196883; bh=rtlr8T5Fy0EDTqnsAnewtW3pEkKYnBnvexBXMUYSoLI=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=OVingUGL8r2SUEzpwp3u8eU6gfwsGjH4PoGAE7UdXryqQwDSM7T5KEAMjey6knT/X J86w2/L+cMY9vfGPg8jwXLYWNys3sRUdzUVPuGgD5tbu8FlAzSn6a20SHj+P+jhn7K o2rSbI9IYELaBJA4L66pqU+Jk0+FE7oWFMX23F/0= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200915190803eucas1p2ecdd509582f5b5ad7b27550719e52ae4~1CpZFuSZk2574925749eucas1p25; Tue, 15 Sep 2020 19:08:03 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 45.53.06456.311116F5; Tue, 15 Sep 2020 20:08:03 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200915190802eucas1p25937243b85d9a7064895f1d46d3a3829~1CpYuhmOA2574925749eucas1p23; Tue, 15 Sep 2020 19:08:02 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200915190802eusmtrp161598a7e88ada3869eead2ccfc4185b3~1CpYtlIoO3148631486eusmtrp1M; Tue, 15 Sep 2020 19:08:02 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-5c-5f6111139322 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id C2.EB.06314.211116F5; Tue, 15 Sep 2020 20:08:02 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200915190800eusmtip23507c8fd9c2c0ed5e3a0652b71998255~1CpW7Dun11161311613eusmtip21; Tue, 15 Sep 2020 19:08:00 +0000 (GMT) From: Ivan Dyukov To: dev@dpdk.org, i.dyukov@samsung.com, v.kuramshin@samsung.com, thomas@monjalon.net, david.marchand@redhat.com, ferruh.yigit@intel.com, arybchenko@solarflare.com, wei.zhao1@intel.com, jia.guo@intel.com, beilei.xing@intel.com, qiming.yang@intel.com, wenzhuo.lu@intel.com, mb@smartsharesystems.com, stephen@networkplumber.org, nicolas.chautru@intel.com, bruce.richardson@intel.com, konstantin.ananyev@intel.com, cristian.dumitrescu@intel.com, radu.nicolau@intel.com, akhil.goyal@nxp.com, declan.doherty@intel.com, skori@marvell.com, pbhagavatula@marvell.com, jerinj@marvell.com, kirankumark@marvell.com, david.hunt@intel.com, anatoly.burakov@intel.com, xiaoyun.li@intel.com, jingjing.wu@intel.com, john.mcnamara@intel.com, jasvinder.singh@intel.com, byron.marohn@intel.com, yipeng1.wang@intel.com Date: Tue, 15 Sep 2020 22:07:03 +0300 Message-Id: <20200915190728.18143-9-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200915190728.18143-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0yTZxTG8353Guo+i9EjLpp10ahRkWjkOInOxSxfXLJs0Wg0UfzUL3gB JK14+8Mhm0AKY9CyTYVhoaJQNFhLAU29sWmrBZUmBBWFelkYoHKpTcSVKfWr2X/P+Z3nOefk zSvQOgsXL+zM2KsYMuQ0PadhGm+O3pkfN1FOWViUz2J9awXBp902GgOljzksGPqJwvv2Fehu KmfR3JNNYZF5mMKmGhOHLwI5DL4aaaLw0WUfjyf8OTyOtPTy+PPdMoK94X4aj1uDBO9WuFgc vX6Jw8FwFYNFbzsI/tLgJegpHGaw9GIzwVyTiEO1Z3i0PZqOIwEvg74HTh7PhtppdLWOESzx 1BNsy33HfvmZ9NZazUo2dx8lWSrbaenmg994qfBWBSU5XjVT0uCVDk4qarAT6fbTAlqqe/6G +06zUZO8XUnbuU8xJCzfotlhed7PZt7gDpR2QTapZE0kRgBxMRS0H2NMRCPoxBoCtrw/ebV4 TWDYejpaBAnYHeepj5GyoZPRyBkCx071cJGGTgwRqHGsjGhOnA2+/AoqYpokOjhoCnd+SMeJ 38CpWut4QBAYcSaEB5IiWCsuhTJXd/SmGVB3/hod0THiF+C/2MGr86dD58nXH2aCeE+AYJ6f UwOrwFcwxqg6Dvo9DbyqPwWfpZBRA3kEShqdvFoUE/ix7GXUtQIaBu7wkYtocQ7UX0pQ8Uro yv2VimAQJ8D9lxMjmB6X5sbfaRVrIT9Xp7r1cO2WP4oBxv6NVbEEV4+YOPWtLhMItvayxWTG if93WQmxkylKljE9VTEmZij7FxjldGNWRuqCbXvSL5Dxr+r7zzPSTEL+rS1EFIg+Vmvt2pKi Y+V9xoPpLQQEWj9J+1Wbb7NOu10+eEgx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AfKU0iWkOkjEhGiN/lucjeMP/OULi4BqHPDJ+Ht6S+ujng5msANvq1Hpj /OS6poaYcZV77FAirTr67eysZ8aA+8X88xe8R7OCZpYXmHUliqJN3965ocBCm39MdUlC5K5D j7Nc5PuKS/1PBxWPj7aei8z3OXO7ev2N1iMPoq15bN/XsuD2A04Vtv1u/X5bq1apIyJJ3967 nYE503JKCNWwW0iDoPkL3ojA8QcDAAA= X-CMS-MailID: 20200915190802eucas1p25937243b85d9a7064895f1d46d3a3829 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200915190802eucas1p25937243b85d9a7064895f1d46d3a3829 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200915190802eucas1p25937243b85d9a7064895f1d46d3a3829 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200915190728.18143-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v11 08/24] examples/bbdev_app: new link status print format X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: i.dyukov@samsung.com List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/bbdev_app/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c index 68a46050c..fe9d8e0a5 100644 --- a/examples/bbdev_app/main.c +++ b/examples/bbdev_app/main.c @@ -326,8 +326,10 @@ check_port_link_status(uint16_t port_id) const char *dp = (link.link_duplex == ETH_LINK_FULL_DUPLEX) ? "full-duplex" : "half-duplex"; - printf("\nPort %u Link Up - speed %u Mbps - %s\n", - port_id, link.link_speed, dp); + printf("\nPort %u Link Up - speed %s Mbps - %s\n", + port_id, + rte_eth_link_speed_to_str(link.link_speed), + dp); return 0; } printf("."); -- 2.17.1