bnxt_en: Expand bnxt_check_rings() to check all resources.
commit8f23d638b36b4ff0fe5785cf01f9bdc41afb9c06
authorMichael Chan <michael.chan@broadcom.com>
Wed, 17 Jan 2018 08:21:12 +0000 (17 03:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:48:26 +0000 (17 14:48 -0500)
tree2b9a62ba378ee8de4ae6445005080fc24ec41188
parent4673d66468b80dc37abd1159a4bd038128173d48
bnxt_en: Expand bnxt_check_rings() to check all resources.

bnxt_check_rings() is called by ethtool, XDP setup, and ndo_setup_tc()
to see if there are enough resources to support the new configuration.
Expand the call to test all resources if the firmware supports the new
API.  With the more flexible resource allocation scheme, this call must
be made to check that all resources are available before committing to
allocate the 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