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 80909A04AF; Tue, 11 Aug 2020 10:54:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DE1F31C0D8; Tue, 11 Aug 2020 10:53:15 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id BB3D41C0CF for ; Tue, 11 Aug 2020 10:53:13 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200811085313euoutp01caba7c4cf2d96cd8d6df9dc379f6217e~qKrlgLQMK0826508265euoutp01l; Tue, 11 Aug 2020 08:53:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200811085313euoutp01caba7c4cf2d96cd8d6df9dc379f6217e~qKrlgLQMK0826508265euoutp01l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597135993; bh=8FgdUe6Aml3rB/AWNSgZoZqeJOx9OS3/lqpbs6iX2+c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=B0ZuXGdvEDHd3IBs0ZeGIPK7otCrpLv+iS2Q6x4FGmCmn1nt7qcju2Hq0AvET3vZz +EUx2ZRGvl9Hj/4EVe6oj0FJwiinB7KzjrXLcK43fPLOn/b8t+y1SApJhcAJDEC/+W 1WGddKsYu0CX9lOjawrOQFLBm9CkOmETq1c85NyA= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200811085313eucas1p25dee6e12f1ea0a3bef948d2706f8c5d0~qKrlGf02j3145931459eucas1p2-; Tue, 11 Aug 2020 08:53:13 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id D7.1C.05997.87C523F5; Tue, 11 Aug 2020 09:53:12 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200811085312eucas1p178f45d37ab3a8fa4da5885d5a86668e3~qKrknpgYP1585815858eucas1p1r; Tue, 11 Aug 2020 08:53:12 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200811085312eusmtrp1272bb61c16c61c243517b221f1ddfd31~qKrkm3twQ1606216062eusmtrp1K; Tue, 11 Aug 2020 08:53:12 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-a1-5f325c782cba Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 47.4D.06017.87C523F5; Tue, 11 Aug 2020 09:53:12 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200811085310eusmtip16a440abc509add36e7ec17b46ecc994b~qKriwu2Tc1725317253eusmtip1h; Tue, 11 Aug 2020 08:53:10 +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, 11 Aug 2020 11:52:25 +0300 Message-Id: <20200811085246.28735-7-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200811085246.28735-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSW1ATZxTH/XY3u0vG6Bqtnqr1sqUzrZ2iaB+O1SnadnTfdHzqdFowlDWG BmSyIGr7EMVB5RKFUKugAcM0IDBSFQlkoCqOgoaLQRG8x8tIsUUuohYK2iQbx7ffOf/zP/8z 33w8rS9gZ/Om5FTZkmwwi6yWqb002vHZtu+Xxi2xu1ZgdauD4MN7pTT6C+6ymD24m8Keihhs cB/RYP59K4W2/CEK3eVZLP7j38Xgs2E3hXcavRwWdu7icLipl8PcjiKCveNPaTxc8pxgh+OM BkfPe1gcGHcyaBvrIri/poVgc84QgwX1dQQzswQcPF7GYemdeTjsb2HQe/M0h1UvfDSeaZ0g mNdcTbAt841m1UJprOR3jVTa0EdJ9mM+Wrp08yAn5Vx2UNLJZ3WUNPBnFyvZaiqIdOVhNi1V Pv6XXa/9TrsyQTabtsqWxV9u1G5uuPeYSWnntr3yXSdWcoLNIhE8CJ/D1Yn6AGt5vVBO4Ibz ZUjQCyMEBk6YVOE5AecFH/fW0efpp1WhjICvs4WoxQsCWX/ZqOAUK3wM3r0OKijMEE6y4B7v DgnThdVw9kGeJsiM8BFc2VkeytMJy+HoWBmtRsyHyj/OhThC+AIqi+7T6k3zoLt4JLQUhFYe epyljGr4Bi725oZ5OjxtrgnfOhe89hxGNewhkFd7mlOLAwQyivrDUzFQ83d7gHmeFj6Bas/i IELg0v5CUcUp0NM/LThMBzC/9jdabetgb6Ze3SHCucud4TbAxH+T1bYER6+WhB+rkcD+vFHu AJlf+C6qhJAKMktOU5KMsrI0WU6PUgxJSlqyMerHLUmnSOCvel83j9QRz3h8ExF4Ik7WpayI jtNrDFuV7UlNBH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h0X ymkhjNMGa4OXgWq64gBbn6Bkk/RmYbsgpAmm/3WE3DcwA6F3om6NZ3390JQz4adquCDPk0jR uT83JPvi5nBWjM7yu7mHXHc/dafmfoW70L27fXBRV5k1rolJKeGOWaa+ilnQWpteWrTFUGWZ t+2CQ5s8xxwwL3Gnz0gc4Q4U7VXT/TeYZvw8+rAvs7Wj9KtxbW3slNIosyM23mf4g320zr1C RUnJem4haZL0fwEgUOkoCQMAAA== X-CMS-MailID: 20200811085312eucas1p178f45d37ab3a8fa4da5885d5a86668e3 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200811085312eucas1p178f45d37ab3a8fa4da5885d5a86668e3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200811085312eucas1p178f45d37ab3a8fa4da5885d5a86668e3 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200811085246.28735-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v9 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