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 2C481A04B5; Thu, 10 Sep 2020 21:35:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4060D1C127; Thu, 10 Sep 2020 21:34:40 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 58D8F1C126 for ; Thu, 10 Sep 2020 21:34:38 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200910193438euoutp02b9dc0bb998ac182ca7f47b672f59de53~zgyLMhM4Z0499204992euoutp02Z; Thu, 10 Sep 2020 19:34:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200910193438euoutp02b9dc0bb998ac182ca7f47b672f59de53~zgyLMhM4Z0499204992euoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599766478; bh=rtlr8T5Fy0EDTqnsAnewtW3pEkKYnBnvexBXMUYSoLI=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=VGkxeOaZKl+AT8LcccJxfMEe+wNtp1mzdbf3YK9bSbfptUq1unecH4rqjOt1WZv0q 9RhvUTjaDQIjKcBsSmxCE6zIfVXf8nLCE0rbQghZBjnk0wL27xm+c4Wb5HWur4BhBv OvXVRfAZRLRyFqdrVTeeJErDp2x7NfEdjSvX5/rc= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200910193437eucas1p16fe06c906b8366578656ef07052cd790~zgyKeKe-X0487904879eucas1p1q; Thu, 10 Sep 2020 19:34:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 6F.0D.06456.DCF7A5F5; Thu, 10 Sep 2020 20:34:37 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200910193436eucas1p13dd91d9668b6bd61dd3fd734dc51fae3~zgyJr23rL2936129361eucas1p1U; Thu, 10 Sep 2020 19:34:36 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200910193436eusmtrp26b24309f2cc886ff0556d227e87054c8~zgyJrDpra1027210272eusmtrp2z; Thu, 10 Sep 2020 19:34:36 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-96-5f5a7fcda863 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id CD.09.06314.CCF7A5F5; Thu, 10 Sep 2020 20:34:36 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200910193434eusmtip20157f5465c4673d422c05c0945976c83~zgyH9Thek1654016540eusmtip2-; Thu, 10 Sep 2020 19:34:34 +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: Thu, 10 Sep 2020 22:33:41 +0300 Message-Id: <20200910193400.15326-9-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910193400.15326-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0xTZxjG8557K2XHovKqRLcmGmcCzkyTb4bIZlw42bJsi5dEEsVOTtAI aHoEhX8kahBbBLmMxQsFygwKmoKUFg0qNkq1BRlEhhcUNF6QCcotQQQZx9Nl/z3P8/6+7/ny 5hNoYz63QNiVsk+2pJiTTJyecTe/vxvZejAu/qvWvlDibLEDefakgia9RY85Ynt3hCL3q2JI o+cMSwp6MimSWzBEEc85K0fe9B5iyOCwhyLdVwM8OdVxiCfD3lc8Od52GsiryX6anCwbAdJm r2fJ+xtXOPJ20sGQ3IlOIHmu20B8OUMMKbrcACTLKpJ35yt5UtG9iAz33mZI4EEdTy6MtdOk vmUKSL7PCaQ1a5r99gtpouwsK1U0vqakwvJ2Wmp+UMxLOXfslFQ72EBJb691clKuqwok/zMb LVU/H+d+0cfpoxPkpF1psmXF2u36nYXP+9m9t7gDRY8wE8pZKwgCiquwuzLWCnrBKJ4DvOHI ZjUzCuj+2AZW0M2YEUD/8UhVqwfGr08wGlQJ6H3cFzRjgBenB3iV4sRlGMi2U+pgjljLoWey i1L7wsQfsf96usow4hK0Oc98ajCI3+DALT+tNSzG6pomWsV14hp82r1Ve8Qi7Cod/XQlii0C /vW0kdL49TjUV8JqOgz7fS5e0xE4fbk0eOAoYL67jtfMCcDDpweCVAy6/rnLq220+CU6r6zQ 4u/wxe/ZjLajULw/MFuN6RlZ4P6D1mIDZmcZNdqETXc6gjHi1IcQLZaw8FpPcKFXAWtyrNwJ WHzq/64ygCoIl1OV5ERZWZki749SzMlKakpi1I49yZdg5qMGPvqGG2Cs4zcviAKYQgxNa+Li jaw5TUlP9gIKtGmOYV1rYJvRkGBOz5Ate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UmQMSlqI5/O83re8D9HSPzkZlQ8aVt50Hu2feMx17ke4rfn 6KVaSs96W7Wah82jr4LS4vr7srU5jhTZZMHgXlmNbs6WdNhql8bvadwesOqZLdKtYm+2bnEn /Fw3rG7VyxPjVDnB8qFild1vUUj7+3uX7ObNt8oT3y075NJ4KjR1da4cU9C8Y0HSHSFFdOGu 5S0KSkhVK1eRBkH9FxHzKkoGAwAA X-CMS-MailID: 20200910193436eucas1p13dd91d9668b6bd61dd3fd734dc51fae3 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200910193436eucas1p13dd91d9668b6bd61dd3fd734dc51fae3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200910193436eucas1p13dd91d9668b6bd61dd3fd734dc51fae3 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200910193400.15326-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v10 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