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 E278BA0093; Mon, 15 Jun 2020 11:03:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5B67C1BE98; Mon, 15 Jun 2020 11:02:23 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id AC7984C9D for ; Mon, 15 Jun 2020 11:02:20 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200615090220euoutp02e2eb8a5e80189b5467023095b8942b24~YrCReiypr3274832748euoutp02E for ; Mon, 15 Jun 2020 09:02:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200615090220euoutp02e2eb8a5e80189b5467023095b8942b24~YrCReiypr3274832748euoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1592211740; bh=1IJRNFPapx2JgSG1rviP/sukMFI/zSzOoripxUwPpBs=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=mArSxbRrCMyTWAUpplpr0XOtunD6i1gZAgEOQa0xiXFZ2rn7F/gQmXFxrUCJJPmLi ELOVdk1SrSJ7WF7IW/NNfCtREDIje08EOqCyyLPOi2CjQEQfKcMvBTkiFHk8fXeMwh emsxx6HzbR7IWstaM6OOEft+JDTdQc3tPvQWwKZw= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200615090220eucas1p2ba9e748238bf760addfa915642015013~YrCRKvAaH1969219692eucas1p2e; Mon, 15 Jun 2020 09:02:20 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id F6.0F.61286.C1937EE5; Mon, 15 Jun 2020 10:02:20 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200615090219eucas1p2d6b0f803bec9e0e6570ca4a4806b17bd~YrCQ3jwmF0261002610eucas1p2A; Mon, 15 Jun 2020 09:02:19 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200615090219eusmtrp21c65a9ec50f106b9b122a16674f0780e~YrCQ2zNa_0247502475eusmtrp2U; Mon, 15 Jun 2020 09:02:19 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-c1-5ee7391ca3a8 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 8B.D3.07950.B1937EE5; Mon, 15 Jun 2020 10:02:19 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200615090218eusmtip1768dac799065dacef9b17be82a135f76~YrCQEcMGr0241002410eusmtip1d; Mon, 15 Jun 2020 09:02:18 +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: Mon, 15 Jun 2020 12:01:55 +0300 Message-Id: <20200615090158.18912-8-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200615090158.18912-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNKsWRmVeSWpSXmKPExsWy7djP87oyls/jDD69Z7d4MOUum0X3hxYm i+0rutgs3n3azmRxZ+9pdotZl5rYLZ7/ecVsMWXnDkaLTw9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WdTlF9akqqQkV9cYqsUbWhh pGdoaaFnZGKpZ2hsHmtlZKqkb2eTkpqTWZZapG+XoJdx/sJjtoJZ7BU3fkxlamD8z9rFyMkh IWAi8a5xEUsXIxeHkMBSRomb96azdTFyACUkJF4/YYaoEZb4c62LDaLmM6PEp29dYAk2AQ2J 0x3zmEASIgJLmCT2rjrHCJIQFrCXmLzhB1gRi4CqxMTbfSwgNq+ApcSNhx9ZIKbKS6zecACs hlPASuLiwRnsILaQQKbEq/l3WCFsOYnr878wTWDkW8DIsIpRJLW0ODc9t9hIrzgxt7g0L10v OT93EyMw5Lcd+7llB2PXu+BDjAIcjEo8vBahz+KEWBPLiitzDzFKcDArifA6nT0dJ8SbklhZ lVqUH19UmpNafIjRFOjAicxSosn5wHjMK4k3NDU0t7A0NDc2NzazUBLn7RA4GCMkkJ5Ykpqd mlqQWgTTx8TBKdXAWCs6v3r3n/U+ny/tWFAhILmjpTNd08ftUEnJj+wg/prQar3pP/dtka5+ Nu284aIPqTtO13Qxej3RVBH9sZZpRr9J73WGV8svN+Vv3PvpVEnIS4WAubtbr/ypk5GX9WJV Nj1VXyFh3u3VdmxD91rZQ8FM7JyVKRYzXu7W11mQz1O1e9m0pvf7lFiKMxINtZiLihMB5FIL Oo8CAAA= X-CMS-MailID: 20200615090219eucas1p2d6b0f803bec9e0e6570ca4a4806b17bd X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200615090219eucas1p2d6b0f803bec9e0e6570ca4a4806b17bd X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200615090219eucas1p2d6b0f803bec9e0e6570ca4a4806b17bd References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200615090158.18912-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v3 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