]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6de107d68d702d831b1dedfd35aa173043f8a5cc
treec3dd6330e49694541c2225c4a06a07d5f48950fa
parentc9a1ef922889ed30289201065e2180ac7b26d97b
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: 3817a5e14828 ("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