mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
i40e: add functions stubs to support EEE
This patch adds functions stubs to support EEE on/off. Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@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
733f0766c3
commit
6a6567776f
@ -5181,6 +5181,16 @@ static int i40e_get_module_eeprom(struct net_device *netdev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int i40e_get_eee(struct net_device *netdev, struct ethtool_eee *edata)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static int i40e_set_eee(struct net_device *netdev, struct ethtool_eee *edata)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static const struct ethtool_ops i40e_ethtool_recovery_mode_ops = {
|
||||
.set_eeprom = i40e_set_eeprom,
|
||||
.get_eeprom_len = i40e_get_eeprom_len,
|
||||
@ -5208,6 +5218,8 @@ static const struct ethtool_ops i40e_ethtool_ops = {
|
||||
.set_rxnfc = i40e_set_rxnfc,
|
||||
.self_test = i40e_diag_test,
|
||||
.get_strings = i40e_get_strings,
|
||||
.get_eee = i40e_get_eee,
|
||||
.set_eee = i40e_set_eee,
|
||||
.set_phys_id = i40e_set_phys_id,
|
||||
.get_sset_count = i40e_get_sset_count,
|
||||
.get_ethtool_stats = i40e_get_ethtool_stats,
|
||||
|
Loading…
Reference in New Issue
Block a user