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 63C9BA0520; Thu, 2 Jul 2020 15:23:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F0AA91DA1D; Thu, 2 Jul 2020 15:22:21 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 7AFD71D9D8 for ; Thu, 2 Jul 2020 15:22:20 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200702132219euoutp0216a9a96e249c0b2507324338abd521dd~d8jICxw2g1776117761euoutp02K for ; Thu, 2 Jul 2020 13:22:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200702132219euoutp0216a9a96e249c0b2507324338abd521dd~d8jICxw2g1776117761euoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1593696139; bh=w1PCYzkccc7a0FLqoHr6im6UQ7yfIP5rSux6yti6afc=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=dZH14Q84eDVGA5hjz8NJy0bI19c5b2/+4W1/T1SoHaYzf+QShJd+WOMPlrJFTleDF FffXof42VAD+as1BNXoKJCLbAHNHHuoFmbXXAQmxUwI9v6yXseZCvDeCP7kRn+JPzQ Aag2nsTnh/Oa20f8TThScsVmttzR9/mjaoUiaRkg= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200702132219eucas1p22a1af32905f4eb24af29e637248037d2~d8jHzkmT93208332083eucas1p2Q; Thu, 2 Jul 2020 13:22:19 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 93.D0.06318.B8FDDFE5; Thu, 2 Jul 2020 14:22:19 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200702132219eucas1p2a4993ac0ae1dbb983d16dc80729a6dae~d8jHVS0Pb0792507925eucas1p2t; Thu, 2 Jul 2020 13:22:19 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200702132218eusmtrp1d0cb9d71ccd1be2270b47c1921cf6d44~d8jHUonbl1219712197eusmtrp1U; Thu, 2 Jul 2020 13:22:18 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-6a-5efddf8bf0b0 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 0E.11.06017.A8FDDFE5; Thu, 2 Jul 2020 14:22:18 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200702132218eusmtip27297d876810cbffff05f1460ac23f31f~d8jGZhskr0566005660eusmtip2c; Thu, 2 Jul 2020 13:22:17 +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 Date: Thu, 2 Jul 2020 16:21:34 +0300 Message-Id: <20200702132139.28078-8-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200702132139.28078-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUhTYRTHe+6d996Jk+uUPKloLCKN8iWlbhGZoXApkIo+BVkrLyrptM2Z b4lUlqiMsUzR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N7BZr vl5ktth65i+jA5/HrwVLWT0W73nJ5HHs5jR2j56T85g83u+7yubRt2UVo8epR93MHquf/GAL 4IjSsynKLy1JVcjILy6xVYo2tDDSM7S00DMysdQzNDaPtTIyVdK3s0lJzcksSy3St0vQy5gw +z5TwTn2iotv1RsY17F1MXJySAiYSDyf+ZK9i5GLQ0hgKaPEl4OPmboYOYASEhKvnzBD1AhL /LnWxQZR85lR4tj9RewgCTYBDYnTHfOYQGwRgXtMEltWqoLYwgL2El/aV4DFWQRUJR5Mf84O MpNXwFJi2aRSiJnyEqs3HGAGCXMKWElsOcEHEhYSyJS4/PoKG4QtJ3F9/hemCYx8CxgZVjGK pJYW56bnFhvpFSfmFpfmpesl5+duYgRGxLZjP7fsYOx6F3yIUYCDUYmHd8Lxv3FCrIllxZW5 hxglOJiVRHidzp6OE+JNSaysSi3Kjy8qzUktPsRoCnTeRGYp0eR8YLTmlcQbmhqaW1gamhub G5tZKInzdggcjBESSE8sSc1OTS1ILYLpY+LglGpgPB13jn3ZvVnTdGa+ks6b1rJy+6wJida6 3xcqRQje7Bebvt3hLnPKYtadKQcuiT28+G7JjjSZ6vLjcgxWJzOl6iXnaoc+3G+zplAszkE5 wcI25F2D9EIGJ4nlvxleOW0RO8+WvMP83eOcD23d93J3G0zbXbf0uNADi8TTEVaSSxU4j9xW kroxQYmlOCPRUIu5qDgRANtbIRaeAgAA X-CMS-MailID: 20200702132219eucas1p2a4993ac0ae1dbb983d16dc80729a6dae X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200702132219eucas1p2a4993ac0ae1dbb983d16dc80729a6dae X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200702132219eucas1p2a4993ac0ae1dbb983d16dc80729a6dae References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200702132139.28078-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v4 7/7] 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 d5110c439..1c0c087ea 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -3112,8 +3112,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