]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 05:08:16 +0000 (21:08 -0800)
commitd2f3f2c3ab4af7607f5328e3b6b68a53e3c881d1
tree4c573cb417ab68f7fcb431913d6fb53319243e99
parent77eeda2c37e33f9b00e55796b1a6b542fdf13b6d
bnxt_en: Expand bnxt_check_rings() to check all resources.

Orabug: 2764835527648339

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>
(cherry picked from commit 8f23d638b36b4ff0fe5785cf01f9bdc41afb9c06)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
Conflicts:
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.c