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

Function vring_desc_init_split

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

Chain all the descriptors in the ring with an END */

Source from the content-addressed store, hash-verified

294
295/* Chain all the descriptors in the ring with an END */
296static inline void
297vring_desc_init_split(struct vring_desc *dp, uint16_t n)
298{
299 uint16_t i;
300
301 for (i = 0; i < n - 1; i++)
302 dp[i].next = (uint16_t)(i + 1);
303 dp[i].next = VQ_RING_DESC_CHAIN_END;
304}
305
306static inline void
307vring_desc_init_indirect_packed(struct vring_packed_desc *dp, int n)

Callers 2

virtio_init_vringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected