| 410 | } |
| 411 | |
| 412 | static void |
| 413 | virtio_rxq_sw_ring_free(struct virtqueue *vq) |
| 414 | { |
| 415 | rte_free(vq->rxq.fake_mbuf); |
| 416 | vq->rxq.fake_mbuf = NULL; |
| 417 | rte_free(vq->rxq.sw_ring); |
| 418 | vq->rxq.sw_ring = NULL; |
| 419 | } |
| 420 | |
| 421 | struct virtqueue * |
| 422 | virtqueue_alloc(struct virtio_hw *hw, uint16_t index, uint16_t num, int type, |
no test coverage detected