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

Function vring_desc_init_packed

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

Source from the content-addressed store, hash-verified

281}
282
283static inline void
284vring_desc_init_packed(struct virtqueue *vq, int n)
285{
286 int i;
287 for (i = 0; i < n - 1; i++) {
288 vq->vq_packed.ring.desc[i].id = i;
289 vq->vq_descx[i].next = i + 1;
290 }
291 vq->vq_packed.ring.desc[i].id = i;
292 vq->vq_descx[i].next = VQ_RING_DESC_CHAIN_END;
293}
294
295/* Chain all the descriptors in the ring with an END */
296static inline void

Callers 3

virtio_init_vringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected