bnxt_en: Fix statistics context reservation logic for RDMA driver.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 29 Jun 2019 15:16:46 +0000 (11:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Jun 2019 23:00:26 +0000 (16:00 -0700)
commitd77b1ad8e87dc5a6cd0d9158b097a4817946ca3b
treec3dd6330e49694541c2225c4a06a07d5f48950fa
parentd27e2ca1166aefd54d9c48fb6647dee8115a5dfc
bnxt_en: Fix statistics context reservation logic for RDMA driver.

The current logic assumes that the RDMA driver uses one statistics
context adjacent to the ones used by the network driver.  This
assumption is not true and the statistics context used by the
RDMA driver is tied to its MSIX base vector.  This wrong assumption
can cause RDMA driver failure after changing ethtool rings on the
network side.  Fix the statistics reservation logic accordingly.

Fixes: 780baad44f0f ("bnxt_en: Reserve 1 stat_ctx for RDMA driver.")
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