mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00:00
virtio_nic: Tweak default buffer sizes.
After VirtIO::Queue refactoring buffers no longer share the same dataspace as VirtIO rings. This makes optimal buffer calculations a lot easier. In this case 64 buffers 2kB each will need precisely 128kB of RAM. Previous value of 2016 will just waste 768b. Fixed #4347
This commit is contained in:
parent
643747b912
commit
1a9fad4022
@ -131,7 +131,7 @@ class Virtio_nic::Device : Noncopyable
|
||||
* 256kB of RAM.
|
||||
*/
|
||||
static const uint16_t DEFAULT_VQ_SIZE = 64;
|
||||
static const uint16_t DEFAULT_VQ_BUF_SIZE = 2016;
|
||||
static const uint16_t DEFAULT_VQ_BUF_SIZE = 2048;
|
||||
|
||||
struct Rx_queue_traits
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user