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:
Piotr Tworek 2021-12-14 00:26:27 +01:00 committed by Norman Feske
parent 643747b912
commit 1a9fad4022

View File

@ -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
{