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 694E8A0520; Thu, 2 Jul 2020 15:22:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 906F31D9FA; Thu, 2 Jul 2020 15:22:17 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 1B7A81DA09 for ; Thu, 2 Jul 2020 15:22:16 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200702132215euoutp02306a385fad0f2b89288969a50faf627a~d8jEb9ynW1774017740euoutp02K for ; Thu, 2 Jul 2020 13:22:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200702132215euoutp02306a385fad0f2b89288969a50faf627a~d8jEb9ynW1774017740euoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1593696135; bh=17ibl6HaLPxBGNOacQTc7ZFoyHravyHHIuegItowmfE=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=I1/Qd8Peo+SOKmA5Raa4Nc2FnKBQ8BIni5+0Qs2S2+gaTVgSDVK5lb9AdmgVtDL0U vKsAT57l1wD5Qp0L1ZGmmFhvJOiouU9qk6Q2HiuvBQXWm7bLagHSmEXU9AXI4sq9pA HzQGpIoUFxaOiK5eVKMyIFr8k1eOs2NJZ6wg6B3Y= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200702132215eucas1p141c52fb238bf915e2094997f7ce66263~d8jEPGwXD2046320463eucas1p1c; Thu, 2 Jul 2020 13:22:15 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 5A.00.06456.78FDDFE5; Thu, 2 Jul 2020 14:22:15 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200702132215eucas1p1f282fb3fd02e2107658bde6adc5d5166~d8jD4b7nU2044920449eucas1p1E; Thu, 2 Jul 2020 13:22:15 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200702132215eusmtrp243d06eca9050d302090bcae28964e9b8~d8jD3q4mW2389023890eusmtrp2x; Thu, 2 Jul 2020 13:22:15 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-13-5efddf872aa2 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id C9.E2.06314.78FDDFE5; Thu, 2 Jul 2020 14:22:15 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200702132214eusmtip204d2a63caa8a7639a0a109ac6c19c0cb~d8jC_Lpyf1144211442eusmtip2q; Thu, 2 Jul 2020 13:22:14 +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 Date: Thu, 2 Jul 2020 16:21:32 +0300 Message-Id: <20200702132139.28078-6-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200702132139.28078-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSW0gUURjmzOzOjIsr02j5Z6K0KWblDQunSNPqYcCXeikwUrd2UPHKXiyL QCxT1jBRK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7BZr vl5ktth65i+jA5/HrwVLWT0W73nJ5HHs5jR2j56T85g83u+7yubRt2UVo8epR93MHquf/GAL 4IjSsynKLy1JVcjILy6xVYo2tDDSM7S00DMysdQzNDaPtTIyVdK3s0lJzcksSy3St0vQy/j8 U7fgFHvFwW8lDYzb2LoYOTkkBEwkZu88D2RzcQgJLGWUaLs6h7GLkQMoISHx+gkzRI2wxJ9r XWD1QgKfGSVennIAsdkENCROd8xjArFFBO4xSWxZqQpiCws4SvS3r2YBsVkEVCWeHj/PCmLz ClhK7Gtdyw4xU15i9YYDzCCrOAWsJLac4IMYnylx+fUVqFVyEtfnf2GawMi3gJFhFaNIamlx bnpusaFecWJucWleul5yfu4mRmA8bDv2c/MOxksbgw8xCnAwKvHwTjj+N06INbGsuDL3EKME B7OSCK/T2dNxQrwpiZVVqUX58UWlOanFhxhNge6byCwlmpwPjNW8knhDU0NzC0tDc2NzYzML JXHeDoGDMUIC6YklqdmpqQWpRTB9TBycUg2M00yy/5SUmR3W+FX5cv18jsbPqoHaRau8DRrd du40ymxlzBWdqVwZNNFq757CK4u+xVw295mda1ef2v6fufWqzre/Nna3s6UXHL85x/Fh5PW2 eW8rl4TxuWv+fGG72yO3/MLONRv4722W8Wa8/mlpRJbujzU/ZXrOsYX/0TO4Ovm9e6rKnKJb SizFGYmGWsxFxYkACYN6JJ0CAAA= X-CMS-MailID: 20200702132215eucas1p1f282fb3fd02e2107658bde6adc5d5166 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200702132215eucas1p1f282fb3fd02e2107658bde6adc5d5166 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200702132215eucas1p1f282fb3fd02e2107658bde6adc5d5166 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200702132139.28078-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v4 5/7] 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 a4e5c539d..5b9b13058 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -4311,11 +4311,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