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 61560A0093; Mon, 15 Jun 2020 11:03:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C0A81BC25; Mon, 15 Jun 2020 11:02:19 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id C460F1B5E1 for ; Mon, 15 Jun 2020 11:02:17 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200615090217euoutp01f1b6fe37dbff6337302e86b47dd0f4f8~YrCOgYNBh2224122241euoutp015 for ; Mon, 15 Jun 2020 09:02:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200615090217euoutp01f1b6fe37dbff6337302e86b47dd0f4f8~YrCOgYNBh2224122241euoutp015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1592211737; bh=xT5j1nj1DdFTRPLN/UuV43EkTsRJYECBQbvaE2okZEk=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=iYTW6mFXp07/iGfEFrp52PTl/NFJrKw6EGRe929fm4ty6LD6SruVQulbpJkES2XCB bzQicfc8ZpER1lzFNVFC6BeGvct3QRi+jFd4yUeKvRqpEK0ea/tWGLth3UxAb4mDzq jXiFY2JHM1IuLLm+vIkmutc51zq5mtZHvBXLszMU= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200615090216eucas1p1f0dfbf662da31132576a6f30e9d82fc4~YrCON6k-y3274932749eucas1p1A; Mon, 15 Jun 2020 09:02:16 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 35.E0.60698.81937EE5; Mon, 15 Jun 2020 10:02:16 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200615090216eucas1p2bb5a2c7d6e0baff96990aeba2623bb3d~YrCN4HMlR0261002610eucas1p2y; Mon, 15 Jun 2020 09:02:16 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200615090216eusmtrp16ad542176b24841eb38be6abb633adde~YrCN3f3Mq1019610196eusmtrp1T; Mon, 15 Jun 2020 09:02:16 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-87-5ee7391860ec Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 47.D3.07950.81937EE5; Mon, 15 Jun 2020 10:02:16 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200615090215eusmtip12718fe41e31564cacdfb135c546b15a0~YrCNHG2rm2966229662eusmtip13; Mon, 15 Jun 2020 09:02:15 +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: Mon, 15 Jun 2020 12:01:53 +0300 Message-Id: <20200615090158.18912-6-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200615090158.18912-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSfSyUcRzf756753kcZ4+j+Q7LXNNoC6XysBLN2v1Ry1plZakrzzDu6M67 /qAw0UzcyFvsLAnzdt7OnNCGdt7OJtkwtUa0Ii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rn/xgC2CL0rMpyi8tSVXIyC8usVWKNrQw 0jO0tNAzMrHUMzQ2j7UyMlXSt7NJSc3JLEst0rdL0MuY2HWRuWAue8XcjRUNjH1sXYycHBIC JhING/cC2VwcQgJLGSXmHH8I5HAAJSQkXj9hhqgRlvhzrQusXkjgM6PEu01xIDabgIbE6Y55 TCC9IgJLmCT2rjrHCJIQFnCU+LuokRXEZhFQldh/pg8szitgKdF5ZzYjxFB5idUbDoAt4BSw krh4cAY7xIJMiVfz77BC2HIS1+d/YZrAyLeAkWEVo0hqaXFuem6xkV5xYm5xaV66XnJ+7iZG YLhvO/Zzyw7GrnfBhxgFOBiVeHgtQp/FCbEmlhVX5h5ilOBgVhLhdTp7Ok6INyWxsiq1KD++ qDQntfgQoynQgROZpUST84GxmFcSb2hqaG5haWhubG5sZqEkztshcDBGSCA9sSQ1OzW1ILUI po+Jg1OqgbGsSP7fPnWN0p/9emv8bHg2XM04L6v+tq1tUstslp+uypuFP0ZEnj4sxGC5cT9j pMDuYJlLjauu3HGYdJXLacZ5ISvDiTLm6Rn1NdHXyjMzYrf2tPCYKhctfOqgKmzOc4l3j0fA 0wC3u4w/WFVF3v5fxLqB/9zUjyolvatjmSwCF0yZLy03SYmlOCPRUIu5qDgRAJd7os6NAgAA X-CMS-MailID: 20200615090216eucas1p2bb5a2c7d6e0baff96990aeba2623bb3d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200615090216eucas1p2bb5a2c7d6e0baff96990aeba2623bb3d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200615090216eucas1p2bb5a2c7d6e0baff96990aeba2623bb3d References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200615090158.18912-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v3 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