]> 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)
commit9b0336d83442beaa1cff10012109d82bd27fb82c
tree081395ff312f956c6d56a8472a1f3d1b249227a6
parent8d272dffebbfbd1ad71695147a70058ac1604df5
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