@@ -129,6 +129,9 @@ void bnxt_handle_async_event(struct bnxt *bp,
bp->flags |= BNXT_FLAG_FATAL_ERROR;
return;
}
+ rte_eth_dev_callback_process(bp->eth_dev,
+ RTE_ETH_EVENT_ERR_RECOVERING,
+ NULL);
event_data = rte_le_to_cpu_32(async_cmp->event_data1);
/* timestamp_lo/hi values are in units of 100ms */
@@ -4566,6 +4566,9 @@ static void bnxt_dev_recover(void *arg)
goto err_start;
PMD_DRV_LOG(INFO, "Recovered from FW reset\n");
+ rte_eth_dev_callback_process(bp->eth_dev,
+ RTE_ETH_EVENT_RECOVERED,
+ NULL);
return;
err_start:
bnxt_dev_stop_op(bp->eth_dev);
@@ -4573,6 +4576,9 @@ static void bnxt_dev_recover(void *arg)
bp->flags |= BNXT_FLAG_FATAL_ERROR;
bnxt_uninit_resources(bp, false);
PMD_DRV_LOG(ERR, "Failed to recover from FW reset\n");
+ rte_eth_dev_callback_process(bp->eth_dev,
+ RTE_ETH_EVENT_INTR_RMV,
+ NULL);
}
void bnxt_dev_reset_and_resume(void *arg)
@@ -4708,6 +4714,9 @@ static void bnxt_check_fw_health(void *arg)
bp->flags |= BNXT_FLAG_FW_RESET;
PMD_DRV_LOG(ERR, "Detected FW dead condition\n");
+ rte_eth_dev_callback_process(bp->eth_dev,
+ RTE_ETH_EVENT_ERR_RECOVERING,
+ NULL);
if (bnxt_is_master_func(bp))
wait_msec = info->master_func_wait_period;