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

Function vring_init_packed

dpdk/drivers/net/virtio/virtio_ring.h:163–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163static inline void
164vring_init_packed(struct vring_packed *vr, uint8_t *p, unsigned long align,
165 unsigned int num)
166{
167 vr->num = num;
168 vr->desc = (struct vring_packed_desc *)p;
169 vr->driver = (struct vring_packed_desc_event *)(p +
170 vr->num * sizeof(struct vring_packed_desc));
171 vr->device = (struct vring_packed_desc_event *)
172 RTE_ALIGN_CEIL(((uintptr_t)vr->driver +
173 sizeof(struct vring_packed_desc_event)), align);
174}
175
176/*
177 * The following is used with VIRTIO_RING_F_EVENT_IDX.

Callers 1

virtio_init_vringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected