Skip to content

Commit 1a55048

Browse files
nvmmaxSaeed Mahameed
authored andcommitted
net/mlx5e: Remove the duplicating check for striding RQ when enabling LRO
LRO requires striding RQ and checks that it's enabled at two places: mlx5e_fix_features and set_feature_lro. This commit keeps only one check at mlx5e_fix_features and removes the duplicating one in set_feature_lro. Signed-off-by: Maxim Mikityanskiy <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 1c31cb9 commit 1a55048

File tree

1 file changed

+0
-6
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+0
-6
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,12 +3595,6 @@ static int set_feature_lro(struct net_device *netdev, bool enable)
35953595
mutex_lock(&priv->state_lock);
35963596

35973597
cur_params = &priv->channels.params;
3598-
if (enable && !MLX5E_GET_PFLAG(cur_params, MLX5E_PFLAG_RX_STRIDING_RQ)) {
3599-
netdev_warn(netdev, "can't set LRO with legacy RQ\n");
3600-
err = -EINVAL;
3601-
goto out;
3602-
}
3603-
36043598
new_params = *cur_params;
36053599

36063600
if (enable)

0 commit comments

Comments
 (0)