]> asedeno.scripts.mit.edu Git - linux.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)
commitfbcfc8e4674156cb7eb3d8054bd4332142d2cc58
tree081395ff312f956c6d56a8472a1f3d1b249227a6
parent4e41dc5deb6e5c36ac5f2e49575485920037b2aa
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