Re: [PATCH] virtio_net: fix support for small rings

2017-03-29 Thread Michael S. Tsirkin
On Wed, Mar 29, 2017 at 08:15:04PM +0300, Michael S. Tsirkin wrote: > 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

[PATCH] virtio_net: fix support for small rings

2017-03-29 Thread Michael S. Tsirkin
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: 2613af0ed18a ("virtio_net: migrate mergeable rx b