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

Function free_device

dpdk/lib/vhost/vhost.c:428–437  ·  view source on GitHub ↗

* Release virtqueues and device memory. */

Source from the content-addressed store, hash-verified

426 * Release virtqueues and device memory.
427 */
428static void
429free_device(struct virtio_net *dev)
430{
431 uint32_t i;
432
433 for (i = 0; i < dev->nr_vring; i++)
434 free_vq(dev, dev->virtqueue[i]);
435
436 rte_free(dev);
437}
438
439static __rte_always_inline int
440log_translate(struct virtio_net *dev, struct vhost_virtqueue *vq)

Callers 1

vhost_destroy_deviceFunction · 0.85

Calls 2

free_vqFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected