Skip to content

Commit 18e4960

Browse files
Michael Chankuba-moo
authored andcommitted
bnxt_en: Fix TC queue mapping.
The driver currently only calls netdev_set_tc_queue when the number of TCs is greater than 1. Instead, the comparison should be greater than or equal to 1. Even with 1 TC, we need to set the queue mapping. This bug can cause warnings when the number of TCs is changed back to 1. Fixes: 7809592 ("bnxt_en: Enable MSIX early in bnxt_init_one().") Signed-off-by: Michael Chan <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d407302 commit 18e4960

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7893,7 +7893,7 @@ static void bnxt_setup_msix(struct bnxt *bp)
78937893
int tcs, i;
78947894

78957895
tcs = netdev_get_num_tc(dev);
7896-
if (tcs > 1) {
7896+
if (tcs) {
78977897
int i, off, count;
78987898

78997899
for (i = 0; i < tcs; i++) {

0 commit comments

Comments
 (0)