Skip to content

Commit ca20dfd

Browse files
Tariq ToukanSaeed Mahameed
authored andcommitted
net/mlx5e: Allow only complete TXQs partition in MQPRIO channel mode
Do not allow configurations of MQPRIO channel mode that do not fully define and utilize the channels txqs. Fixes: ec60c45 ("net/mlx5e: Support MQPRIO channel mode") Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Maxim Mikityanskiy <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 2266bb1 commit ca20dfd

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,8 +2981,8 @@ static int mlx5e_mqprio_channel_validate(struct mlx5e_priv *priv,
29812981
agg_count += mqprio->qopt.count[i];
29822982
}
29832983

2984-
if (priv->channels.params.num_channels < agg_count) {
2985-
netdev_err(netdev, "Num of queues (%d) exceeds available (%d)\n",
2984+
if (priv->channels.params.num_channels != agg_count) {
2985+
netdev_err(netdev, "Num of queues (%d) does not match available (%d)\n",
29862986
agg_count, priv->channels.params.num_channels);
29872987
return -EINVAL;
29882988
}

0 commit comments

Comments
 (0)