mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-11 23:27:42 +07:00
i40e: allow ethtool to report SW and FW versions in recovery mode
Let ethtool print driver and firmware versions when NIC is in recovery mode. Assign i40e_get_drvinfo() operation to ethtool recovery mode operations. Previously ethtool did not report driver and firmware versions when NIC was in recovery mode. Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
998e5166e6
commit
cdb89f15bd
@ -5242,6 +5242,7 @@ static int i40e_set_eee(struct net_device *netdev, struct ethtool_eee *edata)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct ethtool_ops i40e_ethtool_recovery_mode_ops = {
|
static const struct ethtool_ops i40e_ethtool_recovery_mode_ops = {
|
||||||
|
.get_drvinfo = i40e_get_drvinfo,
|
||||||
.set_eeprom = i40e_set_eeprom,
|
.set_eeprom = i40e_set_eeprom,
|
||||||
.get_eeprom_len = i40e_get_eeprom_len,
|
.get_eeprom_len = i40e_get_eeprom_len,
|
||||||
.get_eeprom = i40e_get_eeprom,
|
.get_eeprom = i40e_get_eeprom,
|
||||||
|
Loading…
Reference in New Issue
Block a user