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 57C63A0526; Fri, 10 Jul 2020 09:03:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 538701DBE1; Fri, 10 Jul 2020 09:02:53 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 69B9B1DBDA for ; Fri, 10 Jul 2020 09:02:51 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200710070250euoutp02f99904be40fcb7fb22c27f04d0f0aa12~gUiFCrbz11632016320euoutp02L; Fri, 10 Jul 2020 07:02:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200710070250euoutp02f99904be40fcb7fb22c27f04d0f0aa12~gUiFCrbz11632016320euoutp02L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594364570; bh=1R9omrZ5fAPdKYuUkOS/6cuY8buXbZ+pEv8UB5bwG/w=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=NsBv5zB8WLyXkBTtZtqJbI/EUN6neo2qQ8PT5c/dBZNcK7DwYyR/1mxCEV5JpZGae cnDHReBo3aE+Axe6ABJxafk94UUQZMp39Ykp7lFz2h6YrfI+R+CsQWuCkQb4nyQW5v dZe8Ten7tzU10y4gaqcB7z8Kv+iuDyGXdTvjbtYU= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200710070250eucas1p171191609106dd0f51ef2ac90df704a25~gUiEv8REa1965019650eucas1p1o; Fri, 10 Jul 2020 07:02:50 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 02.31.06318.A92180F5; Fri, 10 Jul 2020 08:02:50 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200710070250eucas1p16b6e5acceef4c78f1b73463bb9264b52~gUiEZ8jyK1572015720eucas1p1v; Fri, 10 Jul 2020 07:02:50 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200710070250eusmtrp2c2fb239a7525bcf381f73a4a07ae397a~gUiEZAjwV2959329593eusmtrp23; Fri, 10 Jul 2020 07:02:50 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-87-5f08129ad768 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D1.04.06017.A92180F5; Fri, 10 Jul 2020 08:02:50 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200710070248eusmtip1b6a9ae81a63f5cb62dd31f5e6c7bddac~gUiCorWsA1544015440eusmtip1d; Fri, 10 Jul 2020 07:02:48 +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:03 +0300 Message-Id: <20200710070226.6045-6-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: H4sIAAAAAAAAA0WSe0wTWRTGc2emM0Ol7lA1nrjGrjX4SlbXYMzRmPW9TnaNMTFGdINQlkkx QtHW+kwMC4qkKFVkNQIiFg0PiWC3UjBd1MZYaFGCEfGJBE2QlwpKXLBYKVP1v9/5zvm+c3Ny eVp9ip3CbzfslowGXZKWVTLVd4aafs5T87G/2Ow/YWVjIcGOtmIa23Ofs5j17jCFj8qXoctZ oMCcF6kUZuf0U+gstbDY257G4JsBJ4XP/vNxmHc/jcMBdyeHx5vyCXb6u2k8W/SeYFPhNQUO 3brO4lu/jcHs4RaCVkc9Qc+xfgZza2sIZlgEfFdWwmHxs2k40F7PoO/xvxxWDDbTeK1xhOBJ TyXBuxkBxfLp4nDRJYVY7OqixFMXmmnxzuPTnHisoZASr76pocS3dS2smO0oJ6K3I4sWL7/6 n92g3KpcmiAlbd8jGef/GqdMrL+yd6eX2/fy4i02lVSzFhLGg7AQSnoqKAtR8mqhlMAT6z+0 XHwg0FE5wMrFewKBgP+b5URVfahRQqDzXC8nF4MEcrsLxqZYYTb4MgvHgicKV1lw+lupYGOC sAoyvG1MkBkhEvKHm+kgqwQEpyOXkldo4HLVzTE9TFgMRyw2LshqYRq0nv8wFgpCIw/pPkfo Tash39ofMk+Abo+Dk3kqBGrPh/SD8NHeysnmTAJttiOhoWXg6Lk3yjxPC3Og8vr8IIKwAtKH Vso4Hh71RQSH6VHMqT5Dy7IKMjPUcoYWbjbcD8kAI5/CZVmEp+ldoYu6Ri9qvc2eIJq876uK CCknkyWzKVkvmaIM0t55Jl2yyWzQz/srJdlORr+q77NnsIbU+ePdROCJNlwVN8LGqhW6Pab9 yW4CPK2dqFp517dN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BEJVIeoQ9VpQ+MpyuPZ9ci5eYxSSBCFFMPz3EazULx1FbvGJi292Zy2zKZwFtflDbC5M 6HemcC1H6EXWthNX12q9mx/Htm71suum01jT4ETibn1aN8MdPHY7evm7VmvAcX3v9pVJzsix ojpcaMlqejqupj6F/667P//QnprYVu3QwK2qwz+pL5vPTlZHz9uWJH3vTK8+PyJYlVGDvqkq BSUmaFQrSIOo+QfFeh24BwMAAA== X-CMS-MailID: 20200710070250eucas1p16b6e5acceef4c78f1b73463bb9264b52 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200710070250eucas1p16b6e5acceef4c78f1b73463bb9264b52 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200710070250eucas1p16b6e5acceef4c78f1b73463bb9264b52 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200710070226.6045-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v7 05/25] 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