bnxt_en: Don't reserve rings on VF when min rings were not provisioned by PF.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Apr 2018 21:44:42 +0000 (17:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:47:31 +0000 (14:47 -0400)
commit2773dfb201e18722265c38dacdea6ecadf933064
tree398c5580d68156a9948b05626be6f092731db4c5
parentd8c09f19accb89fc08b246339abb005455e4c846
bnxt_en: Don't reserve rings on VF when min rings were not provisioned by PF.

When rings are more limited and the PF has not provisioned minimum
guaranteed rings to the VF, do not reserve rings during driver probe.
Wait till device open before reserving rings when they will be used.
Device open will succeed if some minimum rings can be successfully
reserved and allocated.

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