mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-11 21:32:57 +00:00
parent
e88a84e2ab
commit
c4810c5db4
@ -423,7 +423,7 @@ class Virtio::Queue
|
||||
* Only the first descritor in the chain needs to be pushed to the available ring.
|
||||
*/
|
||||
_avail->ring[_avail->idx % _queue_size] = write_result.first_descriptor_idx;
|
||||
_avail->idx += 1;
|
||||
_avail->idx = _avail->idx + 1;
|
||||
_avail->flags = Avail::Flags::NO_INTERRUPT;
|
||||
|
||||
return true;
|
||||
|
@ -32,8 +32,8 @@ class Genode::Uplink_client_base : Noncopyable
|
||||
|
||||
enum class Write_result { WRITE_SUCCEEDED, WRITE_FAILED };
|
||||
|
||||
enum { PKT_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE };
|
||||
enum { BUF_SIZE = Uplink::Session::QUEUE_SIZE * PKT_SIZE };
|
||||
static constexpr size_t PKT_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE;
|
||||
static constexpr size_t BUF_SIZE = Uplink::Session::QUEUE_SIZE * PKT_SIZE;
|
||||
|
||||
Env &_env;
|
||||
Allocator &_alloc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user