]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Expand bnxt_check_rings() to check all resources.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 17 Jan 2018 08:21:12 +0000 (03:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:48:26 +0000 (14:48 -0500)
commit577f955c95af6e3a64b12d1e2297c7bccf606513
tree2b9a62ba378ee8de4ae6445005080fc24ec41188
parent38e05a3b21ede13326534b80f7e9343ca12e1e0a
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