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 A2B29A04B5; Thu, 10 Sep 2020 21:34:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC5801C0CF; Thu, 10 Sep 2020 21:34:27 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 2599E1BFC3 for ; Thu, 10 Sep 2020 21:34:26 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200910193425euoutp02f8aa37fef11b184789cce93f0fe9d5b1~zgx-1hTe40500705007euoutp02U; Thu, 10 Sep 2020 19:34:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200910193425euoutp02f8aa37fef11b184789cce93f0fe9d5b1~zgx-1hTe40500705007euoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599766465; bh=1R9omrZ5fAPdKYuUkOS/6cuY8buXbZ+pEv8UB5bwG/w=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=ttYNEUJ+qTMNbavlN1oPB8HdtQUHriEfPsGhw30nip/sySCZwr3wTm+CENcuCWMSP 0IHKkYlbFj32WifpMsRecqri+sdm61jCQtUUh4z4xl0QkHom4kEvaSxRhJiVpf9imU b0/R3G8KfqyICWJTM9etULtSDwZFh3AG5//ObUBE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200910193424eucas1p1f963bb4e8482c8c74981582ae251b964~zgx_1DYCw2934729347eucas1p1K; Thu, 10 Sep 2020 19:34:24 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id EA.0D.06456.0CF7A5F5; Thu, 10 Sep 2020 20:34:24 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200910193424eucas1p15de706cc359e51f1ef449e5dbf1872e1~zgx_Fbvc92936529365eucas1p1P; Thu, 10 Sep 2020 19:34:24 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200910193424eusmtrp15d7d1ddf61d50058b2e96bdad2b96fad~zgx_EjXXh3165331653eusmtrp1v; Thu, 10 Sep 2020 19:34:24 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-86-5f5a7fc05eee Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 38.8A.06017.FBF7A5F5; Thu, 10 Sep 2020 20:34:23 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200910193422eusmtip2a39e9c9c91cd6d36f6378a780a85b8ec~zgx8SFTxQ1532615326eusmtip2N; Thu, 10 Sep 2020 19:34:22 +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: Thu, 10 Sep 2020 22:33:37 +0300 Message-Id: <20200910193400.15326-5-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910193400.15326-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0wUVxTGc2dmZ4YN24wjCSfYYNxIoqaKiCZHrdoaUieaGB/9i1RxW6b4 gJXsACqJkW4boCulsKDiCyirQRFZeS5SobCmgCyPQgpCRMUHEVBcWCQVi1rWWdP/vvP7vu+e m5vL02IuG8QfMCbIJqMhVs9qmZrmma7ljScio1Y2t3+G9vZ8go8f2Ggcyr3P4smJnyjsL9mE txwXNGh9mEJhpnWSQscVC4svhswMvvQ4KBysd3F4rsfMocf5jMNfus4TfDY7RuPZwimCXfnV GpxpqmPRPVvEYOabXoK/VrUSbMmYZDD3Zi3BVIuAE1eLObQNBqNnqJVB10Alh6XT3TRWt78l mN1iJ9iR+l7zxSLpTeFljWS7NUpJOb9101LzwGlOyriTT0nlL2spyd3Qy0qZVSVEant8kpau PX3N7tBGaj+PlmMPJMmm0I37tPtby47Et3FHn1xqYlNIDWshfjwIq6HY7NZYiJYXhSsEZvoc RB1eEbj4VyetDlMEXpT20h8rty25jGoUE+isS/VVpgn8Pjyp8aZYYQm40vMprxEglLPgmL1L eY35QgR0XB5jvJoRQqDBev1DQSesBcsfab5bLYRrNxrn1vG8n7AOHg3u8WJRCIa7Ba8+nAlC Kw+2h2mMmo+AvvoCn54PYy1VnKo/BVdOBqMW0ghk11Ry6pBF4Mfz477UJqh63sl5t9HCUrDX har4S6jsdVBeDMIn0D8+z4vpOWmtOUOrWAfpqaKa1kPjnR4fBnj7r7+KJbD3uX2PVU/gTFsl l0UWnvt/VyEhJSRQTlTiYmQlzCgfWaEY4pREY8yK7w7HVZC5v+p61+KpJdM93zqJwBO9v65x XWSUqDEkKcfinAR4Wh+g29zh2ivqog3Hkm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tnmKCkbpzHyB3n+EG/4v0eIvfzSUMOX9Kye0Znk8QMj8Yz/CqmgLp9Q hUV/sDq26y78PvbEsvhjWYpqYqj7RVRHpU9+z1Nb5LkoW+7xTv9lzoGr0rlpe8nT1E2DR6wx 924Fzewf2Fv0XdHnoiO6iLKdlkKXU5N7xm8PPVm827SjeGjyeVCSsjKzr+pUSm9OypaRYJqV UUK8RrGGNAiaP3VxJFAHAwAA X-CMS-MailID: 20200910193424eucas1p15de706cc359e51f1ef449e5dbf1872e1 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200910193424eucas1p15de706cc359e51f1ef449e5dbf1872e1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200910193424eucas1p15de706cc359e51f1ef449e5dbf1872e1 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200910193400.15326-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v10 04/24] net/ixgbe: 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 Signed-off-by: Ivan Dyukov Reviewed-by: Wei Zhao --- drivers/net/ixgbe/ixgbe_ethdev.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 248f21d14..34a171116 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -4300,11 +4300,7 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev, switch (link_speed) { default: case IXGBE_LINK_SPEED_UNKNOWN: - if (hw->device_id == IXGBE_DEV_ID_X550EM_A_1G_T || - hw->device_id == IXGBE_DEV_ID_X550EM_A_1G_T_L) - link.link_speed = ETH_SPEED_NUM_10M; - else - link.link_speed = ETH_SPEED_NUM_100M; + link.link_speed = ETH_SPEED_NUM_UNKNOWN; break; case IXGBE_LINK_SPEED_100_FULL: -- 2.17.1