Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d85b758f authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio_net: fix support for small rings



When ring size is small (<32 entries) making buffers smaller means a
full ring might not be able to hold enough buffers to fit a single large
packet.

Make sure a ring full of buffers is large enough to allow at least one
packet of max size.

Fixes: 2613af0e ("virtio_net: migrate mergeable rx buffers to page frag allocators")
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent e377fcc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment