Skip to content

Commit c8a5416

Browse files
Padmanabh Ratnakardavem330
authored andcommitted
be2net: Fix unnecessary delay in PCI EEH
During PCI EEH, driver waits for all functions in the card. Wait is needed only once per card. Fix is to wait only for the first PCI function. Signed-off-by: Padmanabh Ratnakar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent aa790db commit c8a5416

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/net/ethernet/emulex/benet/be_main.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,9 +4201,13 @@ static pci_ers_result_t be_eeh_err_detected(struct pci_dev *pdev,
42014201

42024202
/* The error could cause the FW to trigger a flash debug dump.
42034203
* Resetting the card while flash dump is in progress
4204-
* can cause it not to recover; wait for it to finish
4204+
* can cause it not to recover; wait for it to finish.
4205+
* Wait only for first function as it is needed only once per
4206+
* adapter.
42054207
*/
4206-
ssleep(30);
4208+
if (pdev->devfn == 0)
4209+
ssleep(30);
4210+
42074211
return PCI_ERS_RESULT_NEED_RESET;
42084212
}
42094213

0 commit comments

Comments
 (0)