nfp: implement ethtool get module EEPROM
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Sat, 30 Mar 2019 02:24:43 +0000 (19:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2019 01:05:13 +0000 (18:05 -0700)
commit61f7c6f44870bfb17db9f94e1a5a0ffa33e0e404
treea2e4886e161d31cd55879c2b59f93797cb424ca3
parent593cb18285c1686f2370ab8dffcdece69bf1a3b7
nfp: implement ethtool get module EEPROM

Now that the NSP provides the ability to read from the SFF modules'
EEPROM, we can use this interface to implement the ethtool callback.

If the NSP only provides partial data, we log the event from within
the driver but pass a success code to ethtool to prevent it from
discarding the partial data.

Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c