bnxt_en: Refactor hardware resource data structures.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 17 Jan 2018 08:21:06 +0000 (03:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:48:26 +0000 (14:48 -0500)
commit6a4f29470569c5a158c1871a2f752ca22e433420
treecb20959158867d45b8871cd6c33f7a997671da18
parent80fcaf46c09262a71f32bb577c976814c922f864
bnxt_en: Refactor hardware resource data structures.

In preparation for new firmware APIs to allocate hardware resources,
add a new struct bnxt_hw_resc to hold various min, max and reserved
resources.  This new structure is common for PFs and VFs.

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_sriov.c