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 2C9B9A00C5; Mon, 6 Jul 2020 22:39:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 65BE91DD6A; Mon, 6 Jul 2020 22:38:13 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 1BCD01DD60 for ; Mon, 6 Jul 2020 22:38:12 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200706203811euoutp027eb75536888c2931ca53a4cc0b286131~fRE1KPYIC2670026700euoutp02U; Mon, 6 Jul 2020 20:38:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200706203811euoutp027eb75536888c2931ca53a4cc0b286131~fRE1KPYIC2670026700euoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594067891; bh=8FgdUe6Aml3rB/AWNSgZoZqeJOx9OS3/lqpbs6iX2+c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=peHmCu/BlsUbVbdVCw6fOa095V2fNv/cj86XwQMhCUX0pCb1V7CN+o85VCtBvW+Tm al4Q6Kn2u1+we3/0B8kCZwaco3uYre0ToW1whzLi8h/QzjDFrtuVFsWFyh0+IMMvbs rnz6EVSY5bFRw6For7Hqf82jxObWFfsa0C6PiFHw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200706203811eucas1p2de07488235622c2366cd389a717bb1fe~fRE003CM31729817298eucas1p22; Mon, 6 Jul 2020 20:38:11 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id A7.C9.05997.3BB830F5; Mon, 6 Jul 2020 21:38:11 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200706203810eucas1p2d010ecaa97bf03484e61c4629909e76a~fRE0EUe5D2126321263eucas1p2n; Mon, 6 Jul 2020 20:38:10 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200706203810eusmtrp1d7801c8b2f6715ab18679027ed9961f8~fRE0DhI7s2965829658eusmtrp1p; Mon, 6 Jul 2020 20:38:10 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-b2-5f038bb3c3b0 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F3.DF.06314.2BB830F5; Mon, 6 Jul 2020 21:38:10 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706203808eusmtip14d294ad591c5d24140ebb85f453e7dca~fREyPZRbz1791017910eusmtip1k; Mon, 6 Jul 2020 20:38:08 +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: Mon, 6 Jul 2020 23:37:21 +0300 Message-Id: <20200706203743.29416-8-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200706203743.29416-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSfUxTZxTGc+69vffSWHMtZpzhprGJy8Yy2aaJZ8bI1C27WZbFv9yic9iN O2CjSHqLk5kNxEmwfFqMzo9VhDkZGJlQCiOgQgIFKmhRU3GKQFQi20QQw4etSrk1++85v+ec 87zvm1dkjSV8tJicalOsqeYUE6/n3O3TPW/V5rHxb49dXUTVF51AQ/3lLA0cuMVT3sOfGbpe GUdN9cd05LidxVChY4yh+go7T/8OZHP0YLyeoZvNXoGO9GYLNN46LFDBpaNAw4ERlg6XPgK6 5KzT0XRLI0+jgTKOCmeuARW5OoA8+WMcHfirASjHLtHDP04JVH5zMY0PdHDk7asV6PRjH0t1 F4NA+z3VQN05z3TvL5VnSk/q5PKm+4xccsLHyu19BwU5v9PJyGcfNDDy6LlrvFzoqgS5ayiP lavuTPEb9Zv1axKUlOQdijV27TZ9UlP/HS6tR9g56bsKWXCGt0OEiNJKvNVxiLODXjRKFYBT FYWgFROA/qCb14pHgFWT7cKLkdNBh6AZpwD7WobYkGGUHgMWt8khzUuvozfXyYSaFkpneawP +JmQESmtw/ODeyCkOWkZ7t7TM8cN0nvY7qtltIQlWPXnhdmlohghrcZf26K1/YvRf3xibidK l0VsG90dPtEH6C/7JXyhSBzxuML8FfSW5HOa3oWTNX5BG84F7C/bG26KQ9c/PUIojJXewOrG WA2vQ3vB73MYpfl4/b8FIczOSof7EKthA+bmGLVuE17o7A1jxOCTeRqWcfjGvvBTNQNmd08x xbDkyP9ZpQCVEKWkq5ZERX03Vfl+uWq2qOmpicu/3m6pgdmv6n3qmWiAxsBXrSCJYJpnyOXZ eKPOvEPNsLQCiqxpoWF9t/dLoyHBnPGDYt0eb01PUdRWWCR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fi1QUgQhAOC/n+OkMpcUlB0cKSxcNlHRcSuXZL6QU49 umDYo/xX7RbV9qU7YcPGC5uEILf27efqNvfIHj2eqKo2h/winJTuIwFtGQazo9PhMc2KlUGS O/3E5JS5uaz/2uy+Nyl7PXsKFybJju44HmgM1c5aunsjJwofpnvMW5ewNbJm7f6b4SWDZNcS zbYwxx9KSoxTc2tIvaj+C/+ePXQHAwAA X-CMS-MailID: 20200706203810eucas1p2d010ecaa97bf03484e61c4629909e76a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200706203810eucas1p2d010ecaa97bf03484e61c4629909e76a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200706203810eucas1p2d010ecaa97bf03484e61c4629909e76a References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200706203743.29416-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v6 07/25] 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