From: Mateusz Polchlopek <[email protected]> Wire up ice_ethtool_reset() into ice_ethtool_safe_mode_ops so that the .reset ethtool operation is available when the driver is operating in safe mode, consistent with the behaviour exposed by the full ice_ethtool_ops.
Without this, a user-space call to ethtool --reset while the driver is in safe mode would return EOPNOTSUPP even though the underlying reset logic is fully implemented and works correctly. Signed-off-by: Mateusz Polchlopek <[email protected]> Signed-off-by: Aleksandr Loktionov <[email protected]> --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index 301947d..bf90bd5 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -4917,6 +4917,7 @@ static const struct ethtool_ops ice_ethtool_safe_mode_ops = { .set_ringparam = ice_set_ringparam, .nway_reset = ice_nway_reset, .get_channels = ice_get_channels, + .reset = ice_ethtool_reset, }; /** -- 2.52.0
