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 7ACD7A04C7; Tue, 15 Sep 2020 21:08:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8D6CB1C134; Tue, 15 Sep 2020 21:08:00 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id B07311C133 for ; Tue, 15 Sep 2020 21:07:59 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200915190759euoutp01a470613c7955872eeb2eb6b0e959fb48~1CpVeWoPB0530105301euoutp01U; Tue, 15 Sep 2020 19:07:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200915190759euoutp01a470613c7955872eeb2eb6b0e959fb48~1CpVeWoPB0530105301euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600196879; bh=8FgdUe6Aml3rB/AWNSgZoZqeJOx9OS3/lqpbs6iX2+c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=bcf1VNozd4j7MpzElbynEExXQ4AteXFiAP9sbsAFGFc7tFxJhxJIBNRgp5UVjSoZa e6uEvARLdZr7imaRYSulo8oJ6h6LqHWapN2DBnWbrfIlUEo/Hg21YzA3eTMjw2CeyQ dF311Xa4tCJin7oV6NCmToPqNIHesvyfIH/D93mI= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200915190758eucas1p1288bef07c8a4f1c2d25e9d1849823948~1CpUmKkAP3097130971eucas1p1Z; Tue, 15 Sep 2020 19:07:58 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id C2.DF.05997.E01116F5; Tue, 15 Sep 2020 20:07:58 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200915190757eucas1p2f4d9f5f1beff09e8102311dde7569271~1CpTr8wck2574925749eucas1p2x; Tue, 15 Sep 2020 19:07:57 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200915190757eusmtrp14b824e7c54c9c376e95bad694ac9126a~1CpTrInAx2872428724eusmtrp1P; Tue, 15 Sep 2020 19:07:57 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-44-5f61110ec7a6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 93.EB.06017.D01116F5; Tue, 15 Sep 2020 20:07:57 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200915190755eusmtip2940c249698504d1b1b7f8bf10da155a7~1CpR7nW5L0503105031eusmtip2L; Tue, 15 Sep 2020 19:07:55 +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: Tue, 15 Sep 2020 22:07:01 +0300 Message-Id: <20200915190728.18143-7-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200915190728.18143-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0xTZxjH95xzes6hoeZYXXiixEujyVjijfnh0bjhdIlnWbLLh33Ykomd nCCTi2kBh8aMykRSEQRxTmRQJRNEI6gItQJhNVqgCEIk6qhSCJEgUuUWLRQn5dTs2+9/ed8n z5tXZPVF/BIxITlVMSUbEw28lqu76+9Ys2ChMXb9g2kdVbeXAg08LWfJW/SEp2OvfmfoUVUM NdSXaKiwL5OhvMIxhuorrTy98B7myDdez5Cn0S1QcfdhgcadQwId7zwLNBR4ztIZ2wRQZ+kN Dfn/cfD0MnCeo7zpHqD82hYgV+4YR0U37UDZVoleXawQqNyzjMa9LRy5H18X6PJUF0s32meB ClzVQPey/9NsXSlP2/7WyOUNw4x88lwXK999/Icg57aWMvJVn52RXzb18HJebRXIbQPHWPnS 4Bv+W+2P2i1xSmJCumJa99ku7Z6Gp4Pcvg7h19ddDyATrvBWCBNR2oh3Zos1VtCKeqkS0O97 wqliEnAs+21ITADaKjo1749csJfwalABWNL2TFDFFGD+cBMEW7z0EbpzSplgsFi6ymN94CET DBZJ2/C+xzFf4qTVWDfz7zzrpE0Y8Pax6ojleKmmeZ7DpM3YfbNHCLJeWoYPyyYZtdMuomMk 1P8C/Vn+kL8In7tqBZUj0X0yd34HlI4CFtRdF1RxAjDr7GioFYO1Ix1zLIqsFIXVjnVBROlz POqLVnEBPhpdGCyzc1hYd5pVbR3mZOvVOwzY3NodshFnZ8JVW0aLd4ZVn6cR8LbrFn8Clhf/ P8oGUAURSpo5KV4xRycr+9eajUnmtOT4tbtTkq7B3F91v3VN2sER+NkJkgiGcJ2td1esXmNM N2ckOQFF1rBYt+2ee6deF2fMOKCYUmJNaYmK2QlLRc4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/PEYybZyqaEb0tekXyFUXImpk0c1ZYvrJ9 Z4Z1G+9dWq1YW9d15051xKbYVT6tb7NrR2jzlEkR2fmne47Z132Sm32eaDStyx7iULpxa688 sk+y91TUwIKyssAGc/PUG/auJRGmNeSetKHEMxPLLe/K+M9qmz4zVIt954Sjzhma0vrh+eGh oKREDa9eQOpF/i/MCTnaCQMAAA== X-CMS-MailID: 20200915190757eucas1p2f4d9f5f1beff09e8102311dde7569271 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200915190757eucas1p2f4d9f5f1beff09e8102311dde7569271 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200915190757eucas1p2f4d9f5f1beff09e8102311dde7569271 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200915190728.18143-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v11 06/24] net/ice: return unknown speed in status 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" rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available and link is up. NUM_NONE should be returned, if link is down. Signed-off-by: Ivan Dyukov Reviewed-by: Ferruh Yigit --- drivers/net/ice/ice_ethdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index b51fa2f17..76f797de0 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -3135,8 +3135,11 @@ ice_link_update(struct rte_eth_dev *dev, int wait_to_complete) link.link_speed = ETH_SPEED_NUM_100G; break; case ICE_AQ_LINK_SPEED_UNKNOWN: - default: PMD_DRV_LOG(ERR, "Unknown link speed"); + link.link_speed = ETH_SPEED_NUM_UNKNOWN; + break; + default: + PMD_DRV_LOG(ERR, "None link speed"); link.link_speed = ETH_SPEED_NUM_NONE; break; } -- 2.17.1