| 192 | } |
| 193 | |
| 194 | static int |
| 195 | virtual_ethdev_stats_reset(struct rte_eth_dev *dev) |
| 196 | { |
| 197 | struct virtual_ethdev_private *dev_private = dev->data->dev_private; |
| 198 | void *pkt = NULL; |
| 199 | |
| 200 | while (rte_ring_dequeue(dev_private->tx_queue, &pkt) == -ENOBUFS) |
| 201 | rte_pktmbuf_free(pkt); |
| 202 | |
| 203 | /* Reset internal statistics */ |
| 204 | memset(&dev_private->eth_stats, 0, sizeof(dev_private->eth_stats)); |
| 205 | |
| 206 | return 0; |
| 207 | } |
| 208 | |
| 209 | static int |
| 210 | virtual_ethdev_promiscuous_mode_enable(struct rte_eth_dev *dev __rte_unused) |
nothing calls this directly
no test coverage detected