]> git.baikalelectronics.ru Git - kernel.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)
commit9c77b10aaa0a2a4ef8907d6539f8c5057577464e
treed092b78c87fafb62066bcd8fe2971412c95baa0c
parentd3312502cb1101f26f8efeeac76cf53f63d35de8
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: fa47877e6282 ("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