summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2020-02-02 02:41:38 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-11 04:33:53 -0800
commite7ec10b4ea8f6dbc19e8377b1064f4be3f630f3e (patch)
treeac56148e806b18fc5f93a77166880664b9031817
parent0529d1eac4dabb9228b4aeb49ddbcc189f48d163 (diff)
downloadlinux-stable-e7ec10b4ea8f6dbc19e8377b1064f4be3f630f3e.tar.gz
linux-stable-e7ec10b4ea8f6dbc19e8377b1064f4be3f630f3e.tar.bz2
linux-stable-e7ec10b4ea8f6dbc19e8377b1064f4be3f630f3e.zip
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>
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index 5cf85a89016e..c19d0eabeb52 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -5861,7 +5861,7 @@ static void bnxt_setup_msix(struct bnxt *bp)
int tcs, i;
tcs = netdev_get_num_tc(dev);
- if (tcs > 1) {
+ if (tcs) {
int i, off, count;
for (i = 0; i < tcs; i++) {