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 2B306A04A4; Tue, 26 May 2020 21:11:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AA4291DA1D; Tue, 26 May 2020 21:11:05 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 5DAF11D930 for ; Tue, 26 May 2020 21:11:01 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200526191100euoutp029255b7c14292a8430968510e55d070ed~SqcAS2Sgo1195811958euoutp02i for ; Tue, 26 May 2020 19:11:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200526191100euoutp029255b7c14292a8430968510e55d070ed~SqcAS2Sgo1195811958euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1590520260; bh=1IJRNFPapx2JgSG1rviP/sukMFI/zSzOoripxUwPpBs=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=gbM+681VjHmQU+h4o5/kOiELW36ITEILWfzPhWN/xuXjmXatH76aiZIeGpGu7DLsv Fc1xK0//mLttDxnCuCxOYzqn3vPRgkuIX7XkKye4gvTxlkDrTGWuaqd2scxmfZVMbQ gJwzJ/xq9etQKLbwCSr/cdKr8AM3L+asaNf48maU= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200526191100eucas1p192342a342739ccd7edc9b99bf119ff12~SqcADkdwB2444924449eucas1p1P; Tue, 26 May 2020 19:11:00 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 76.7E.60679.4C96DCE5; Tue, 26 May 2020 20:11:00 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200526191100eucas1p2505b82b041fdb64fd2ceceadd67749dc~Sqb-s42NE0385303853eucas1p2R; Tue, 26 May 2020 19:11:00 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200526191100eusmtrp2c19f76187e3efff85df218cbe415467a~Sqb-sUoUu0921709217eusmtrp25; Tue, 26 May 2020 19:11:00 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-17-5ecd69c4243e Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 35.F4.08375.4C96DCE5; Tue, 26 May 2020 20:11:00 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200526191059eusmtip138c6f44820b07389bfdaccbf631ee8bc~Sqb_4acqz1119611196eusmtip1B; Tue, 26 May 2020 19:10:59 +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 Date: Tue, 26 May 2020 22:10:10 +0300 Message-Id: <20200526191033.16459-8-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200526191033.16459-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0hTYRjHec/ZzjmKk+M09qCSsIhSSLNETlGZUToIyk9RitrMk4pObcdr gbm8NFRKxRSXeWsx0cKweSVFtLSammmiYoqQElqa2Cxvy9zOpG//5//8ntvLS+HicqEzFROf xCrj5XFS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PNbKyFRJ384mJTUnsyy1SN8uQS/j/IXHbAWz2Ctu/JjK1MD4n7WLkZND QsBE4tDCLqYuRi4OIYGljBLLV58EcjiAEhISr58wQ9QIS/y51sUGUfOZUeLSkp9gCTYBDYnT HfPAmkUEljBJ7F11jhEkISxgLzF95xOwDSwCqhLLb15mBRnKK2ApMWc7H8RQeYnVGw6AzeEU sJJ482U5C4gtJJApsf7OfDYIW07i+vwvTBMY+RYwMqxiFEktLc5Nzy021CtOzC0uzUvXS87P 3cQIDPhtx35u3sF4aWPwIUYBDkYlHt6E32fihFgTy4orcw8xSnAwK4nwOp09HSfEm5JYWZVa lB9fVJqTWnyI0RTovonMUqLJ+cBozCuJNzQ1NLewNDQ3Njc2s1AS5+0QOBgjJJCeWJKanZpa kFoE08fEwSnVwNjU/bNArOO66P0/h6rOMLzbofJD7fVaTbWqYktjq2fsF8L3+EQWO/QGmHhf 0dcoDlL/y87RYNjpqZWQUp9TZa5g38HsHervkq6TIfsn3tjk96VtV3Ys3225u6HV8MTffRk6 smV5cjHrjl2L+3xQtlm+edKXjtUa/49M5Dmed6OAf/+l8hvmSizFGYmGWsxFxYkA0OjeFI4C AAA= X-CMS-MailID: 20200526191100eucas1p2505b82b041fdb64fd2ceceadd67749dc X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200526191100eucas1p2505b82b041fdb64fd2ceceadd67749dc X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200526191100eucas1p2505b82b041fdb64fd2ceceadd67749dc References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200526191033.16459-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v2 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 --- 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