ethtool: Add SFF-8436 and SFF-8636 max EEPROM length definitions
authorErez Alfasi <ereza@mellanox.com>
Tue, 5 Mar 2019 13:42:23 +0000 (15:42 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 1 May 2019 21:39:16 +0000 (14:39 -0700)
commit0e1a2a3e6e7d37cea9f8586f6d7745b539147d9f
treef73d3bab53ac8215e25929d23f73411bf8e9b377
parent0e1c1a2fcfcb6b91db98a60711fa14f9f69a383c
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>
include/uapi/linux/ethtool.h