| 337 | } |
| 338 | |
| 339 | void |
| 340 | cleanup_vq(struct vhost_virtqueue *vq, int destroy) |
| 341 | { |
| 342 | if ((vq->callfd >= 0) && (destroy != 0)) |
| 343 | close(vq->callfd); |
| 344 | if (vq->kickfd >= 0) |
| 345 | close(vq->kickfd); |
| 346 | } |
| 347 | |
| 348 | void |
| 349 | cleanup_vq_inflight(struct virtio_net *dev, struct vhost_virtqueue *vq) |
no test coverage detected