class GuestToHostCompletionQueue
Defined at line 57 of file ../../src/virtualization/bin/vmm/device/virtio_net/src/cpp/completion_queue.h
Public Members
static const uint32_t kMaxDepth
static const uint32_t kQueueDepth
Public Methods
void GuestToHostCompletionQueue (uint8_t port, async_dispatcher_t * dispatcher, fdf::WireSharedClient<fuchsia_hardware_network_driver::NetworkDeviceIfc> * device)
Defined at line 64 of file ../../src/virtualization/bin/vmm/device/virtio_net/src/cpp/completion_queue.cc
void Complete (uint32_t buffer_id, uint32_t length)
Write a completion to the queue, scheduling a task to send a completion to the netstack if
needed. If the queue is full, this won't be batched and instead will be scheduled
independently.
The `buffer_` queue is what's sent to the netstack, but its values are static. During queue
initialization its elements were configured to point back the `buffer_part_` queue which
contains the dynamic complete values.
This is safe to call from any thread.
Defined at line 83 of file ../../src/virtualization/bin/vmm/device/virtio_net/src/cpp/completion_queue.cc