net/mlx5: support reading module EEPROM data
authorDekel Peled <dekelp@mellanox.com>
Mon, 9 Sep 2019 11:04:35 +0000 (14:04 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 20 Sep 2019 08:19:41 +0000 (10:19 +0200)
commit8a6a09f853a0241979a4b9baf1321674a095aa59
treedcfcafc6da401b29012675c9b9631493a59ee500
parent5f163d520cff3f45f12264dbdf101dd7d64b2877
net/mlx5: support reading module EEPROM data

This patch implements ethdev operations get_module_info and
get_module_eeprom, to support ethtool commands ETHTOOL_GMODULEINFO
and ETHTOOL_GMODULEEEPROM.

New functions mlx5_get_module_info() and mlx5_get_module_eeprom()
added in mlx5_ethdev.c.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c