Commit 6c9c5791 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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: default avatarJakub Kicinski <kuba@kernel.org>
parents 3f7f3ef4 a7b6c074
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
}

+4 −0
Original line number Diff line number Diff line
@@ -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;
}