]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Feb 2020 23:06:45 +0000 (15:06 -0800)
commitfc28895a1e79b1fdfc830d6a7348fbab38ae36c5
treec104211a2e5eac7599272c2c63fde2816fa68ec5
parent0c3017ff8032c8628f47483830319e126cbcbced
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: e8800a4ab038 ("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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c