MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vring_invalidate

Function vring_invalidate

dpdk/lib/vhost/vhost.c:583–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583void
584vring_invalidate(struct virtio_net *dev __rte_unused, struct vhost_virtqueue *vq)
585{
586 vhost_user_iotlb_wr_lock(vq);
587
588 vq->access_ok = false;
589 vq->desc = NULL;
590 vq->avail = NULL;
591 vq->used = NULL;
592 vq->log_guest_addr = 0;
593
594 vhost_user_iotlb_wr_unlock(vq);
595}
596
597static void
598init_vring_queue(struct virtio_net *dev __rte_unused, struct vhost_virtqueue *vq,

Callers 5

vduse_vring_cleanupFunction · 0.85
vhost_user_set_mem_tableFunction · 0.85
vhost_user_iotlb_msgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected