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 68699A0588; Thu, 16 Apr 2020 14:43:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2EA0F1DC4B; Thu, 16 Apr 2020 14:43:14 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 52CB21DC46 for ; Thu, 16 Apr 2020 14:43:12 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200416124311euoutp01667a9e9e96d01353c4978b16389eda1f~GTV_MqieV0587705877euoutp01R for ; Thu, 16 Apr 2020 12:43:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200416124311euoutp01667a9e9e96d01353c4978b16389eda1f~GTV_MqieV0587705877euoutp01R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587040991; bh=0rJPLhv6YJU8XzSog9vU0vWPzOfMLb13nvNnBHllTFI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AqUJ4yUPRKahaLVBZIFbqqgByIcaxth/UdT9OPEf3SlP/f624pxIJau6Xwy+xwzo/ 2sKEg2OiSLpv6VwH+6taDpu/fS1mJN9vZ1bSyowIzk1G7LqbfAV8J/vI5a1JGtDiyQ U2jtwEo/aqZ62OqFnSVzUaxEA84LRGzx66cCt33w= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200416124311eucas1p1ed0f4cbd3e3f2e1a87f385d974aed79c~GTV_CMjqE1453514535eucas1p1G; Thu, 16 Apr 2020 12:43:11 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id C1.4E.60698.FD2589E5; Thu, 16 Apr 2020 13:43:11 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200416124311eucas1p160468089b68c1d23578d4c3e6b3d0d75~GTV9zINNI1453314533eucas1p1N; Thu, 16 Apr 2020 12:43:11 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200416124311eusmtrp119741f0b860b089fe470c68789a7469f~GTV9yhx-v0935509355eusmtrp1h; Thu, 16 Apr 2020 12:43:11 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-a9-5e9852df6d68 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5D.C8.07950.ED2589E5; Thu, 16 Apr 2020 13:43:10 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200416124310eusmtip24c01d4b0613d4fd954a5c5e661daecea~GTV9NVy3J2230422304eusmtip2V; Thu, 16 Apr 2020 12:43:10 +0000 (GMT) From: Ivan Dyukov To: dev@dpdk.org, maxime.coquelin@redhat.com, i.dyukov@samsung.com, v.kuramshin@samsung.com, amorenoz@redhat.com, zhihong.wang@intel.com, xiaolong.ye@intel.com, mb@smartsharesystems.com Date: Thu, 16 Apr 2020 15:42:52 +0300 Message-Id: <20200416124258.15549-2-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416124258.15549-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMIsWRmVeSWpSXmKPExsWy7djP87r3g2bEGTz/J2DRuuMBi8W7T9uZ LGZdamK3ONa5h8Wi79dVRovTNzezW/x5Y2qx+eIkJgcOj18LlrJ6LN7zksnj/b6rbB59W1Yx epx61M0cwBrFZZO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IS/y51sUGUfOZUeLzsnWMIAk2AQ2J0x3zmEASIgLHGSV6Z/1nAkkIC1hJvL51HKyI RUBVYtO3WewgNq+ApcSu65OhpspLrN5wAMzmBKq/2/2KFcQWEsiQWHjpMcsERt4FjAyrGEVS S4tz03OLjfSKE3OLS/PS9ZLzczcxAsN027GfW3Ywdr0LPsQowMGoxMObYD8jTog1say4MvcQ owQHs5IIL58pUIg3JbGyKrUoP76oNCe1+BCjKdBRE5mlRJPzgTGUVxJvaGpobmFpaG5sbmxm oSTO2yFwMEZIID2xJDU7NbUgtQimj4mDU6qB0X/DTuNtiYw2HPXcL9hmMVxRLp7Qu+6PsUDl tCKdEJ4kc3GxeTM+Ldm6K8ZNddeShnXfF9qvta+e3/hzw9cd7rnSO/V4DRqcGuN0yphj/ixg F530jpdJ4uP3JEYtmY/VbpknfYR5dvGdb98qNnFpd+iT1HPnFEOXLagTSz/8/teEw6eF3u5x UGIpzkg01GIuKk4EANHZpQRpAgAA X-CMS-MailID: 20200416124311eucas1p160468089b68c1d23578d4c3e6b3d0d75 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200416124311eucas1p160468089b68c1d23578d4c3e6b3d0d75 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200416124311eucas1p160468089b68c1d23578d4c3e6b3d0d75 References: <20191212085012.9170-1-i.dyukov@samsung.com> <20200416124258.15549-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v12 1/7] ethdev: added UNKNOWN speed value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" UNKNOWN speed equals to 0xffffffff Signed-off-by: Ivan Dyukov --- lib/librte_ethdev/rte_ethdev.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index d1a593ad1..a15ea572e 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -287,19 +287,20 @@ struct rte_eth_stats { /** * Ethernet numeric link speeds in Mbps */ -#define ETH_SPEED_NUM_NONE 0 /**< Not defined */ -#define ETH_SPEED_NUM_10M 10 /**< 10 Mbps */ -#define ETH_SPEED_NUM_100M 100 /**< 100 Mbps */ -#define ETH_SPEED_NUM_1G 1000 /**< 1 Gbps */ -#define ETH_SPEED_NUM_2_5G 2500 /**< 2.5 Gbps */ -#define ETH_SPEED_NUM_5G 5000 /**< 5 Gbps */ -#define ETH_SPEED_NUM_10G 10000 /**< 10 Gbps */ -#define ETH_SPEED_NUM_20G 20000 /**< 20 Gbps */ -#define ETH_SPEED_NUM_25G 25000 /**< 25 Gbps */ -#define ETH_SPEED_NUM_40G 40000 /**< 40 Gbps */ -#define ETH_SPEED_NUM_50G 50000 /**< 50 Gbps */ -#define ETH_SPEED_NUM_56G 56000 /**< 56 Gbps */ -#define ETH_SPEED_NUM_100G 100000 /**< 100 Gbps */ +#define ETH_SPEED_NUM_NONE 0 /**< Not defined */ +#define ETH_SPEED_NUM_10M 10 /**< 10 Mbps */ +#define ETH_SPEED_NUM_100M 100 /**< 100 Mbps */ +#define ETH_SPEED_NUM_1G 1000 /**< 1 Gbps */ +#define ETH_SPEED_NUM_2_5G 2500 /**< 2.5 Gbps */ +#define ETH_SPEED_NUM_5G 5000 /**< 5 Gbps */ +#define ETH_SPEED_NUM_10G 10000 /**< 10 Gbps */ +#define ETH_SPEED_NUM_20G 20000 /**< 20 Gbps */ +#define ETH_SPEED_NUM_25G 25000 /**< 25 Gbps */ +#define ETH_SPEED_NUM_40G 40000 /**< 40 Gbps */ +#define ETH_SPEED_NUM_50G 50000 /**< 50 Gbps */ +#define ETH_SPEED_NUM_56G 56000 /**< 56 Gbps */ +#define ETH_SPEED_NUM_100G 100000 /**< 100 Gbps */ +#define ETH_SPEED_NUM_UNKNOWN 0xffffffff /**< Unknown */ /** * A structure used to retrieve link-level information of an Ethernet port. -- 2.17.1