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 7BC04A0528; Sat, 11 Jul 2020 12:47:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B875F1DB2C; Sat, 11 Jul 2020 12:45:29 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 360FE1DB1C for ; Sat, 11 Jul 2020 12:45:28 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200711104528euoutp02878a5ec791e8e642b76b46f3b58f403f~grNvHmMdf1781817818euoutp02e; Sat, 11 Jul 2020 10:45:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200711104528euoutp02878a5ec791e8e642b76b46f3b58f403f~grNvHmMdf1781817818euoutp02e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594464328; bh=S9//0LVQ6riyKwShCCIn8dhf7myi4b0icSVIJbKlCok=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=LzaDVKlZlGPDqSY623JVZAVkhPhleDNYM/7Z/J39KPitt4MaBL0JZ4V7XjZqzCCF+ SAXeXnVYUYOzSFPhBP0BXml+w0J700Po9+e3E0IRUQ55Ds2u1SQYXvvF8H+GXcXEMr IpX6OfhaYEeyqPubkwFQhu0ahLex3Dvhh2Z4mcoQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200711104527eucas1p28ce8eadf240f54e32331ae8a59fd1cc6~grNu260lV2330423304eucas1p2Q; Sat, 11 Jul 2020 10:45:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 07.2F.05997.748990F5; Sat, 11 Jul 2020 11:45:27 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200711104527eucas1p1a83283d0ff1d34ffcd2d57f87e9d85f0~grNuKiqx31619116191eucas1p11; Sat, 11 Jul 2020 10:45:27 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200711104526eusmtrp28b8335e3933b4fb1fa27f7371f549c52~grNuJtfj21628816288eusmtrp2e; Sat, 11 Jul 2020 10:45:26 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-74-5f099847ad41 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 92.27.06314.648990F5; Sat, 11 Jul 2020 11:45:26 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200711104525eusmtip1d2322e801f1b3ae2f53f89621a252b21~grNsY24w20946309463eusmtip1_; Sat, 11 Jul 2020 10:45:25 +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: Sat, 11 Jul 2020 13:44:09 +0300 Message-Id: <20200711104414.15422-23-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200711104414.15422-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSfUwTdxjH87u73h0NXc5K9IksmNUYXxJkvix7YhbdFqMXjYl/aTRBPOUE Ii/aE8W5TEKQkIIwmENFU2rRqEWtYKXAkDn+EGgRxIggImucBHlRpNBNa1FLr7r/vs/n+31e 8suPp/W/s/P4lPSDsjFdSjWwWqb27tuO2A2nIxK+brUvRHu7meCzgUoaPSefsljwOpfCXtta bHSe02Dp39kUFpVOUOi8bGJxzJPD4Cuvk8L+224Oyx/kcOhtHuLwROdZgkOBERrPWCYJdppv afDtXw0sjgesDBb5uwkWO1oJthROMHiyvo5gnknA11cucVjZH4NeTyuD7sc3Obzq66LxVvs0 wZIWO8F7eR80338l+i0XNWJl4zAl/na+ixbvPi7jxMI2MyVWv6qjxPGmblYsctiI6HpWQItV z9+wW7Q7tN8lyqkph2Rj3Jpd2uQX7z30/houK6evg80mhayJRPAgrIJBWzllIlpeL1wmMPHv WVotpgiYS4ZZtZgMOsO+zy2jL94Q1bhE4H5ZcTjlI/DkUXEoxQqLwZ1vDg2OEqpZcAZ6qBlj trARKnLd9IxmhIXw5/RoqEEnrIZHjeeIumI+VN24E8pEBPn0+P2Q1gsx0FMxFRoKQjsPY4P1 4ZvWQc47P6Xq2TDS4uBU/SV8qK8I86PwX00PpzbnExiwHg+H1oJjtCOoeZ4WloC9IU7FP8BA wXN6BoPwBfS+nDWD6aAsrT0VxjrIz9OraQPcaXsQxgDT7yJVLEKu3c2p73ObwNP+WvpXMr/8 /10WQmxkrpyppCXJyop0+fAyRUpTMtOTlu3JSKshwc/qft8yVUcaArubicATQ6TOIvEJeo10 SDmS1kyApw1Ruh/vuXfqdYnSkZ9kY0aCMTNVVppJNM8Y5upWW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iv8XwML/znMErmloAuThzzGgl+bBssKz4hrYoM/Fx+ rTEXuQw92/xwSX449U9f+Mm0TO/v/iHNhckpNv3P0IUjYbV+cf3tr/08Ntgmb7vXOc3LHxxN FmKcy4XDua6K0dqZjjM6zpQk+57ukqdtT9l507Uywrrjal+bdWnc0xL4omn6NO29Vf8jc0gV v1tFiJGcxhMXRO4flBoKdAkDAAA= X-CMS-MailID: 20200711104527eucas1p1a83283d0ff1d34ffcd2d57f87e9d85f0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200711104527eucas1p1a83283d0ff1d34ffcd2d57f87e9d85f0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200711104527eucas1p1a83283d0ff1d34ffcd2d57f87e9d85f0 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200711104414.15422-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v8 22/24] examples/qos_sched: 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/qos_sched/init.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index 9626c15b8..4bb975fc9 100644 --- a/examples/qos_sched/init.c +++ b/examples/qos_sched/init.c @@ -160,14 +160,8 @@ app_init_port(uint16_t portid, struct rte_mempool *mp) "rte_eth_link_get: err=%d, port=%u: %s\n", ret, portid, rte_strerror(-ret)); - if (link.link_status) { - printf(" Link Up - speed %u Mbps - %s\n", - (uint32_t) link.link_speed, - (link.link_duplex == ETH_LINK_FULL_DUPLEX) ? - ("full-duplex") : ("half-duplex")); - } else { - printf(" Link Down\n"); - } + rte_eth_link_printf(NULL, &link); + ret = rte_eth_promiscuous_enable(portid); if (ret != 0) rte_exit(EXIT_FAILURE, -- 2.17.1