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

Function virtqueue_txq_indirect_headers_init

dpdk/drivers/net/virtio/virtqueue.c:183–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void
184virtqueue_txq_indirect_headers_init(struct virtqueue *vq)
185{
186 uint32_t i;
187
188 if (!virtio_with_feature(vq->hw, VIRTIO_RING_F_INDIRECT_DESC))
189 return;
190
191 for (i = 0; i < vq->vq_nentries; i++)
192 if (virtio_with_packed_queue(vq->hw))
193 virtqueue_txq_indirect_header_init_packed(vq, i);
194 else
195 virtqueue_txq_indirect_header_init_split(vq, i);
196}
197
198int
199virtqueue_rxvq_reset_packed(struct virtqueue *vq)

Callers 2

virtqueue_allocFunction · 0.85

Tested by

no test coverage detected