diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2017-03-09 02:21:21 +0200 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2017-08-26 02:14:47 +0100 |
| commit | 793d777098236c715b06f53a32925cce991331c5 (patch) | |
| tree | f619456fe8cdf0cd01dcb0236dae9938d6c7b91a /include/linux/start_kernel.h | |
| parent | ef1376060d93872953ead42fae856381f273b771 (diff) | |
virtio_net: fix support for small rings
commit d85b758f72b05a774045545f24d70980e3e9aac4 upstream.
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>
[bwh: Backported to 3.16:
- There's no net_device::max_mtu, so always set packet_len = IP_MAX_MTU
- Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions
