]> www.infradead.org Git - users/dwmw2/linux.git/commit
bnxt_en: Fix TC queue mapping.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 2 Feb 2020 07:41:38 +0000 (02:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:36:35 +0000 (04:36 -0800)
commit200c918d12c6350d7ed4f636bf2d51e716c803cc
treecfd2fe8f75d1b9e5ec2ed4c5dc966037aa69fca3
parentb265bc503a7f0af8809a7ea378a93d9e2ecfe6c8
bnxt_en: Fix TC queue mapping.

[ Upstream commit 18e4960c18f484ac288f41b43d0e6c4c88e6ea78 ]

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: 7809592d3e2e ("bnxt_en: Enable MSIX early in bnxt_init_one().")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c