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 DFC09A00C5; Mon, 6 Jul 2020 22:27:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E01F81DCAA; Mon, 6 Jul 2020 22:27:01 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id B246F1DCA2 for ; Mon, 6 Jul 2020 22:27:00 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200706202700euoutp026b612e59b411c30335e07b1feb63532f~fQ7D4rvM51760817608euoutp022; Mon, 6 Jul 2020 20:27:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200706202700euoutp026b612e59b411c30335e07b1feb63532f~fQ7D4rvM51760817608euoutp022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594067220; bh=8FgdUe6Aml3rB/AWNSgZoZqeJOx9OS3/lqpbs6iX2+c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=JG+vSkx62pZa4aPvmHC9SIVTFWInxKc8xVcl9jRG0ju7PBtN43O207KAHDm7KI2SS ZxyoPxW9+C/ni+NlUZJgVFLBoIcS5/TEvHMepV6TAqqvlKnC8v1GbcpnfhUZiQGJCr uHizccpIflpoY9K8LooIgb45MOCvI/Tk9lDxwBXU= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200706202659eucas1p2c86500f4b20f5e7f9366d4f1c8ea90e5~fQ7CwR9ml0116301163eucas1p2j; Mon, 6 Jul 2020 20:26:59 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 50.B4.06456.319830F5; Mon, 6 Jul 2020 21:26:59 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200706202658eucas1p16fb0b9d392a4c480915058a034bac1e7~fQ7CWBg7H0787207872eucas1p1W; Mon, 6 Jul 2020 20:26:58 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200706202658eusmtrp2a26a8571b61ebe196681316f8e6d1b16~fQ7CVNudp3205132051eusmtrp2r; Mon, 6 Jul 2020 20:26:58 +0000 (GMT) X-AuditID: cbfec7f2-809ff70000001938-ee-5f038913d7e7 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 43.4E.06017.219830F5; Mon, 6 Jul 2020 21:26:58 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706202656eusmtip1e4d22cb0ec32c5857214ac3f45e62d15~fQ7AmUwYG1500415004eusmtip1V; Mon, 6 Jul 2020 20:26:56 +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:25:57 +0300 Message-Id: <20200706202626.28628-8-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200706202626.28628-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSbUxTZxjNc9/be29ru1yLC4/OYGzC1G2KBJe9m8SPTdlN/OOvLfFjrBs3 SMZXeinKFhJGpKkVUBk4xQUYjV9oQKBYJLhgXVq1fAwEqdGxhmmcMkUQgrIiUm51/845zznv efLkFYixnFsipGXmyJZMc7qJ07EXvS96VkcdIMlrux7raUNnFdDhISehwfI/OXrw6X6GBuo2 0nb3Lxpa9lcBQ0vLxhjqPuPg6L/BQpY+GXcz9O5lP08r+wp5Ou55wNOSnhNAH4QeEXq85hnQ nqoWDX1xpY2jo6FalpZODwA95LoG1Fc8xtLyS61AbQ6RPj17mqfOuzF0PHiNpf7bzTw9P9lL aEvnDNAjvgagXbZZzabl0nTNSY3kbH/ISD/92ksk7+2jvFR8vYqRGp+0MtLobwOcVOqqA+nG 8EEinbv3nNuu26FLTJHT03JlS9yGr3V72ofusdnd/L6p3n4ogHrOAVoBxXUYqPRoHKATjOIZ wIGiNl4lE4CNsxUR8gzQWVrwJuIM2iKR04D93lsR1yTgxMn7TNjFiSvRb69iwoNFYiOH7tDg HBGEKHEzTjdtC3tYMRZHfpyZ9xvEj/FGvZtVG5bhuQsdJIy14if4+2jzfLNRjMHB6on5N1Hs FPBOXxGogS1Y/c9zouIofORz8SpeirOXqhkV/4BTTYO8GrYDDtUWRUwb0TXSzYeXI+IqbGiL U+XNaD/knt8Zxbcw8HhhWCZzsOziz0SVDWi3GVW3CTuu90VkxJn/9KosYfnR+6Ce5zLgsdAF 5jAsq/y/qwagDqJlq5KRKivxmfLeNYo5Q7Fmpq75NiujCeb+qv+lb7wVJvu+8YAogElvCAok 2agx5yp5GR5AgZgWGT7t8n9lNKSY876XL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zx3iuDhO958jRF5+8ShskT34fcfYLGN+69ZoQe18V5Lx 3dsA15lPIc2huxRG88agvKGvpm/7BsPS6osftQy2GfPpkcqbJdVJZSY2NGXn5mxD1dX94SfO pScpBzSlR7kNTOKpziXVGSHGgqqa0um+2YWfRk86Qgbf3D4yElMZkbwpz9aZ5rYKilpssX07 tkkpPlolX0zqeNUf+MHuxAcDAAA= X-CMS-MailID: 20200706202658eucas1p16fb0b9d392a4c480915058a034bac1e7 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200706202658eucas1p16fb0b9d392a4c480915058a034bac1e7 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200706202658eucas1p16fb0b9d392a4c480915058a034bac1e7 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200706202626.28628-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v5 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