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 D25CAA00C5; Mon, 6 Jul 2020 22:27:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EF9B21DC91; Mon, 6 Jul 2020 22:26:56 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 96E291DC8A for ; Mon, 6 Jul 2020 22:26:55 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200706202655euoutp02376a043dc0e9d04ad3f81951fdc15647~fQ6-CuG_42313123131euoutp02G; Mon, 6 Jul 2020 20:26:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200706202655euoutp02376a043dc0e9d04ad3f81951fdc15647~fQ6-CuG_42313123131euoutp02G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594067215; bh=1R9omrZ5fAPdKYuUkOS/6cuY8buXbZ+pEv8UB5bwG/w=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=l6mUu/fRH4miOrx58FFb2h9bxac8Iq290xxfIJPjKvzETpKMIRmpcNj/4PF+0jlHT 8zLPY086qKF5D2d4guSfy33DmgHvrTRwMl7GqHxStYht+MWNYxJ7CbLS7EejS5xiTZ 4hkOUsN2urWV3aIht/ErIvBI2YjZQcUSiMLmmmZA= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200706202654eucas1p2138358a919b2dd17e71b8ca180b38fff~fQ6_JA01O0115901159eucas1p2c; Mon, 6 Jul 2020 20:26:54 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id CE.89.05997.E09830F5; Mon, 6 Jul 2020 21:26:54 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200706202653eucas1p2d1714d7aab0ca69d129654ea91a1dae3~fQ69Zzdet0114101141eucas1p2k; Mon, 6 Jul 2020 20:26:53 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200706202653eusmtrp2f87a390de1aeb79dad50b22ab9a95bda~fQ69ZBxb83205132051eusmtrp2o; Mon, 6 Jul 2020 20:26:53 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-9a-5f03890e98a2 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id DE.3E.06017.D09830F5; Mon, 6 Jul 2020 21:26:53 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706202651eusmtip15e277f9ec7176dc726bf0f09c6d64f64~fQ67rKUtP2342423424eusmtip1Z; Mon, 6 Jul 2020 20:26:51 +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: Mon, 6 Jul 2020 23:25:55 +0300 Message-Id: <20200706202626.28628-6-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200706202626.28628-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0yTZxTHc947jdV31cwT5iV2Lk6TiQ43znQZ8/LhHXGXL34xmVjHm2JW atNymbolxDiChbEJ6ILbWgZuOjCiUtrKZAPCbEtRlIwUFBywJSibFhAyBZRR3pp9O//f/3+e c54nj8QayoREab81W7VbTRajoOO8Vx93vrLwGJu+IfzzIqrrcAEN3almaaC8X6Ci0aMM9dSk 0hXftzyV/pHPUEnpGEO+s06B/hk4wtGDcR9DfU1hkU51HRFpvHVYpC86vwEanhlhqaLyIVCn q4Gnxy2NAkVnqjgqmeoG+tITBAoUj3FUftkPVOCUafSnMyJV962g8YEgR+HeepHOTd5kqaHj CdDxQB3QtYJZ/u1VylTlD7xSfeUeo5R9f5NVrvaeFJXikItRLj7wM0r0l25BKfHUgNI+VMQq tX89Ej7Q7da9maFa9ueq9qS39uoyg+fzbO3iJ3+ebhHywSs4IUFCeRO6p73gBJ1kkM8CRmtK eU1MANY7b3GaeAhY0X4enrXc7iphNOMMoGewLy4mAYt8Q1wsJcgvY7jQNW8skS8K6JuJzAlJ Wixvx+nuVbEMJ7+E3XddbKzWy2/gj6ePxiesxNoLzfM8Qd6MbdH6+WUN8gqMuCfmz0S5Q8Li /HOM1rADJ5v98RstxpGAR9TqZTh72R3PHMZ/L0VErbkQ8E7V5/FQKnr+vi7GlmPltVjXmKTh rRhpi0IMo7wQe+4/F8PsXFnq/ZrVsB4LCwxa2ojNoa44RnwyvUDDCjYNlsdftAlw9O4U8xWs PPX/rEqAGliq5jiyzKrjVauat95hynLkWM3rPzqQdQnmvmr4aWDCD40z+1pBlsC4QF8osOkG 3pTrOJjVCiixxiX6bdfCewz6DNPBQ6r9QLo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IXHzSUfbt6aOeY7XpN09wY6m2UfPzq1t rzzF4sZvGyZyZSsF62jmC8YvPPtwG15/fknK5nlklajsYJ+lgKrsOjLt2XIzYt3O7rykXWlH /1iimOKhzHkxG1VlPX6xK5S+ZSXJF84/yg7bdjp0g3/9glt09I6es5s8PuXptrR6aeRIYxzp dMgpQaNml5MGQf0Xea06eQcDAAA= X-CMS-MailID: 20200706202653eucas1p2d1714d7aab0ca69d129654ea91a1dae3 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200706202653eucas1p2d1714d7aab0ca69d129654ea91a1dae3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200706202653eucas1p2d1714d7aab0ca69d129654ea91a1dae3 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200706202626.28628-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v5 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