ethtool, net/mlx4_en: Cable info, get_module_info/eeprom ethtool support
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 27 Oct 2014 09:37:36 +0000 (11:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Oct 2014 21:18:00 +0000 (17:18 -0400)
commit7202da8b7f7131d25411d81aa557e28cd941c5b6
treeda2ee98f318805e4c40b580fc9d71fea6cbb0387
parent32a173c7f9e9ec2b87142f67e1478cd20084a45b
ethtool, net/mlx4_en: Cable info, get_module_info/eeprom ethtool support

Added support for get_module_info/get_module_eeprom ethtool support for cable info reading.

Added new cable types enum in include/uapi/linux/ethtool.h for ethtool use.
+#define ETH_MODULE_SFF_8636            0x3
+#define ETH_MODULE_SFF_8636_LEN        256
+#define ETH_MODULE_SFF_8436            0x4
+#define ETH_MODULE_SFF_8436_LEN        256

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
include/uapi/linux/ethtool.h