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 D1FAEA00C5; Mon, 6 Jul 2020 22:38:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 76B9E1DD17; Mon, 6 Jul 2020 22:38:09 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 879DD1DD33 for ; Mon, 6 Jul 2020 22:38:07 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200706203807euoutp013fa44a49f07bcd972343e5e00df0183a~fREw1fdcY3113131131euoutp01V; Mon, 6 Jul 2020 20:38:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200706203807euoutp013fa44a49f07bcd972343e5e00df0183a~fREw1fdcY3113131131euoutp01V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594067887; bh=1R9omrZ5fAPdKYuUkOS/6cuY8buXbZ+pEv8UB5bwG/w=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=Uwu5n5Dm8LK70x9ab+MMO+56w1QF8MOgqiKs1Eycqt0LcijdFpsi0ajrVTVYgutnV 9qO2+cbUfQSnbtqQbtzU7s2QAe0pBd79YjMKeOADlfS+HqZGsWo6ex7LI0KkZfKUFo BHXtFhASb2HYvDdX8ML6AAy+TpsrugOym6Hv/Zws= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200706203806eucas1p156a7f508ed49c394902c2e6d9ffb3a0c~fREvy2jIl2654826548eucas1p1z; Mon, 6 Jul 2020 20:38:06 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 85.C9.05997.DAB830F5; Mon, 6 Jul 2020 21:38:06 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200706203805eucas1p2b8c92ded7d87356c788dec9e936edf43~fREvZqmMg2126821268eucas1p22; Mon, 6 Jul 2020 20:38:05 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200706203805eusmtrp1aa475548ce5dc19f68f645570a930959~fREvY1Kxi2965829658eusmtrp1n; Mon, 6 Jul 2020 20:38:05 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-ac-5f038bad7e7a Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id BF.CF.06314.DAB830F5; Mon, 6 Jul 2020 21:38:05 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706203803eusmtip11ebc3a371d7f55e23ddf4c0ba82f564d~fREti7PCk1791017910eusmtip1j; Mon, 6 Jul 2020 20:38:03 +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:37:19 +0300 Message-Id: <20200706203743.29416-6-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200706203743.29416-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUxTZxTH89x7e++loXpXNJwwwdjE6Ex8AV9yXBadcx+ufpnJlhh1G9Zx g8RSTCuI7gtz2jRtqQq+RBwvpSgKDkQLBQaKGC1QFK1BZONN1Ck6AYEOQdjG9dbs2++c//85 /5OTh6e1TjaKTzLuk0xGvUHHqpmq2xNtS8vsdPyKyQQsb80j2N/jprHvRDeL9uHDFD4qWY91 3l9UmNWbQaEz6w2F3gs2Fv/qO8Tg4IiXwq56P4c5gUMcjjQ+5zCz7SzB51MvaTxTMEqwLa9S hRM3alkcmipk0DnZTvCop4mgz/GGwRM11QQtNgGHLxZz6O6KwZG+Jgb9nVc5vBS8T2Nl6zTB 475ygncs/6o+XyBOFpxTie66AUrMdt2nxdudpzjR0ZxHiRWD1ZQ4dK2dFZ2eEiK29NtpsfTp W3aLerv6swTJkJQmmZav26ne3VS2f28Ll/6k6AabQapYG+F5EFZBl+UjGwnjtcIFAmUjUTai nuExApl1r1RKMUrAFiyiZZf8oHy4ilaEYgKnJ86HiiCBnyveqWQXKywGvzWPkoU5QgUL3qkO ShYihI0wWOlkZGaEheB2FLwfqxHWwm8Px0MR86H0cgMt7xcmfAq5t6KU/WKgI3+MUiytPPwx lKbwl1D5ooZTOAJe+jwhngf+bAej8I8wfqWDk/cBwUqgp/BIyLQePK/ucnIWLXwC5bXLlbNs gEDJGgVnwaPX7y9Ez2BW1WlaaWvAatEqM3TQ0BwItQGm34UrbRHa3ZcZ5Tj1BH7yuahjZH7O /1EFhJSQSCnVnJwomeOM0v5lZn2yOdWYuOyHlOQrZOaX+v/xjVWT2qldjUTgiS5cY2XpeK1K n2Y+kNxIgKd1czRf3PF/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BWqFSqlSrgLZXImFrd0hZSO0Jj6a52N54/8cIfbwSUBEe47FtajgrKxzdMueo42H4rqI 0KYyzphy6a6f7p6geeSgstQDrukjhnmbHDnXmSCL95N1+3eEf/yhK7w6cj8u+3R2wepVhV5f 7dHjNv/umiXzy9OnfTVneMWUbA4ZdtwMXutffH7jQGpYc6/L3+P+3LGAB3Alqflhkq99TjLp UsooIVKrWEYaBe1faCDrWwYDAAA= X-CMS-MailID: 20200706203805eucas1p2b8c92ded7d87356c788dec9e936edf43 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200706203805eucas1p2b8c92ded7d87356c788dec9e936edf43 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200706203805eucas1p2b8c92ded7d87356c788dec9e936edf43 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200706203743.29416-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v6 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