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 A450BA0526; Fri, 10 Jul 2020 09:06:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B7AF11DD29; Fri, 10 Jul 2020 09:03:41 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id C413F1DAAE for ; Fri, 10 Jul 2020 09:03:37 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200710070337euoutp02c7d301f62632b1ad4a6467760e30f81d~gUiwhwcz71730917309euoutp02n; Fri, 10 Jul 2020 07:03:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200710070337euoutp02c7d301f62632b1ad4a6467760e30f81d~gUiwhwcz71730917309euoutp02n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594364617; bh=M/wyN4nGPfl8N+dBV9oGDaEn0+uBQWGX9DXEsrG01Ys=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=F9Mp/kDSlQb+DHE9ickLuDmFNd2p2EANijNzqmhkflZgAJ0bdPgUN2zvHtNzI+wQ+ lCA1rRwzzpuLYEBU6E5KpF+3VPR/yM39jSLlzhk83qTP+yA/rtH5eH2TU0dmj4ZZdc 19TZYFDDBa8WTsFwU8+i4DrJAESk8jIr/h/yhWbw= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200710070337eucas1p23c295a571c7498959dd2d8ef43268b7f~gUiwPV0uj1909319093eucas1p2D; Fri, 10 Jul 2020 07:03:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 7F.51.06318.9C2180F5; Fri, 10 Jul 2020 08:03:37 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200710070336eucas1p1cdc02c20c4bb753ad683359f252c7209~gUiv1TN9T1630516305eucas1p1E; Fri, 10 Jul 2020 07:03:36 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200710070336eusmtrp190dae747f6ce18bdd927a1f6c6a40f44~gUiv0Uyfs1176811768eusmtrp1-; Fri, 10 Jul 2020 07:03:36 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-00-5f0812c9f989 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 76.24.06017.8C2180F5; Fri, 10 Jul 2020 08:03:36 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200710070334eusmtip198a6228937adeb29f0a017ab7f6f636e~gUiuELK7S1592215922eusmtip1a; Fri, 10 Jul 2020 07:03: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: Fri, 10 Jul 2020 10:02:21 +0300 Message-Id: <20200710070226.6045-24-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710070226.6045-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0wTaRSG881MZ4bGmrFiPBGV2ERXd7Oi0egxGm/xx0QT9Qfxh0agu46A 0Nq04jUqGsCmFFQkXsBUpC4oNYuXVtAAQmMELJdARESkIqhVVBCUiFxtGYz/nvOe9/3OycnH 0+pMdgYfq98nGfXaeA2rZO49/lH3d7Waj1xUV6HEwhobwQ6vncb2zDYWU78kUfi8YA2WFF1W YMarRArTM3opLLpuYfFT+0kGu/uKKHxZ6uEwq/Ekh31uH4dp9dkEfcNdNF7K+Uqw3uZS4I+K Byz2DOcymD7YRPC0s4pgpbWXwcz7xQRTLAJ+uZHPof3lbOxrr2LQ03KXw5v9DTS6akYInq0s JFibMqZYO0cczPlPIdpLPlDiuasNtPi45TwnWqttlHi7u5gSe8qaWDHdWUDEJx2ptOh4M8Bu VW5Xrtolxcful4xhq6OUMbWjL1jDLe5gi8vOJRILayFBPAhLIa/ulJ+VvFq4TqC+qYyTi28E kvIzuIBLLXwl0NM971fC4e5gZFM+gfJWK5GLfn/iVTcVcLHCfPCYbVSgESzcZqFouHm8MVXY CK2FeXSAGWEujLY+HV9EJayAQdtrWh4RCo5b5eMc5NeTLbkTa8yG5ivfxh8F4REPveYBSg5s gIKkEk7mqdBV6ZzgmeA5Z2VkPgLf7zRzcthMwJubPGFaA86PdX7meVpYAIUPwmR5HWS9e6YI yCBMhuefpwRk2o8Z9y7QsqwCc4padmugvLpxQgYYGZokyyI87Kyn5PuUEGjKdjFnSGjW71k5 hBSQ6VKCSRctmZbopQMLTVqdKUEfvfDfvbo7xP9XPaOV/cWkbPgfNxF4opmkihphI9UK7X7T IZ2bAE9rglXraz0RatUu7aHDknFvpDEhX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SyTpNYLRwUhXdD9z2G0s1c2Mk2y9evNGyNiPH0rqne1NcWUdkd+ctpD 92QubbIPZ4lX+n3yxo7cOu/hWj1u089P4bvdr+ekeM+V+jd27P11s3Zw3UccJ1+ePfHTLfqz PYBNLauLbkvwXXQZ+dxYHn6iI679VGR0a3FI8/Zhs1+uGTMcNQ1sVy3Edtk+DJ+qcY2XEWKy WrEN14nqvxw6IdkHAwAA X-CMS-MailID: 20200710070336eucas1p1cdc02c20c4bb753ad683359f252c7209 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200710070336eucas1p1cdc02c20c4bb753ad683359f252c7209 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200710070336eucas1p1cdc02c20c4bb753ad683359f252c7209 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200710070226.6045-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v7 23/25] 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_strf 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