[PATCH v2 1/3] net: ethtool: Add ethernet speed macros for higher speeds

Ashok Reddy Soma ashok.reddy.soma at xilinx.com
Fri Jul 2 12:20:28 CEST 2021


Add speed macro's for higher ethernet speeds to be used in u-boot
networking drivers. Added Macros for speeds 14G, 20G, 25G, 40G, 50G,
56G, 100G and 200G inline with linux.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at xilinx.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
Acked-by: Ramon Fried <rfried.dev at gmail.com>
---

(no changes since v1)

 include/linux/ethtool.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index f6dbdb096d..aa7d2fd58f 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -620,6 +620,14 @@ enum ethtool_sfeatures_retval_bits {
 #define SPEED_1000		1000
 #define SPEED_2500		2500
 #define SPEED_10000		10000
+#define SPEED_14000		14000
+#define SPEED_20000		20000
+#define SPEED_25000		25000
+#define SPEED_40000		40000
+#define SPEED_50000		50000
+#define SPEED_56000		56000
+#define SPEED_100000		100000
+#define SPEED_200000		200000
 
 /* Duplex, half or full. */
 #define DUPLEX_HALF		0x00
-- 
2.17.1



More information about the U-Boot mailing list