aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/ethtool.h
diff options
context:
space:
mode:
authorErez Alfasi <ereza@mellanox.com>2019-03-05 15:42:23 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2019-05-01 14:39:16 -0700
commit0e1a2a3e6e7d37cea9f8586f6d7745b539147d9f (patch)
treef73d3bab53ac8215e25929d23f73411bf8e9b377 /include/uapi/linux/ethtool.h
parentnet/mlx5e: Return error when trying to insert existing flower filter (diff)
downloadlinux-dev-0e1a2a3e6e7d37cea9f8586f6d7745b539147d9f.tar.xz
linux-dev-0e1a2a3e6e7d37cea9f8586f6d7745b539147d9f.zip
ethtool: Add SFF-8436 and SFF-8636 max EEPROM length definitions
Added max EEPROM length defines for ethtool usage: #define ETH_MODULE_SFF_8636_MAX_LEN 640 #define ETH_MODULE_SFF_8436_MAX_LEN 640 These definitions are used to determine the EEPROM data length when reading high eeprom pages. For example, SFF-8636 EEPROM data from page 03h needs to be stored at data[512] - data[639]. Signed-off-by: Erez Alfasi <ereza@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/uapi/linux/ethtool.h')
-rw-r--r--include/uapi/linux/ethtool.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
index 818ad368b586..3534ce157ae9 100644
--- a/include/uapi/linux/ethtool.h
+++ b/include/uapi/linux/ethtool.h
@@ -1712,6 +1712,9 @@ static inline int ethtool_validate_duplex(__u8 duplex)
#define ETH_MODULE_SFF_8436 0x4
#define ETH_MODULE_SFF_8436_LEN 256
+#define ETH_MODULE_SFF_8636_MAX_LEN 640
+#define ETH_MODULE_SFF_8436_MAX_LEN 640
+
/* Reset flags */
/* The reset() operation must clear the flags for the components which
* were actually reset. On successful return, the flags indicate the