| 513 | } |
| 514 | |
| 515 | int bnxt_rep_dev_stop_op(struct rte_eth_dev *eth_dev) |
| 516 | { |
| 517 | struct bnxt_representor *vfr_bp = eth_dev->data->dev_private; |
| 518 | |
| 519 | /* Avoid crashes as we are about to free queues */ |
| 520 | bnxt_stop_rxtx(eth_dev); |
| 521 | |
| 522 | BNXT_TF_DBG(DEBUG, "BNXT Port:%d VFR stop\n", eth_dev->data->port_id); |
| 523 | |
| 524 | bnxt_vfr_free(vfr_bp); |
| 525 | |
| 526 | if (eth_dev->data->dev_started) |
| 527 | eth_dev->data->dev_link.link_status = 0; |
| 528 | |
| 529 | bnxt_rep_free_rx_mbufs(vfr_bp); |
| 530 | |
| 531 | return 0; |
| 532 | } |
| 533 | |
| 534 | int bnxt_rep_dev_close_op(struct rte_eth_dev *eth_dev) |
| 535 | { |
no test coverage detected