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 89C92A0528; Sat, 11 Jul 2020 12:45:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 823F81D9D5; Sat, 11 Jul 2020 12:44:46 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 648FD1D9D3 for ; Sat, 11 Jul 2020 12:44:44 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200711104444euoutp0174523a6f8ec5debd67c2437337c409d6~grNGRKnnC0814408144euoutp01c; Sat, 11 Jul 2020 10:44:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200711104444euoutp0174523a6f8ec5debd67c2437337c409d6~grNGRKnnC0814408144euoutp01c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594464284; bh=8FgdUe6Aml3rB/AWNSgZoZqeJOx9OS3/lqpbs6iX2+c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=fLiOCQbW71qdvaMhQwTdoOm2LxGCfsZIe9dW/R9vJxhwG1oe1bymrpsEJd2Wu4NkJ MNh6UZdn4W2kkb0Ir31U3vinaD8yTb3UGXpZhFgwqD/BoI1/6MO/v8c77iCZeuE2BA im1IEDuc5FWgGl+Ah1CbnSykcAzEKB6+rGbsibb4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200711104443eucas1p1da7f11bcf8561f053c92079abff4c424~grNFRnWnq0930309303eucas1p1o; Sat, 11 Jul 2020 10:44:43 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 67.1F.05997.A18990F5; Sat, 11 Jul 2020 11:44:42 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200711104442eucas1p1cdbc60cbc6a7d7c6902e7797a8245d4a~grNEnn46d1558215582eucas1p1h; Sat, 11 Jul 2020 10:44:42 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200711104442eusmtrp2c63fb275d65c97a0e4488cab64ba8252~grNEmk2jI1628816288eusmtrp2Q; Sat, 11 Jul 2020 10:44:42 +0000 (GMT) X-AuditID: cbfec7f4-65dff7000000176d-3f-5f09981a64c9 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 20.17.06314.A18990F5; Sat, 11 Jul 2020 11:44:42 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200711104440eusmtip11c7c3d9b63dd3af9936b7bf38b972126~grNC5KzEw0946309463eusmtip1y; Sat, 11 Jul 2020 10:44:40 +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: Sat, 11 Jul 2020 13:43:53 +0300 Message-Id: <20200711104414.15422-7-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200711104414.15422-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUxTZxTHd+69vffS2OWuGDniYkfJkmlU0DnzuJGpZEvuR0P2ZYuKVS5g hIq94ssWF+ImkqJlq7qNbqldiZMXx4sWiwS1YrSF0kJxWgiKjDlR5qggTHFlSLmYffud///8 zzl58vC09jibyO8w7pFMRkOenlUzF25MBpcn/hCXmRr2pZG6DjuQwf4KmgycuMuS0idfU6Sn eh1pcf+kItZ7RRSxWEcp4q40s+TxwCGGjIy5KXLnkp8jtu5DHBlrHeLIsc4fgQxFh2lS7ngK pNPeqCKTV5tZEok6GWJ5cQtImcsHxHt0lCEnLjYBKTYL5EnVGY5U3FlMxgZ8DPH3nufI2YkQ TRo7poB8660DEiieVq1PEl84TqvEipZHlHj85xAt3uj9jhOPttkpsWGkiRIjl2+xosVVDWL7 YCkt1tx/zm5Uf6ZOy5LyduyVTCkfblXntvTfZwqC3P5nod+gCGpZM8TxKKzGidPNjBnUvFao BHS22yilGAf8JzQ95zwFdDuvqF5F2m730YpxBtDbY2OVYgKwtzYKsS5WeAf9JfbZWfOFBhbd 0TAVM+KFDRg5EpmJ8zwjvI0PfuFiqBHWYnn7ImWBDmvqPXSM44T3cSrSNctaYTGGT43PjkTB x2Pnn2FGCXyEZYGTnMLxOOx1zfGbOH3xFKXwF/jsXJhTwiWA/c7Dc03r0PVXcPYIWliCdc0p irwBb9ecpGIyCq9jz99vxGR6Bq0XvqcVWYMlxVqlW4+etu45GXHq33mKLKKl9CYor3MJ8Fhj teob0Nn+3+UAqIYEqVDOz5HkVUZp3wrZkC8XGnNWbN+Vfw5mvqr/P+94EzRHt7WCwIN+nsZh 4DO1KsNe+UB+KyBP6+dr0gP+LVpN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JhUUwWLf/nCFautiF+zv3TDpthV3NLjFm2rLfD2dTA Vo1mqUveNyrdSeceO+TMyVUnKzTDE7beGG6lTaHZ8Vx7lTTwGw91B7qViujjn19lPbA6o4+U DO7zuNOXhO2p0WSUb9lQXdby8YXGve0Kkx8S04qau0405QT5zLs9xRqTp7ZV3BoRnL+8upSn JINet5K0SPp/NgFR3gcDAAA= X-CMS-MailID: 20200711104442eucas1p1cdbc60cbc6a7d7c6902e7797a8245d4a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200711104442eucas1p1cdbc60cbc6a7d7c6902e7797a8245d4a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200711104442eucas1p1cdbc60cbc6a7d7c6902e7797a8245d4a References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200711104414.15422-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v8 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