Unload the driver, release resources */
| 1578 | |
| 1579 | /* Unload the driver, release resources */ |
| 1580 | int bnxt_dev_stop_op(struct rte_eth_dev *eth_dev) |
| 1581 | { |
| 1582 | struct bnxt *bp = eth_dev->data->dev_private; |
| 1583 | |
| 1584 | pthread_mutex_lock(&bp->err_recovery_lock); |
| 1585 | if (bp->flags & BNXT_FLAG_FW_RESET) { |
| 1586 | PMD_DRV_LOG(ERR, |
| 1587 | "Adapter recovering from error..Please retry\n"); |
| 1588 | pthread_mutex_unlock(&bp->err_recovery_lock); |
| 1589 | return -EAGAIN; |
| 1590 | } |
| 1591 | pthread_mutex_unlock(&bp->err_recovery_lock); |
| 1592 | |
| 1593 | return bnxt_dev_stop(eth_dev); |
| 1594 | } |
| 1595 | |
| 1596 | int bnxt_dev_start_op(struct rte_eth_dev *eth_dev) |
| 1597 | { |
no test coverage detected