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 79642A04C8; Fri, 18 Sep 2020 19:54:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5ADE71DB06; Fri, 18 Sep 2020 19:54:58 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 15B011DB05 for ; Fri, 18 Sep 2020 19:54:56 +0200 (CEST) IronPort-SDR: /60Vt8NGzHg+Ylk0JZNvt4Eookkw+ZFGcR7wHuRxrBzsr7yZHBnToygrpun6Qjad+Hkv9NAkeT E+hjJRkGtdIw== X-IronPort-AV: E=McAfee;i="6000,8403,9748"; a="159313300" X-IronPort-AV: E=Sophos;i="5.77,274,1596524400"; d="scan'208";a="159313300" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2020 10:54:54 -0700 IronPort-SDR: Kf/6MhQbhYi3UARzTQZ5t7mZjDfx7XrfP1rK6GpuWD3WXcuus77rwGsF2xP5kMHvrj8O2wGJyZ 53K/Pgalbpfg== X-IronPort-AV: E=Sophos;i="5.77,274,1596524400"; d="scan'208";a="484297879" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.227.248]) ([10.213.227.248]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2020 10:54:48 -0700 To: i.dyukov@samsung.com, dev@dpdk.org, v.kuramshin@samsung.com, thomas@monjalon.net, david.marchand@redhat.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 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200915190728.18143-1-i.dyukov@samsung.com> <20200915190728.18143-12-i.dyukov@samsung.com> From: Ferruh Yigit Message-ID: <86682d33-1e94-df2e-de14-d67ab4b6ea1e@intel.com> Date: Fri, 18 Sep 2020 18:54:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <20200915190728.18143-12-i.dyukov@samsung.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [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 List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/15/2020 8:07 PM, Ivan Dyukov wrote: > 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" Same here, " Mbps" can be dropped. > "\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, >