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 6DDDFA0528; Sat, 11 Jul 2020 12:45:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F245D1D9C6; Sat, 11 Jul 2020 12:44:39 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 8073C1D9C3 for ; Sat, 11 Jul 2020 12:44:38 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200711104438euoutp019c804494e1e7b386448720c62a3a99de~grNAyhu9F0814708147euoutp01U; Sat, 11 Jul 2020 10:44:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200711104438euoutp019c804494e1e7b386448720c62a3a99de~grNAyhu9F0814708147euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594464278; bh=1R9omrZ5fAPdKYuUkOS/6cuY8buXbZ+pEv8UB5bwG/w=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=J14y3gfANobOrvRgTEXwV53DG6u+e/DJ44woqHX2QXCQbgcMFg5HqGDpXatFsBDJa 6ZRegHXLy6RZZlPWa/m4AIwrDUCmUvm8sj2KDre12d07j8Q6qbRRJ5ylICLXrmW3JK OzlPrMFpu3l0rZ0prRbH8V5znh+9cIypsqOmK/BE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200711104437eucas1p2fe63fb538a77114e04b38dec56174ec1~grM-vBYHx2330823308eucas1p2d; Sat, 11 Jul 2020 10:44:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 42.55.06456.418990F5; Sat, 11 Jul 2020 11:44:37 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200711104435eucas1p2672c6948de9e152526837ff520e37513~grM_kDgFL2340023400eucas1p2P; Sat, 11 Jul 2020 10:44:35 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200711104435eusmtrp1d173840b7d1767af72dcb957ee915dea~grM_jAfp42954729547eusmtrp13; Sat, 11 Jul 2020 10:44:35 +0000 (GMT) X-AuditID: cbfec7f2-809ff70000001938-24-5f099814e8a8 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 0E.07.06314.318990F5; Sat, 11 Jul 2020 11:44:35 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200711104434eusmtip1af9682c4537b6464b8e255658daeaae6~grM80IX-f0946309463eusmtip1x; Sat, 11 Jul 2020 10:44:33 +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: Sat, 11 Jul 2020 13:43:51 +0300 Message-Id: <20200711104414.15422-5-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200711104414.15422-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUxTdxTGc+69vfe2sXqpLJ7olNhlyWYizGwfjptRHESvX5bFJUs2s+Gd 3gEZraZXfNmyjDVIWOlQK9EpW61lG2+bCJZSFQw0atEiDjYGxpcRXWJQC1IFBwLOcrvs2/M8 55zfOfnnL7KW/fxCMd++Q3XYlQIrb+KCFye6l7/wnTHnta4Shhq6vEC3b1WxNFhxk6eyh8UM DdStodaW7w3k+auIoXLPKEMtNS6eHgw6ORqOtzB0oy0q0NFep0Dx8F2Bvr1aCXR36h5LR3yP gK56mw000XGGp5EpP0flk31A+wKdQBH3KEcVp0NAJS6JHtZWC1R1YwnFBzs5il47JdAvYz0s NXdNAx2INABdKXlmyFwqT/p+MshVrUOMfPB4DytfvHZIkN2XvIzcOBxi5JFzfbxcHqgD+fLt Mlau//sf/l3Th6ZVW9WC/J2qI2P1ZlNe54ld2y8Lu+/82MEXQZB3gVFE6Q08UFfLusAkWqQa wCaPl9HNY8D6gWZBN48AKyfGOReIsyM3G3g9rwYc7atPmjHAp20BQ4LLS69gtFRHpUqNPLZM 9TOJwnwpC/1+9yyJk17GkDM/EZullehuvi7oN6Vh/cl2NqGN0ps4PfLbrLZIS7D/2ONZJkpd Ip74ZpLXL8rG4V9lfXY+3osEkpwXMXowsSqhv8AnTf2CPlsKeMu/N9m0BgP3u4UEh5VexYYz GTpyLf4xtE6Xc3EglpJoZp9LT/Awq8dmLC2x6Awrtl/qTcaI00/n6LGM461nk2/bBvhnXwz2 Q9rR/1f5AOpggVqo2XJVbYVd3ZWuKTat0J6bvmWbrQme/9PoTCQegrHeT8IgiWCdY/YpYo7F oOzU9tjCgCJrTTW/fSX6scW8VdnzuerYluMoLFC1MCwSOesC8+v+oY8sUq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M6iZng99DYFXG6LsHTtG501eOudL dZP/+iQ8ZmmJ9Lq/5sKGbZNyXg19qR5xzOzqa+8bExaF5ZTWBfTzat/4/NWWrnX79nelH9gR niHoH9Zp0m65DZ3ZOFhARZTL9ZErOiOnrmwxO/IfPNKZMj6Hvx+0891vf6ax6YeWx//ebqv7 qaSkWK1qLmmQtH8BYjTKUAYDAAA= X-CMS-MailID: 20200711104435eucas1p2672c6948de9e152526837ff520e37513 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200711104435eucas1p2672c6948de9e152526837ff520e37513 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200711104435eucas1p2672c6948de9e152526837ff520e37513 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200711104414.15422-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v8 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