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

Function vq_ring_free_id_packed

dpdk/drivers/net/virtio/virtqueue.h:747–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747static void
748vq_ring_free_id_packed(struct virtqueue *vq, uint16_t id)
749{
750 struct vq_desc_extra *dxp;
751
752 dxp = &vq->vq_descx[id];
753 vq->vq_free_cnt += dxp->ndescs;
754
755 if (vq->vq_desc_tail_idx == VQ_RING_DESC_CHAIN_END)
756 vq->vq_desc_head_idx = id;
757 else
758 vq->vq_descx[vq->vq_desc_tail_idx].next = id;
759
760 vq->vq_desc_tail_idx = id;
761 dxp->next = VQ_RING_DESC_CHAIN_END;
762}
763
764static void
765virtio_xmit_cleanup_inorder_packed(struct virtqueue *vq, uint16_t num)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected