mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
Merge branch 'mlx5-misc-fixes-2025-12-01'
Tariq Toukan says: ==================== mlx5 misc fixes 2025-12-01 This small patchset provides misc bug fixes from the team to the mlx5 core and Eth drivers. ==================== Link: https://patch.msgid.link/1764602008-1334866-1-git-send-email-tariqt@nvidia.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
commit
eb1e937e00
|
|
@ -6825,7 +6825,6 @@ static void _mlx5e_remove(struct auxiliary_device *adev)
|
|||
* is already unregistered before changing to NIC profile.
|
||||
*/
|
||||
if (priv->netdev->reg_state == NETREG_REGISTERED) {
|
||||
mlx5e_psp_unregister(priv);
|
||||
unregister_netdev(priv->netdev);
|
||||
_mlx5e_suspend(adev, false);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -67,12 +67,19 @@ static int mlx5_mpesw_metadata_set(struct mlx5_lag *ldev)
|
|||
|
||||
static int enable_mpesw(struct mlx5_lag *ldev)
|
||||
{
|
||||
int idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1);
|
||||
struct mlx5_core_dev *dev0;
|
||||
int err;
|
||||
int idx;
|
||||
int i;
|
||||
|
||||
if (idx < 0 || ldev->mode != MLX5_LAG_MODE_NONE)
|
||||
if (ldev->mode == MLX5_LAG_MODE_MPESW)
|
||||
return 0;
|
||||
|
||||
if (ldev->mode != MLX5_LAG_MODE_NONE)
|
||||
return -EINVAL;
|
||||
|
||||
idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1);
|
||||
if (idx < 0)
|
||||
return -EINVAL;
|
||||
|
||||
dev0 = ldev->pf[idx].dev;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user