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 7E0E1A04AF; Tue, 11 Aug 2020 10:54:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 66D1D1C0C9; Tue, 11 Aug 2020 10:53:13 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 871C71C0B2 for ; Tue, 11 Aug 2020 10:53:09 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200811085309euoutp017ec762c0df60e8aae3f91f1999b418ff~qKrhnZSIV0892608926euoutp01H; Tue, 11 Aug 2020 08:53:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200811085309euoutp017ec762c0df60e8aae3f91f1999b418ff~qKrhnZSIV0892608926euoutp01H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597135989; bh=1R9omrZ5fAPdKYuUkOS/6cuY8buXbZ+pEv8UB5bwG/w=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=GlHUkEXB6M/trMMwPyGmYyyzJ1GVY5Bcug9aubZ6R36xTOYSKD5OJ/d2asY5ZIkCb Qcxb7mySrmblrmQyke/DVbnHH4yXY2nLekNbfvxDP2dSxj+1qCNG7x6RBqXjQR/q6E 2Jet5+B+Evzk6O4OpIWbCNe9uM18XqmuuJyTXKqU= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200811085309eucas1p2acb05bdda71007a9e3abb21d860c3363~qKrhaniMx0929809298eucas1p2y; Tue, 11 Aug 2020 08:53:09 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 57.A1.06456.57C523F5; Tue, 11 Aug 2020 09:53:09 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200811085308eucas1p2cf3b04f5745c2b0d525b6c57bb8e6876~qKrhCZOy80326603266eucas1p2u; Tue, 11 Aug 2020 08:53:08 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200811085308eusmtrp17bbd4587c4757d013b242437939d7c79~qKrhBeZQq1603916039eusmtrp1Z; Tue, 11 Aug 2020 08:53:08 +0000 (GMT) X-AuditID: cbfec7f2-809ff70000001938-ec-5f325c75d44d Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 34.4D.06017.47C523F5; Tue, 11 Aug 2020 09:53:08 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200811085306eusmtip1d03c91ddb9a4c293e8ad352950c442c6~qKrfKSL0A1849018490eusmtip10; Tue, 11 Aug 2020 08:53:06 +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: Tue, 11 Aug 2020 11:52:23 +0300 Message-Id: <20200811085246.28735-5-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200811085246.28735-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSe0xTdxTOuff23ku15lpJPFMmoYnGaaYDXHLEbeheucn+MfEPjGGyDu7Q CBV7qQ8yE6YGTUHKK2MTVpH6YOBkaC3gwGizWKAggkF8IOArRh1QwDpUnKNclv33ne/x+05O fiJrLOQXiFstmYrVYk4z8XrOc+Xl1fdtiTFJH7z9haXadifQ/X4XS4Mld3nKDRxg6GZ1PDXV l+uoaCCbofyiUYbqq+w8/TW4j6PhsXqG+pr9Ah3p3ifQmPexQIc7y4AeTz5l6eeKcaBO53kd vbx8gaeRyUqO8l/1ADncLUC+vFGOShobgHLsEgV+PSWQq28RjQ22cOS/dU6g08Euls63vwEq 9NUCdeS81a2Nkl9VnNDJrqYnjFx8rIuVr9z6UZDzWp2MXDfcwMgjF3t4Od9dDXLb/VxWrnk4 wa/Xb9J/lKKkbd2pWFd+8o1+S8uZXRltwu4Hxy/z2eDh7SCKKK3C1sZkO4SJRqkKsPmPRDvo p/BzwMGOAkYTxgEPBNNCOOR3lQZ4zXQK8GTNb6ANQcBnnsB0gpeWov+QkwkJ4VIdj/WTvdPC POkzdPf/xIWqOWkx+s4sCdEGaTXeKCzVaQ2RWPP7JTaEw6Q4rCkbYLUtFmHv0efTb6LULmJx XSurBT7H08V3ZsLz8KnPLWg4Av3FeZwWOAhY6DknaEMB4P6yoRlXPLqfXRVCG7HSe1h7YaVG r8Oe0SCj3WgO3hyaG6LZKVjkKWU12oCHcoya24SXWrtnaMQ3r2drtIxVD5pY7T7NgM6L5XwB RB75v6sCoBrmKzY1PVVRoy3KrhWqOV21WVJXJG9PPwtTH9X/j2+sAYLd33pBEsE025CxJjrJ qDPvVPekewFF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Vcc07veJ9EU y6pYNQSz6gB1QBDIV0rPMo3RMiZOY+JP8LyBN/7fIyQe3hloj+dqx3RRRGfVtcKeGS4kJlC7 b8Jgvr3qNRmaExGVF+LbkSJKXV0ZJek2OdJb6tRHDZsjE3zC3rQrHJk54eVFg3ue5h40Z+09 YN2uihz2k893qOqXmkfnzeNMypSWrS3r/yWtTo7cEeMozDqZjX7sOz25/5m9eIPTp+BRTlCv WE4J8Rp2E2kUNH8BTqtZBQYDAAA= X-CMS-MailID: 20200811085308eucas1p2cf3b04f5745c2b0d525b6c57bb8e6876 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200811085308eucas1p2cf3b04f5745c2b0d525b6c57bb8e6876 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200811085308eucas1p2cf3b04f5745c2b0d525b6c57bb8e6876 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200811085246.28735-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v9 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