bnxt_en: Keep track of reserved IRQs.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 9 Dec 2018 12:01:00 +0000 (07:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Dec 2018 19:46:58 +0000 (11:46 -0800)
commit75720e6323a1d195ae3ebf1a7b5e17c2e687f552
tree6eda592fd7ef4cc038c0902364de571b7abf9342
parent804fba4e9f508c8004a4bfbdf3f300ca237c56df
bnxt_en: Keep track of reserved IRQs.

The new 57500 chips use 1 NQ per MSIX vector, whereas legacy chips use
1 CP ring per MSIX vector.  To better unify this, add a resv_irqs
field to struct bnxt_hw_resc.  On legacy chips, we initialize resv_irqs
with resv_cp_rings.  On new chips, we initialize it with the allocated
MSIX resources.

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