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 37575A04A4; Tue, 26 May 2020 21:11:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9434E1D71A; Tue, 26 May 2020 21:11:00 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id BDA281D717 for ; Tue, 26 May 2020 21:10:57 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200526191057euoutp0132eb46a07ac5dbe6d5d11fa79426e5f9~Sqb9RUA0s0044500445euoutp01N for ; Tue, 26 May 2020 19:10:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200526191057euoutp0132eb46a07ac5dbe6d5d11fa79426e5f9~Sqb9RUA0s0044500445euoutp01N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1590520257; bh=xT5j1nj1DdFTRPLN/UuV43EkTsRJYECBQbvaE2okZEk=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=SE7w/evrzm9x2NVMDzqD7rpD2xMPZYj2//yikM0pZY6iy3/IdKOdIzbvv/m8FLGdi NVaP5XsYP3Y6SdLB0Qdd+6u2CZVq6C2+ckWBGkZoZZ6M98JcBElpjI0Fkuj7GjmBJ7 5tWkfR2KmmaE8aQBONVxUoRWqNZ5za0W8fOzve8o= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200526191056eucas1p232f2d98130ee4e0fe9b63908cb332155~Sqb8bNMAH0108001080eucas1p2s; Tue, 26 May 2020 19:10:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 26.B3.61286.0C96DCE5; Tue, 26 May 2020 20:10:56 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200526191056eucas1p2985e531db4a95745ca70e0bc4e9d6cdb~Sqb8BboSI0110401104eucas1p2h; Tue, 26 May 2020 19:10:56 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200526191056eusmtrp1a2886372bef83a4e021ee9ce98936b77~Sqb8Avndn0430304303eusmtrp1P; Tue, 26 May 2020 19:10:56 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-e4-5ecd69c08215 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 33.F0.07950.0C96DCE5; Tue, 26 May 2020 20:10:56 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200526191055eusmtip1270843f8583cc3f2cac5a0b9e4bb5253~Sqb7Nv-Pl1925619256eusmtip10; Tue, 26 May 2020 19:10:55 +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 Date: Tue, 26 May 2020 22:10:08 +0300 Message-Id: <20200526191033.16459-6-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200526191033.16459-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSfyyUcRzHfe+5e57HzdnTsXyi0q5pspxumj39lvXH80db5q9qI1eejrhj d0fUH2hct9NEXYwN18WYY/mVo1HHjNqRnDWEUr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UhI7+4xFYp2tDC SM/Q0kLPyMRSz9DYPNbKyFRJ384mJTUnsyy1SN8uQS9jYtdF5oK57BVzN1Y0MPaxdTFyckgI mEjMbLjJ2sXIxSEksJRR4v/GRUAJDqCEhMTrJ8wQNcISf651sUHUfGaUmLJlNSNIgk1AQ+J0 xzwmkISIwBImib2rzoElhAUcJV5s+MsCYrMIqEocOLiaFcTmFbCUmL6kjQliqrzE6g0HwDZw ClhJvPmyHKxeSCBTYv2d+WwQtpzE9flfmCYw8i1gZFjFKJJaWpybnltspFecmFtcmpeul5yf u4kRGPDbjv3csoOx613wIUYBDkYlHt6E32fihFgTy4orcw8xSnAwK4nwOp09HSfEm5JYWZVa lB9fVJqTWnyI0RTowInMUqLJ+cBozCuJNzQ1NLewNDQ3Njc2s1AS5+0QOBgjJJCeWJKanZpa kFoE08fEwSnVwLhEU/Bo/5rMKzOcPGRtWe64eZZLdyWytgqvbVT5cft/0qpVfNanZRaY5c22 W1UdZtDtLua8ykOZb/XN2+fSLSoNPklelxKoD7/UtThWrPBjwcbia/eLF04/vHOtpufisyXx qrFRIafdxP9op02r9+RKrkhZ9YPB4tikkO07Sovv3Gft+/drlxJLcUaioRZzUXEiAE+cYGaO AgAA X-CMS-MailID: 20200526191056eucas1p2985e531db4a95745ca70e0bc4e9d6cdb X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200526191056eucas1p2985e531db4a95745ca70e0bc4e9d6cdb X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200526191056eucas1p2985e531db4a95745ca70e0bc4e9d6cdb References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200526191033.16459-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v2 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 --- 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