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 D35D5A04B5; Thu, 10 Sep 2020 21:35:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 670BF1C117; Thu, 10 Sep 2020 21:34:32 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 90BB71C117 for ; Thu, 10 Sep 2020 21:34:31 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200910193431euoutp017e9c561d652e5a24d8ecb35484a2d183~zgyE4Ne050119101191euoutp01Z; Thu, 10 Sep 2020 19:34:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200910193431euoutp017e9c561d652e5a24d8ecb35484a2d183~zgyE4Ne050119101191euoutp01Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599766471; bh=8FgdUe6Aml3rB/AWNSgZoZqeJOx9OS3/lqpbs6iX2+c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=T6q/5tAUD+z6xb+/7yBI6HrP/OKi2KAIZpW9+kj7u2ldgd2OqXX7Tu1LpOzJVfUPD 1iOek3xzUDzkGEd/vFyC/M4LGmHZUDnWZ1WlhA+kijbUqV81qr+uUhZG/mYwf55j+S 3r7eeSWoCEUJR9xwUc+zzLYU2tj1rTu4DAvptp0M= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200910193430eucas1p1793e0cc8acbc06d138cafa9043f854fc~zgyD24FfK2936129361eucas1p1S; Thu, 10 Sep 2020 19:34:30 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 0D.0D.06456.6CF7A5F5; Thu, 10 Sep 2020 20:34:30 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200910193429eucas1p2d686171aa6500af8d5b014d7472d7112~zgyDZUX7i2619226192eucas1p2d; Thu, 10 Sep 2020 19:34:29 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200910193429eusmtrp182e7a1772ea87072cbda9e315ef01708~zgyDYgSos3165331653eusmtrp1x; Thu, 10 Sep 2020 19:34:29 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-8c-5f5a7fc665b6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 7C.8A.06017.5CF7A5F5; Thu, 10 Sep 2020 20:34:29 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200910193427eusmtip2e76b38fe94679f0555ebbf8d266217b9~zgyBll-dz1532615326eusmtip2P; Thu, 10 Sep 2020 19:34:27 +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: Thu, 10 Sep 2020 22:33:39 +0300 Message-Id: <20200910193400.15326-7-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910193400.15326-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSb0xTZxTGPffe3ntpqHlXSThTh1uX/SMZjsxkZ8wMJftwPyzZvixREsFO 77Bbi6Ytbm66FbeBgQ6hkjlkKwwyRTRjaG3RIOnI0uKKdYBEyRgyokFgKPIn/BG2cXcx+/Y8 v/Oc93nz5pV5s09cK9vy3aoz32q3iEYhGJmPvxj5LDv3pY6BBGrq9AMNDdTzNFj5h0ilE19w dLMxk1pD3xrId8vDUZnvAUehhhKR/ho8LNC9yRBH/ZdjEp3oPizRZPuwRF9dqwYaXhzlqap2 Cuia/4KB5n++JNL9xTqByhZ6gY4GOoCi3gcCVV5sASoqYTRx+pRE9f0pNDnYIVCs77xEZ2e6 eLrQuQRUEW0Culr0j2HLU8pC7Q8Gpb51hFOOfd/FK5G+ryXFe8XPKc33WjjlfluvqJQFGkH5 daiUV87cnhPfNmYbN+9W7bb9qnPj6zuNe1oHbgv74tJHs13XwQM/iiWQICPbhEt3OvgSMMpm 1gA4f7xc0s00YPhWFHQzBThUWMU/WmnuCxr0wSnAwuIKQRuY2QzgdwOKpkX2PMaO+DktlMSa RQwt3lg2sryGZeF4Z46WEdgzGJyN/LdrYq/iSNTH6QUb8MxPYV6LJ7AM/LN/h358Ct6omV6J /CZjTY9N129gp3cMdL0GR6MBSdfrMXbMK2hXQFYMWBE8L+mmHPDz6vGVVCYGxuKSVsazF7Dp 0kYdb8XAlz2gYWSr8eb4Yxrml6UveJzXsQmPFJn1tAXDV7pXMOLSw0QdKxif8Iv6S10GrDob MZTDhhP/d9UCNEKyWuBy5Kmu9Hz1wzSX1eEqyM9L27XXcQ6Wf2rs7+hkC8x0v9sOTAZLoimc kZ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GYUMrPfGdJ7/h79 zP8kGlWKEIUSwhTKIGVQKMgWSI4zTTukjEZt5PZyXBJn+J8jRB7eJsRs8QuourI+1trgudFj cpOyULN7n4ROS4oq+zB6aGtq/7ryMa0dhttSfYOdVhNni45W9UdGd85Vl2XEtRwrURU/Va5g D2ZFBeQduJymmgyl2u85C8UlD/xsa7ffgHxXUWN3a854yvDZDVlrLQXSTm0BF741aMRpaqX1 U8vyHsooXqtWLCMNvPovcAVjaQcDAAA= X-CMS-MailID: 20200910193429eucas1p2d686171aa6500af8d5b014d7472d7112 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200910193429eucas1p2d686171aa6500af8d5b014d7472d7112 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200910193429eucas1p2d686171aa6500af8d5b014d7472d7112 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200910193400.15326-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v10 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