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 EC776A00BE; Mon, 27 Apr 2020 11:58:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6A1B61D15A; Mon, 27 Apr 2020 11:58:12 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 5953A1D149 for ; Mon, 27 Apr 2020 11:58:00 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200427095800euoutp0116cd35a1354f904d7ee56a94e6b1dc6e~JpL4iNuk32278222782euoutp01E for ; Mon, 27 Apr 2020 09:58:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200427095800euoutp0116cd35a1354f904d7ee56a94e6b1dc6e~JpL4iNuk32278222782euoutp01E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587981480; bh=24vhzuYrFyoFTzA7/ptzh82/T81JJiCQy0buwIrHJao=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=pSA832JcCFuN8OCHOfmuJWzLlGPH4se78Qqrx5t/U4xC8/l5KGkpZyMI5f6U0yooT uO3g4BmOh0sPJZEt/TE+XlZomoZYSQIX3XSPCwxENNPun2bj78R3UiBl+I7ed91Q8l ffpTq7LIulVUUYWaQWKLNFc15Ri112YZzApMwtik= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200427095759eucas1p1bd5de413dbf0cc96727b7439613306d8~JpL4DFIDf3113231132eucas1p1p; Mon, 27 Apr 2020 09:57:59 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D8.B8.60698.7ACA6AE5; Mon, 27 Apr 2020 10:57:59 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200427095759eucas1p146d501188af3d1215707e664672076bf~JpL3wdSXz2367923679eucas1p1H; Mon, 27 Apr 2020 09:57:59 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200427095759eusmtrp1a874e04d135a5a4c5f822d63e76eff62~JpL3vmd0v2282722827eusmtrp1B; Mon, 27 Apr 2020 09:57:59 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-a9-5ea6aca7926c Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 31.AF.07950.7ACA6AE5; Mon, 27 Apr 2020 10:57:59 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200427095758eusmtip13146ef0e97362d0a581d46caa40cc53c~JpL3PXU021820118201eusmtip1C; Mon, 27 Apr 2020 09:57:58 +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 Date: Mon, 27 Apr 2020 12:57:27 +0300 Message-Id: <20200427095737.11082-6-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200427095737.11082-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsWy7djP87rL1yyLM+j6oGzxYMpdNovtK7rY LN592s5kcWfvaXaLWZea2C0+PTjBYnH65mZ2B3aPXwuWsnos3vOSyePYzWnsHu/3XWXz6Nuy itFj9ZMfbAFsUVw2Kak5mWWpRfp2CVwZq049Yit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fF66mh0kwSagIXG6Yx5Ys4jAOkaJjzPfgHUICzhKTN75H2wD i4CqxN25e8HivAKWEkcOvoTaLC+xesMBZpBlnAJWEs/+J4OEhQTCJS5e+Q0WFhJQlvh8NWEC I98CRoZVjCKppcW56bnFRnrFibnFpXnpesn5uZsYgcG77djPLTsYu94FH2IU4GBU4uHl2L40 Tog1say4MvcQowQHs5II76OMZXFCvCmJlVWpRfnxRaU5qcWHGE2BzpvILCWanA+MrLySeENT Q3MLS0NzY3NjMwslcd4OgYMxQgLpiSWp2ampBalFMH1MHJxSDYx2WTyvGNqX3z686+MbxmcH WPYsOun9JOfy5ts38ty+aPzOUbl0Wd3c6bWR2UepyE3v+92m7uv8p35eaUOEsI/bpLIcT2WV zh0P7nIf/c9Yf3BRdbD7m93aZ9p+L3OtkT3pxLR5zcHAC4Lvbnmq8Pi9vT8tdHJg/sygyfG3 LHYllNssiVL4cuGSEktxRqKhFnNRcSIAmWeAFHQCAAA= X-CMS-MailID: 20200427095759eucas1p146d501188af3d1215707e664672076bf X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200427095759eucas1p146d501188af3d1215707e664672076bf X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200427095759eucas1p146d501188af3d1215707e664672076bf References: <4816966.qqrk5fENW1@thomas> <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v1 5/6] doc: update sample app with unknown speed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: 4816966.qqrk5fENW1@thomas.org List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Ivan Dyukov --- doc/guides/sample_app_ug/link_status_intr.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/guides/sample_app_ug/link_status_intr.rst b/doc/guides/sample_app_ug/link_status_intr.rst index 5283be8b7..6ebc707b7 100644 --- a/doc/guides/sample_app_ug/link_status_intr.rst +++ b/doc/guides/sample_app_ug/link_status_intr.rst @@ -177,7 +177,8 @@ An example callback function that has been written as indicated below. printf("Failed to get port %d link status: %s\n\n", port_id, rte_strerror(-ret)); } else if (link.link_status) { - printf("Port %d Link Up - speed %u Mbps - %s\n\n", port_id, (unsigned)link.link_speed, + printf("Port %d Link Up - speed %u%s - %s\n\n", port_id, (unsigned)link.link_speed, + (link.link_speed == UINT32_MAX) ? ("(UNKNOWN)") : (" Mbps"), (link.link_duplex == ETH_LINK_FULL_DUPLEX) ? ("full-duplex") : ("half-duplex")); } else printf("Port %d Link Down\n\n", port_id); -- 2.17.1