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 5199BA00C5; Mon, 6 Jul 2020 22:41:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EBF511DDEC; Mon, 6 Jul 2020 22:39:04 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 682051DD01 for ; Mon, 6 Jul 2020 22:38:55 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200706203855euoutp025d0ec8630d1f93c18785d21918f4ca9b~fRFdjEvS92313123131euoutp02t; Mon, 6 Jul 2020 20:38:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200706203855euoutp025d0ec8630d1f93c18785d21918f4ca9b~fRFdjEvS92313123131euoutp02t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594067935; bh=M/wyN4nGPfl8N+dBV9oGDaEn0+uBQWGX9DXEsrG01Ys=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=RyDm8b+kNFQLbvMPSosjLDB1gvDJB9xFCkXTLs7Wn+E9HgEBhjsS1YLWXbym+MZ5g dTss1t4Z/TwMyPfcAWqNIq4ypUswoKvOTU35srvX31T52QxCOsitIM7MuZMPBq0ef1 aosFjeojNFYkBq5E5zJ6oafY5tWSCYANZIvTIRP8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200706203854eucas1p23eddec3a375a4389d815861516218ebb~fRFdQpVDB2127421274eucas1p28; Mon, 6 Jul 2020 20:38:54 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id B3.D6.06318.EDB830F5; Mon, 6 Jul 2020 21:38:54 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200706203854eucas1p190bd0852cecbbede8423d6efa7bf554a~fRFc4AaD02656126561eucas1p1G; Mon, 6 Jul 2020 20:38:54 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200706203854eusmtrp165777c9fe2db3d89f9ea81e30349e953~fRFc3LFW62965829658eusmtrp1x; Mon, 6 Jul 2020 20:38:54 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-56-5f038bded397 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 06.EF.06314.EDB830F5; Mon, 6 Jul 2020 21:38:54 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706203852eusmtip1a90eb64fd185418d371ca8a43ec12839~fRFbF1xrV1500415004eusmtip12; Mon, 6 Jul 2020 20:38:52 +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:37:37 +0300 Message-Id: <20200706203743.29416-24-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200706203743.29416-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0hTYRjG+c45O+e4mp1W5IfdaBFUlBUFvURXCzpGUX8EQZG68jQl3WJH V1bUihKbS0vtpmm2UTPNLJu3UquRTdu8dBHTzEYFdre8YKVWm2fRf8/7vL/3fV4+PpZUZtDB bIw2XtBr1bEqWk6VPfrZOLczhYyYbzMvgGJ3LoI3nVYSPJmvaEj5doyAFwUroKr8ogzSXxsJ SE3/TkB5vomGz56jFHztKSego9rFQNbTowz0OLoYONmUjaBr6CMJF/J6ETTllsrg54M7NHQP WShI/dWCIM1eh8Bp/k5BZmUFgiQTB9+u2RiwdkyBHk8dBa622wxc739CQql7GMFpZzGChqQ/ spXT+F95V2S8teoDwWdcfkLyj9rOMry5Ppfgb32tIPjumhaaT7UXIP7xmxSSL3z3g94k3ypf GiXExhgE/bzlkfLoht/t9J6bzL62UitjRCbahAJYzC3Cjx/aCBOSs0ouH+G7J7toqehDuPZe D+mjlFwvwsPZy/9NWDo6SQmyeSfa6/1FP8LGVA/jo2huJnYl547sHc/donH5UCvha4zj1uFL 7ecpn6a4GXig6uXIIQpuCW5prkBSxFRcePO+dyvLBnj9nNpg6YopuPVS38hOzDWzuC+njpL4 NbgsM4WU9Dj80WlnJD0JuzLMfuYAHihpZaThZIQ7Lcf90Aps/9TI+MJIbhYuvjNPslfhxgvd IzdgLhC/+DLWZ5NemV52zm8rcHKSUqJV+H79U7+N8fDgaMnm8Z9si/95qhG+OvCMPoWmZv3P ykOoAAUJCWKcRhAXaoW9IaI6TkzQakJ26uJKkPerun47+ytQzdAOB+JYpBqt8LBkhFKmNoiJ cQ6EWVI1XhHa4ApXKqLUifsFvS5CnxAriA40kaVUQYqFlg/blZxGHS/sFo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ZV7zvw8T2zkno0vKpJCUiGBPj3S/wuTO9Sqd 2+83x68VNdv3JOW9yAy/6feGemxcc1g4O00EdM1GSnbnvyworH64Zyo02FBz5gunvd4buNf/ +dLMp6rKRYe2hWNflQeEYVdTuCShK8Kgt5Rc/DzhXnAiJXQuZyDWP4wLfhA13WcXMk42OV3I vDO4IiOEaE6xH9cI3D+SQhHKBwMAAA== X-CMS-MailID: 20200706203854eucas1p190bd0852cecbbede8423d6efa7bf554a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200706203854eucas1p190bd0852cecbbede8423d6efa7bf554a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200706203854eucas1p190bd0852cecbbede8423d6efa7bf554a References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200706203743.29416-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v6 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