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

Function vhost_free_async_mem

dpdk/lib/vhost/vhost.c:390–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390static void
391vhost_free_async_mem(struct vhost_virtqueue *vq)
392 __rte_exclusive_locks_required(&vq->access_lock)
393{
394 if (!vq->async)
395 return;
396
397 rte_free(vq->async->pkts_info);
398 rte_free(vq->async->pkts_cmpl_flag);
399
400 rte_free(vq->async->buffers_packed);
401 vq->async->buffers_packed = NULL;
402 rte_free(vq->async->descs_split);
403 vq->async->descs_split = NULL;
404
405 rte_free(vq->async);
406 vq->async = NULL;
407}
408
409void
410free_vq(struct virtio_net *dev, struct vhost_virtqueue *vq)

Calls 1

rte_freeFunction · 0.85

Tested by

no test coverage detected