]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Reserve completion rings and MSIX for bnxt_re RDMA driver.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 31 Mar 2018 17:54:20 +0000 (13:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:24:20 +0000 (23:24 -0400)
commit357cd22eb245067d3324f92499c29bae401e1d5a
tree081395ff312f956c6d56a8472a1f3d1b249227a6
parentc7590a2f94377c1e8895284dbc8dcbd7ec9a8f84
bnxt_en: Reserve completion rings and MSIX for bnxt_re RDMA driver.

Add additional logic to reserve completion rings for the bnxt_re driver
when it requests MSIX vectors.  The function bnxt_cp_rings_in_use()
will return the total number of completion rings used by both drivers
that need to be reserved.  If the network interface in up, we will
close and open the NIC to reserve the new set of completion rings and
re-initialize the vectors.

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c