Skip to content

Commit ea52faa

Browse files
jjagielskanguy11
authored andcommitted
i40e: Fix log TC creation failure when max num of queues is exceeded
Fix missing failed message if driver does not have enough queues to complete TC command. Without this fix no message is displayed in dmesg. Fixes: a9ce82f ("i40e: Enable 'channel' mode in mqprio for TC configs") Signed-off-by: Grzegorz Szczurek <[email protected]> Signed-off-by: Jedrzej Jagielski <[email protected]> Tested-by: Imam Hassan Reza Biswas <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 89ec1f0 commit ea52faa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7290,6 +7290,8 @@ static int i40e_validate_mqprio_qopt(struct i40e_vsi *vsi,
72907290
}
72917291
if (vsi->num_queue_pairs <
72927292
(mqprio_qopt->qopt.offset[i] + mqprio_qopt->qopt.count[i])) {
7293+
dev_err(&vsi->back->pdev->dev,
7294+
"Failed to create traffic channel, insufficient number of queues.\n");
72937295
return -EINVAL;
72947296
}
72957297
if (sum_max_rate > i40e_get_link_speed(vsi)) {

0 commit comments

Comments
 (0)