]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Cap the returned MSIX vectors to the RDMA driver.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 29 Jun 2019 15:16:47 +0000 (11:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Jun 2019 23:00:26 +0000 (16:00 -0700)
commit10db0668dfec9dbf4e5424d124358b2f00e0b815
tree859179794bd5e29a2bf4cd237b394161eb8990c5
parent6de107d68d702d831b1dedfd35aa173043f8a5cc
bnxt_en: Cap the returned MSIX vectors to the RDMA driver.

In an earlier commit to improve NQ reservations on 57500 chips, we
set the resv_irqs on the 57500 VFs to the fixed value assigned by
the PF regardless of how many are actually used.  The current
code assumes that resv_irqs minus the ones used by the network driver
must be the ones for the RDMA driver.  This is no longer true and
we may return more MSIX vectors than requested, causing inconsistency.
Fix it by capping the value.

Fixes: fd1d52e3b5b1 ("bnxt_en: Improve NQ reservations.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c