bnxt_en: Reserve rings at driver open if none was reserved at probe time.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Apr 2018 21:44:44 +0000 (17:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:47:31 +0000 (14:47 -0400)
commit47558acd56a74c1ac598093930a5559270bf8c09
tree3632c8d50e2bf82c2a63851cf0c552de60cccbfe
parent86c3380d9b1e2a3fcc87d34cea12991b81032b9f
bnxt_en: Reserve rings at driver open if none was reserved at probe time.

Add logic to reserve default rings at driver open time if none was
reserved during probe time.  This will happen when the PF driver did
not provision minimum rings to the VF, due to more limited resources.

Driver open will only succeed if some minimum rings can be reserved.

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