commit | d85b758f72b05a774045545f24d70980e3e9aac4 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Thu Mar 09 02:21:21 2017 +0200 |
committer | Michael S. Tsirkin <mst@redhat.com> | Tue May 09 16:43:21 2017 +0300 |
tree | a759ede2153e54e53bb6965df242858a805c7dc7 | |
parent | e377fcc8486d40867c6c217077ad0fa40977e060 [diff] |
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: 2613af0ed18a ("virtio_net: migrate mergeable rx buffers to page frag allocators") Signed-off-by: Michael S. Tsirkin <mst@redhat.com>