File tree 1 file changed +5
-4
lines changed
drivers/net/ethernet/broadcom/bnx2x
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14153,10 +14153,6 @@ static int bnx2x_eeh_nic_unload(struct bnx2x *bp)
14153
14153
14154
14154
/* Stop Tx */
14155
14155
bnx2x_tx_disable (bp );
14156
- /* Delete all NAPI objects */
14157
- bnx2x_del_all_napi (bp );
14158
- if (CNIC_LOADED (bp ))
14159
- bnx2x_del_all_napi_cnic (bp );
14160
14156
netdev_reset_tc (bp -> dev );
14161
14157
14162
14158
del_timer_sync (& bp -> timer );
@@ -14261,6 +14257,11 @@ static pci_ers_result_t bnx2x_io_slot_reset(struct pci_dev *pdev)
14261
14257
bnx2x_drain_tx_queues (bp );
14262
14258
bnx2x_send_unload_req (bp , UNLOAD_RECOVERY );
14263
14259
bnx2x_netif_stop (bp , 1 );
14260
+ bnx2x_del_all_napi (bp );
14261
+
14262
+ if (CNIC_LOADED (bp ))
14263
+ bnx2x_del_all_napi_cnic (bp );
14264
+
14264
14265
bnx2x_free_irq (bp );
14265
14266
14266
14267
/* Report UNLOAD_DONE to MCP */
You can’t perform that action at this time.
0 commit comments