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 D047AA04C7; Tue, 15 Sep 2020 21:09:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD38E1C1A8; Tue, 15 Sep 2020 21:08:13 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id A1B6B1C1A6 for ; Tue, 15 Sep 2020 21:08:12 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200915190812euoutp0154beed8213d2c5ee8810ca0a4fb21ee9~1CphvzBF90530105301euoutp01W; Tue, 15 Sep 2020 19:08:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200915190812euoutp0154beed8213d2c5ee8810ca0a4fb21ee9~1CphvzBF90530105301euoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600196892; bh=FVrECeLodo2mEpIyUJqIc0xB0igSGcYvhVqWSW4kZ3c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=iOx752bQM+RMEKicaf/2RVizdrDAe50vPN658WLlDTsG777sjrcazl1Q4afoYcTnj oVPp3YUm2pKh1UiAd778TbTS0w1z9GFgfv5jh7RNZBi5q80s75X3WH0H7r7Zr0Vu9/ rPvSQfc3zbbedud3QDseCZqvNUbr+BUeXjAysH8U= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200915190811eucas1p13c4668dddf28d796dffc5d60d55bdb32~1CphLatBL0048000480eucas1p1X; Tue, 15 Sep 2020 19:08:11 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id D9.53.06456.B11116F5; Tue, 15 Sep 2020 20:08:11 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200915190810eucas1p2a781b5404bdbd5b3a94b7c57f429a39d~1CpgFdRIE1274112741eucas1p2x; Tue, 15 Sep 2020 19:08:10 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200915190810eusmtrp18258076458f313e5f6c085add4b1e139~1CpgEt3wz2872428724eusmtrp1X; Tue, 15 Sep 2020 19:08:10 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-68-5f61111b3efa Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 47.EB.06314.A11116F5; Tue, 15 Sep 2020 20:08:10 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200915190808eusmtip2b576af5cf356d77e36d1200b9689817d~1CpeTJRi11755217552eusmtip2K; Tue, 15 Sep 2020 19:08:08 +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:06 +0300 Message-Id: <20200915190728.18143-12-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: H4sIAAAAAAAAA0VSe0xTVxjPuW+qNddqwhecoE1c1GwKcSafuvja/rhGdCZOtywq3s0bYKOo LSguGhs1KC0WBMUMtVSRgYA8FCgiqDQO1FJQEhQFkTASolt5CWY4GGu5Nf73/Z7fOSdHoHWZ XIgQG5+gGOPlOD2nYaoaxpo/nzNTjgqvsX6GpU12gj1duTR2n33JoXXwBIXthWuw1nmRxYxX ZgptGUMUOgssHP7dfYzB/mEnhZ11bh6zW4/xOOzq4/F0ywWCfeNvaPzN8ZZgi72SxbH6Gg4H xq8waHvfRjCt4gHBxtQhBs/eqiaYbBFx8Fo+j7mdoTjc/YBB9/ObPBaPPqGxsmmC4JnGUoKe 5El27XzpvSOPlXJrX1NS5uUntNTwPIuXUh/aKam8v5qSBu60cZKtopBIj3qstFTU+w+3RfOD 5ss9SlzsAcW4dPVuTUxfR9i+diHpXEomayZpvIUECSB+ARM9g75ZI+jEAgKurPsBMELg5ash SgVvCdSVFHMfIllPPUQV8gmkWW0BMEqg2GNj/C5OXAjuU/ap+GyxnAPn+DPKL8wSv4FLl7pp /8yIC+Bux31fQBC04kq45likbgiDorJ7U5YgH916q23qsDoxFJ7ljEx1gvhYgPZHbtafBfFr qLRsUrOz4E1jReByn4A7M5VR/ScJnKm6yasgncDxC96Aaw1U/NXM+4tocRGU1ixV6XXgue0l av8MaPfO9NO0b8yoOk+rtBZOJetUtx7uPWwN0AAT/05XaQkGzWWB56kj4M3w0ukkLPvjLgch hSRYSTQZohVTRLxycIlJNpgS46OX/LTXcIP4vqr7v8bhajLa+qOLiALRT9c6OnZH6Vj5gOmQ wUVAoPWztes97l067R750K+KcW+UMTFOMbnIHIHRB2uXXXm9UydGywnKL4qyT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z2GUqyQTnd30PcycNK9KMIlNlisZ ESGprasXOg91RYuSxgM8/PeX6cYV9NCmqq4hl6Qvddm7l9JKRBXFvSfz97Hn1u+NitffOR6x 2RM15BzQuri2zmtGhOYhY3TW3cXitbJqb0tierP3HV2bz8VTfoebMiKpLTW7OK/I8ntp7gU2 m8q3CJMSfIJSvhXX8Mq/RIeVEQcDAAA= X-CMS-MailID: 20200915190810eucas1p2a781b5404bdbd5b3a94b7c57f429a39d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200915190810eucas1p2a781b5404bdbd5b3a94b7c57f429a39d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200915190810eucas1p2a781b5404bdbd5b3a94b7c57f429a39d References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200915190728.18143-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v11 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