]> 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)
commit160a10b2e463902b4b38a61f87f631a6ad049129
tree398c5580d68156a9948b05626be6f092731db4c5
parentcd96ee25f656f09fde8fe9b7013593099aefbb8d
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