]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Improve NQ reservations.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 5 May 2019 11:17:05 +0000 (07:17 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 May 2019 04:42:17 +0000 (21:42 -0700)
commitfd1d52e3b5b16f1d1b0538d8ef8c8923b088c560
treebbacd939d63cafd505006091e57ae1057b00cdae
parent5b6c6a81649acfda30f92b9e1592716f9e7d85cc
bnxt_en: Improve NQ reservations.

bnxt_need_reserve_rings() determines if any resources have changed and
requires new reservation with firmware.  The NQ checking is currently
just an approximation.  Improve the NQ checking logic to make it
accurate.  NQ reservation is only needed on 57500 PFs.  This fix will
eliminate unnecessary reservations and will reduce NQ reservations
when some NQs have been released on 57500 PFs.

Fixes: 50d1265c0aa2 ("bnxt_en: Fix NQ/CP rings accounting on the new 57500 chips.")
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