Skip to content

Commit 9ef7c58

Browse files
skotur-brcmkuba-moo
authored andcommitted
bnxt_en: Clear resource reservation during resume
We are issuing HWRM_FUNC_RESET cmd to reset the device including all reserved resources, but not clearing the reservations within the driver struct. As a result, when the driver re-initializes as part of resume, it believes that there is no need to do any resource reservation and goes ahead and tries to allocate rings which will eventually fail beyond a certain number pre-reserved by the firmware. Fixes: 674f50a ("bnxt_en: Implement new method to reserve rings.") Reviewed-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Andy Gospodarek <[email protected]> Signed-off-by: Somnath Kotur <[email protected]> Signed-off-by: Michael Chan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 9c25aae commit 9ef7c58

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+2
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13940,6 +13940,8 @@ static int bnxt_resume(struct device *device)
1394013940
if (rc)
1394113941
goto resume_exit;
1394213942

13943+
bnxt_clear_reservations(bp, true);
13944+
1394313945
if (bnxt_hwrm_func_drv_rgtr(bp, NULL, 0, false)) {
1394413946
rc = -ENODEV;
1394513947
goto resume_exit;

0 commit comments

Comments
 (0)