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 1F46FA00C5; Mon, 6 Jul 2020 22:30:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 20E271DD49; Mon, 6 Jul 2020 22:27:45 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 1E9C31DB9D for ; Mon, 6 Jul 2020 22:27:42 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200706202741euoutp01af9a872b84ad543ad8c99b8885f32cfc~fQ7qcuM1l2799827998euoutp01E; Mon, 6 Jul 2020 20:27:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200706202741euoutp01af9a872b84ad543ad8c99b8885f32cfc~fQ7qcuM1l2799827998euoutp01E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594067261; bh=M/wyN4nGPfl8N+dBV9oGDaEn0+uBQWGX9DXEsrG01Ys=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=ZPn+8HLe1VhnXFpw61STPvdkTXxkSHZjd0Vc79ZNIyxlxz9uUmgN35BY0FFWxc181 KDO4/0w8Sd+2efrv2exDtOWgXoE6GlnxvlCdUwjm9WSJj0omKZVBHTDfZzRivZagWQ aK4qNd1M/bsiSrArZcaZwguconSQE4VfLELvVz2s= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200706202741eucas1p19051eb5d2c40625554b3ee8c38503e82~fQ7qRVshl1287412874eucas1p12; Mon, 6 Jul 2020 20:27:41 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 8E.99.05997.D39830F5; Mon, 6 Jul 2020 21:27:41 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200706202741eucas1p2fef03b23c36afc9c8b67b02cf28692a9~fQ7pzSYs83131531315eucas1p29; Mon, 6 Jul 2020 20:27:41 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200706202741eusmtrp2a51e64e677226be7c4d79cb846d9a715~fQ7psqO4_3205132051eusmtrp27; Mon, 6 Jul 2020 20:27:41 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-d2-5f03893d7e81 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 46.BF.06314.C39830F5; Mon, 6 Jul 2020 21:27:41 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706202739eusmtip14d376d517d0cd52ce59cd298c24ac063~fQ7n9Bvnr1560515605eusmtip1d; Mon, 6 Jul 2020 20:27:39 +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: Mon, 6 Jul 2020 23:26:13 +0300 Message-Id: <20200706202626.28628-24-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200706202626.28628-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSf0yUdRzH93l+3+2unh7d+ESF65oz3fJHNfeZlqRr61n9kTW3is3oSR6R 4oDuAZRcjRnhdRgFslrYkLhSQ9qJgiACw5seyvFjuOyEPCRjklb8xhBPiOO51n+vz/vzeX8/ P/aVWOWgEC+lZWTrrgwt3SFYudOBu91PPf8Zm7w2UPYE+TorgG4MeFkaLAsLVDRWwNDV6kRq bviWp9Lr+QwVl44z1HDMI9Bfg/s4GploYOhaS1Ck8sv7RJrwD4v0ec8hoOHIbZa+qZwE6qmo 5+nuuSaBRiNVHBXPXgH6ou4iUPuBcY7KzjQCFXpkGvvxqEjeawk0MXiRo2DfKZFqpntZqu+8 D1TS7gPqKpznX3hcna38gVe9zbcY9eB3vawa6PtKVA9cqmDU2pFGRh1tvSKoxXXVoHbcKGLV 40MzwlZrkvW5FD09LVd3rdn0jnVX11y/kHVC3NNX7xXzwSN4wCKh/CyGB4+AB6ySIh8DDLdO x4IpwMpWL2MGk4AX3P2sB6RFy/fD66JuRT4K2DhsMWumAfPrO5loQpCfxKC7YtG8VK4VsCES WkwskV/G7t/9XJQ5eTnerPFClO3yBhyovcObMy3D4yfa2ChbFvTzo6cEs1sChg5PLT6KcqeE vxQcihlexMiRGTB5Cd5urxNNfhTnzxxmTN6L/5wMiabZDThQ9WmsKBHr/uwWo6ux8kr0Na0x 5c0YGOrizY0fwKt/PxSV2QUsPf117BB2dBcqZrUD2y5djsmI9+/ZTFnFO20jsRu2ANb6fuO/ hGXl//eqBKiGOD3HcKbqxtMZ+u7VhuY0cjJSV+/IdJ6Eha8anGufaoSmyLt+kCVw2OxugU1W eC3XyHP6ASXWsdS+pSv4tmJ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kSyTpdOt+KR2rMvBHeF7H6//XYWIPn2R0pe7zyQWiQ7aWtqU91oW2a7jT pCuilknn2b1Sjdd6/LM/DhQG9rfb1ePjofyqgotNb7yiqjd7bRhXF1w6WDi6PKrw1Mhjr8Sj T2P6FGNntC3l72NSdyGJbre9aPVD7x17/LKmtrRdz0tSVS3t/KTfFi3KCNYpk+462b7TS45H OIZlhBCnYtfhekH1D600KTkIAwAA X-CMS-MailID: 20200706202741eucas1p2fef03b23c36afc9c8b67b02cf28692a9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200706202741eucas1p2fef03b23c36afc9c8b67b02cf28692a9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200706202741eucas1p2fef03b23c36afc9c8b67b02cf28692a9 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200706202626.28628-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v5 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