Merge branch 'mlx5e-update-features-on-config-changes'
Tariq Toukan says: ==================== mlx5e update features on config changes This small patchset by Dragos adds a call to netdev_update_features() in configuration changes that could impact the features status. ==================== Link: https://patch.msgid.link/20241024164134.299646-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -406,6 +406,9 @@ int mlx5e_ethtool_set_ringparam(struct mlx5e_priv *priv,
|
||||
unlock:
|
||||
mutex_unlock(&priv->state_lock);
|
||||
|
||||
if (!err)
|
||||
netdev_update_features(priv->netdev);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
@@ -4557,6 +4557,10 @@ int mlx5e_change_mtu(struct net_device *netdev, int new_mtu,
|
||||
out:
|
||||
WRITE_ONCE(netdev->mtu, params->sw_mtu);
|
||||
mutex_unlock(&priv->state_lock);
|
||||
|
||||
if (!err)
|
||||
netdev_update_features(netdev);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user