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 822A5A04C7; Tue, 15 Sep 2020 21:08:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4B8521C12C; Tue, 15 Sep 2020 21:07:54 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 0959C1C120 for ; Tue, 15 Sep 2020 21:07:53 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200915190752euoutp01da2f53baf76b6e99e1c93112d32c0a9b~1CpPcRvB80517005170euoutp01Y; Tue, 15 Sep 2020 19:07:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200915190752euoutp01da2f53baf76b6e99e1c93112d32c0a9b~1CpPcRvB80517005170euoutp01Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600196872; bh=1R9omrZ5fAPdKYuUkOS/6cuY8buXbZ+pEv8UB5bwG/w=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=YFlXCdO1gu7hPdePbRjYihu/MTrzKtY46GybIHw4JiSxGsIcHV7p1Hlr3BPBnwBjj aRJyhjhv8ghm9zSez53ApcJEt86bAoctaGORmib/XsFquQ7MVchMiiMTHbVqTDq0fZ iPtq4lPJbE9ihoXMo9PK8PNNIjoADD5fTlrgGuew= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200915190752eucas1p264abf8055cfc15fa70ebf52ffd13d305~1CpOuXx8g1274112741eucas1p2k; Tue, 15 Sep 2020 19:07:52 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 2E.CF.05997.701116F5; Tue, 15 Sep 2020 20:07:51 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200915190751eucas1p20c71494682efc4dbcda7836db5af1558~1CpOYv0Ot1274112741eucas1p2j; Tue, 15 Sep 2020 19:07:51 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200915190751eusmtrp17dbee6b93074451def2a93cf420a4da6~1CpOX97_23148631486eusmtrp1E; Tue, 15 Sep 2020 19:07:51 +0000 (GMT) X-AuditID: cbfec7f4-65dff7000000176d-39-5f6111070a05 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id FA.DB.06314.701116F5; Tue, 15 Sep 2020 20:07:51 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200915190749eusmtip28c1b978247d0d6e608627ae6322cc058~1CpMmJiyd1712017120eusmtip2G; Tue, 15 Sep 2020 19:07:49 +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: Tue, 15 Sep 2020 22:06:59 +0300 Message-Id: <20200915190728.18143-5-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200915190728.18143-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSf0zUdRjH93x/c/Po61enT1C6zrXI+btaT45hNba+rtVcW6VtCpd8BY1D uq+I1lZkdNKJiHCLiQ7xyJ1Cicpx/G6KjkNOfsjG0A6DEcuJ4AGCS8OU40vrv9f7/fz4fJ5n j8QqhUKUtDNtj2ZPs6ZaBBPna3nUuVKcb01Y4xx8kyqvlwAN/lHG0oDrtkCHxrIZulm+gRpr TvBU0J/FUF7BOEM1Z5wCjQwc4Oj+RA1DfU0BkYq7D4g00XxHpMOdx4HuTA+zdKz0AVBnSTVP jy7XCxSadnOU97gH6Ii3FcifO86Rq64WyOGUaeysR6SyviU0MdDKUeBWlUi/TN1gqfr6E6Cj /kqgdsdT/u2X1Melp3m1rPEuoxaeusGqLbd+EtXcayWMeuF+LaOGfusR1DxvOahtg4dYtWLo b2GT6TNTbJKWunOvZl8dl2hKaT2Xmd4m7vvz58tCFvgEJ0RIKL+OvlMNnBNMkiKfAQwGx8EQ k4CjI8O8IR4A1rW0sE6QZkuqhjIM3wPoCXoEQ0wB/u53suG+ghyDgZwSJhxYKF8QsGa6lwkH Fsjx6JgKzTInv4yhphAfZrP8Flb3nuWNTy3FivOXZhtFyOuxu65HDLMiL8Hek5OzTVHukrDh 4RHOKIhH11jOHC/AYb9XNPgFDBTmckbBQcCjvirREPmA3x8fncvagN57HWJ4OFZ+FSvrVxv2 O5hX1MEZM0fizdH5YZudwQJf0dwqzJjjUIxsC1661j1nIz75Z56BKnZWxBn7aQJ0ZXex+bC0 +P+nSgHKYbGWoduSNX1dmpa5Srfa9Iy05FXbd9suwsypBv71T9ZC/fTnzSBLYJlnLg0mJii8 da++39YMKLGWheZ32wPbFHOSdf9Xm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CVoLygXyk2xjpIKN5Y3CfkE4IBj+zxFSmU8KCpzbEiZbvKZbl111JgvTsmh/ Y2z7m4jgoyHezftsDX39AYWWLU/G1u4Nr5ko4Sf9s1b6fdt0M9X0Imu/49iy2Unei96u2G79 pR+Ny3/y0HKhZ4f/knezAzzzwi/bcomFfYLQf//Zp4Ob21cln6rIuPZ7SNEgFtgPpT2MlGSM avNGNEpKjOPVK0mDyP8DYqiR8QcDAAA= X-CMS-MailID: 20200915190751eucas1p20c71494682efc4dbcda7836db5af1558 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200915190751eucas1p20c71494682efc4dbcda7836db5af1558 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200915190751eucas1p20c71494682efc4dbcda7836db5af1558 References: <20200427095737.11082-1-i.dyukov@samsung.com> <20200915190728.18143-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v11 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