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 BDFE1A04B5; Thu, 10 Sep 2020 21:35:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80EE31C190; Thu, 10 Sep 2020 21:34:49 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id A32871C190 for ; Thu, 10 Sep 2020 21:34:47 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200910193447euoutp02d0b5db8cc1f5e3ec37186b1809f88c8d~zgyT25v350501005010euoutp02W; Thu, 10 Sep 2020 19:34:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200910193447euoutp02d0b5db8cc1f5e3ec37186b1809f88c8d~zgyT25v350501005010euoutp02W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599766487; bh=FVrECeLodo2mEpIyUJqIc0xB0igSGcYvhVqWSW4kZ3c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=oa4Wyi4OA2fsM4CFAx3e5FWtdgUUX5xCp8/p2TUiIvrCFKEpB8+Fl2E0h4ZHcbPu0 JkDQvSvM48QZp5Mc+G8k4We55z1omKXicRgtURwO78q8i6DgQZ4WyXMOLFKTAx2eVT W5Et4okcdn4fkCxUFs10yQw+aSobZrPeMCcfUlfo= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200910193446eucas1p2074223af8dcf7bbc002935aea6f5556b~zgyS5qGe02619226192eucas1p2e; Thu, 10 Sep 2020 19:34:46 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id CE.D5.05997.6DF7A5F5; Thu, 10 Sep 2020 20:34:46 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200910193445eucas1p2f16b04c5940d3141916b69ab97392a41~zgyRy4gG22618526185eucas1p2e; Thu, 10 Sep 2020 19:34:45 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200910193445eusmtrp1103fdf91c4243bad2dd7ca0eba18024d~zgyRu4FSD3165331653eusmtrp12; Thu, 10 Sep 2020 19:34:45 +0000 (GMT) X-AuditID: cbfec7f4-65dff7000000176d-ae-5f5a7fd632fa Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F3.9A.06017.4DF7A5F5; Thu, 10 Sep 2020 20:34:45 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200910193443eusmtip264f2f99b283f6ee9801f62cf7709cf04~zgyP8cAG01654016540eusmtip2D; Thu, 10 Sep 2020 19:34:43 +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:44 +0300 Message-Id: <20200910193400.15326-12-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: H4sIAAAAAAAAA0VSWUwTURTNm5nODJWScTD64sLSaKIYcY/XJYLGj/FDJXxIRAGrTKARirbg 9iNxQTZBwB1TWSRgMQEEyiIaxChgUQIChVgVFURQQBAMaFFbpsS/c8859557Xx5L8un0fFat iRa1GlWEkpZTxueTzSs6zgSGrCoonQtFTXoEH9/lktB95S0NSd/PE9Bp8IGaitsySH8fS0BK +ggBFQWJNHzrPkvB0GgFAZZHJgZutZ5lYLSuj4FLzZkI+qwDJNzM+oGgWV8ug8kn1TQMW3Mo SPnVjiC1rAFBffIIBVeqKhHEJXLw/V4+A7kWNxjtbqDA1FXKwP3xFhLKm6YQpNUXIXgZ91fm 6yn8ysqTCbk1/YSQkd1CCs+7rjFCcqOeEEqGKglh+HE7LaSUGZDw4mMSKRT2TNB+8kD5llAx Qn1c1K7celAe3vfG/Wgne/JqQoYsFqUyiciJxdw6nD3VhRKRnOW5AoTPZVtpu8BzYwgnPfSW hB8IF4xYiJmO0swOWhLyEc63thJSMY6wOW2ctLtobik2xeunhTlcCY0rrObpdlduDzZcyJPZ McUtwQl51ulFFNwmfMFwXyZFuOPC4lrbIJZ1svEfLEHSSm7YfGdseibmmlic87uYlvw7cFNV seMgVzxQX+bAC7EpI5mSGi4inGYsZaTisu3SzEGHyweXfX3F2NNIbhkuql5ph5jbht9/kUvQ BXcOzrabSRtMN14nJVqB4+N4aYYS1za2OmiMp347S7SADYOvHK/7COEnvSbmMnK/9T8qCyED mifG6CLDRN0ajXjCW6eK1MVowrwPR0U+QLafavpTP1aJqq2H6hDHIqWzonZTYAgvUx3XnYqs Q5gllXMU21+agnlFqOrUaVEbFaKNiRB1dWgBSynnKdbm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89htIdvBsqKrKEtiz8fqnbcWN7Ox27Y zm3M8UpfrRJ2ODobo9SZnb7dxZVbxBHjO6I793Hh5Q+phjrRvtee5TPvhvWED4zErR0NnCIm auMT/K5tfiDrSbcdLlAcSJbt+v5aG9Pg73dek7HImWXsseTnbb45prJbIuLEFo7fv/HUtrSg +Q/khJigVizD9aL6Lx8hcMMHAwAA X-CMS-MailID: 20200910193445eucas1p2f16b04c5940d3141916b69ab97392a41 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200910193445eucas1p2f16b04c5940d3141916b69ab97392a41 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200910193445eucas1p2f16b04c5940d3141916b69ab97392a41 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200910193400.15326-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v10 11/24] examples/ip_pipeline: 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_speed_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ip_pipeline/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index d79699e2e..cf3d7d462 100644 --- a/examples/ip_pipeline/cli.c +++ b/examples/ip_pipeline/cli.c @@ -273,7 +273,7 @@ print_link_info(struct link *link, char *out, size_t out_size) "\n" "%s: flags=<%s> mtu %u\n" "\tether %02X:%02X:%02X:%02X:%02X:%02X rxqueues %u txqueues %u\n" - "\tport# %u speed %u Mbps\n" + "\tport# %u speed %s Mbps\n" "\tRX packets %" PRIu64" bytes %" PRIu64"\n" "\tRX errors %" PRIu64" missed %" PRIu64" no-mbuf %" PRIu64"\n" "\tTX packets %" PRIu64" bytes %" PRIu64"\n" @@ -287,7 +287,7 @@ print_link_info(struct link *link, char *out, size_t out_size) link->n_rxq, link->n_txq, link->port_id, - eth_link.link_speed, + rte_eth_link_speed_to_str(eth_link.link_speed), stats.ipackets, stats.ibytes, stats.ierrors, -- 2.17.1