]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bnxt_en: Fix regressions when setting up MQPRIO TX rings.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 10 Mar 2018 04:46:07 +0000 (23:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 14:57:51 +0000 (10:57 -0400)
commit832aed16ce7af2a43dafe9d4bc9080322e042cde
treed092b78c87fafb62066bcd8fe2971412c95baa0c
parented7bc602f60a653e5dea488e6917d9a75d6ac0dd
bnxt_en: Fix regressions when setting up MQPRIO TX rings.

Recent changes added the bnxt_init_int_mode() call in the driver's open
path whenever ring reservations are changed.  This call was previously
only called in the probe path.  In the open path, if MQPRIO TC has been
setup, the bnxt_init_int_mode() call would reset and mess up the MQPRIO
per TC rings.

Fix it by not re-initilizing bp->tx_nr_rings_per_tc in
bnxt_init_int_mode().  Instead, initialize it in the probe path only
after the bnxt_init_int_mode() call.

Fixes: 674f50a5b026 ("bnxt_en: Implement new method to reserve rings.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c