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 62F15A0526; Fri, 10 Jul 2020 09:04:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 983641DC46; Fri, 10 Jul 2020 09:02:57 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 3CC8B1DC31 for ; Fri, 10 Jul 2020 09:02:56 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200710070256euoutp01acd5a022c77bd4c72d7311d23f5a2cc8~gUiJzIBzi2078320783euoutp01B; Fri, 10 Jul 2020 07:02:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200710070256euoutp01acd5a022c77bd4c72d7311d23f5a2cc8~gUiJzIBzi2078320783euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594364576; bh=8FgdUe6Aml3rB/AWNSgZoZqeJOx9OS3/lqpbs6iX2+c=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=IxCHOmF6zB/LmAdOwsceIKmeXCeEEtMR0gDeqYSWE/pTnragFsdkE9yaeirEvs0O/ aHHpS4wVfbt1O/qpEzKJo43mKyTVWCkZL2A010Lc9WoY0dvuOyqVyv5KKkF8ex3TWg 9bUKa4TlFCAfu7nvV/aT2h9k6ljqNUHYjwl5TAyo= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200710070255eucas1p1625634b49d76c265a3a1852e78a33a10~gUiJkKXfE1572515725eucas1p1v; Fri, 10 Jul 2020 07:02:55 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id E4.38.05997.F92180F5; Fri, 10 Jul 2020 08:02:55 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200710070255eucas1p2da7a697fa21f92662ce276bba49ba708~gUiJNkb922446524465eucas1p2D; Fri, 10 Jul 2020 07:02:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200710070255eusmtrp2a2f7183706676f380a2676ff53e08530~gUiJMrykh2959329593eusmtrp29; Fri, 10 Jul 2020 07:02:55 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-1e-5f08129f9a31 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B0.84.06314.F92180F5; Fri, 10 Jul 2020 08:02:55 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200710070253eusmtip126d0501bffd698fad641caa4b2153707~gUiHbRtqM1602216022eusmtip1I; Fri, 10 Jul 2020 07:02:53 +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: Fri, 10 Jul 2020 10:02:05 +0300 Message-Id: <20200710070226.6045-8-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710070226.6045-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0xTZxjG/c45Pee0oeasmvBGjZdmS5RlgLiYd+hEjYnH/bVsCYwlinWc IcrNHmC6ZRkSZVgZYnUaGQFsw0C8oFgpEDTYmBYoSpAhknFLwySg447IfbSnZv/98jzP+z5v vnw8rTOza/j4pFTJmGRI0LMapso50/JJkY6PCf119GOsaC4k6Omx0th3uZvF86NnKHxZHoF1 9gIVmnszKMw1j1FoLzOx+KYvk8HhcTuFXQ/dHOY/z+Rw3DHA4W8tfxAcmB+i8VrxBMGWwgcq nHlcy+LIvIXB3Nl2ghdsDQRdOWMMXq6pJphlEnD0RimH1q71ON7XwKC78z6Ht6ZaaXzQvEDw oquC4NOsJdXuTeJscYlKtNYNUuKl66206Oy8wok5jYWUeG+4mhJHHrWzYq6tnIhNnvO0eLP/ Hful5lvNzlgpIT5dMobsOqw5WtfTz6Q8405Ot/5FMsgd1kTUPAifwnD3W8ZENLxOKCPQXz2t 8ho6YZKArf5nxZgg4ByzUu8nPH0vOCVUSmDu72glNEXgXIbTF2KFzeDOLqS8xmrhHgv2+Q6f sUrYAxOzr2kvM8JH0Fa56KvTCgg5F8/RSsMGuHm33sdq4TM4a7L429ZDR9GkbykIDTzc72rg lIF9UFrU5D9vFQy5bH59HSzVFPn1n2C6soNThrMJ9FjO+kMRYHv9bJl5nha2QEVtiBdh+dBX nkgFV8LLfz/whullNFddpRVZC9lZOmWHHuobn/tlgIW5AEUW4cbtAaI8Tx2B5t8z2TyyIf// qmJCykmglCYnxklyWJL0Q7BsSJTTkuKCv0tOrCTLP9W96JqsJrXzRxxE4Ik+QHt4gY3RqQzp 8qlEBwGe1q/W7n3qPqTTxhpO/SgZk2OMaQ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0mzGFecjNFqTPwJnk/mjf9zhMQvKA0p93TabaxKO5RR4Mor2s8uUt+k vNFRuyz2lN7K3cs77IMDqucnHV6L/44DG695k7eLUutbwqyj+vS9Ex9dBW0xJ2LKu5sGd+sf xf/q+RzX1DIoBPfyupSUfYGhjiVj1oadne9c0T3ahaHdqV2LP18P6Q4ZyYhV6pu1XhtZ5rCx lKDTKMJIo6D5CzGIdz0IAwAA X-CMS-MailID: 20200710070255eucas1p2da7a697fa21f92662ce276bba49ba708 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200710070255eucas1p2da7a697fa21f92662ce276bba49ba708 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200710070255eucas1p2da7a697fa21f92662ce276bba49ba708 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200710070226.6045-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v7 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