| 49 | return -1; |
| 50 | } |
| 51 | static int virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused) |
| 52 | { |
| 53 | void *pkt = NULL; |
| 54 | struct virtual_ethdev_private *prv = eth_dev->data->dev_private; |
| 55 | |
| 56 | eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN; |
| 57 | eth_dev->data->dev_started = 0; |
| 58 | while (rte_ring_dequeue(prv->rx_queue, &pkt) != -ENOENT) |
| 59 | rte_pktmbuf_free(pkt); |
| 60 | |
| 61 | while (rte_ring_dequeue(prv->tx_queue, &pkt) != -ENOENT) |
| 62 | rte_pktmbuf_free(pkt); |
| 63 | |
| 64 | return 0; |
| 65 | } |
| 66 | |
| 67 | static int |
| 68 | virtual_ethdev_close(struct rte_eth_dev *dev __rte_unused) |
nothing calls this directly
no test coverage detected