Skip to content

Commit 0e1a2a3

Browse files
erezamellanoxSaeed Mahameed
authored andcommitted
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 <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 0e1c1a2 commit 0e1a2a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/uapi/linux/ethtool.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,9 @@ static inline int ethtool_validate_duplex(__u8 duplex)
17121712
#define ETH_MODULE_SFF_8436 0x4
17131713
#define ETH_MODULE_SFF_8436_LEN 256
17141714

1715+
#define ETH_MODULE_SFF_8636_MAX_LEN 640
1716+
#define ETH_MODULE_SFF_8436_MAX_LEN 640
1717+
17151718
/* Reset flags */
17161719
/* The reset() operation must clear the flags for the components which
17171720
* were actually reset. On successful return, the flags indicate the

0 commit comments

Comments
 (0)