]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbee8b33a296735d194aecc57050df16e9980ac87
tree398c5580d68156a9948b05626be6f092731db4c5
parentffb6ff5f4b476c8b955f05df0cfa502bdf939d76
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