virtio-net: alloc big buffers also when guest can receive UFO
authorJason Wang <jasowang@redhat.com>
Fri, 21 Feb 2014 05:08:04 +0000 (13:08 +0800)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Mar 2014 22:19:39 +0000 (23:19 +0100)
commit251ed2ca436332fc6055445967e85291276346b5
tree0099ba890c2651f0dfd145fd2000b9f8c3570af7
parentdf3839f910d836f85620947f0957d40a4171afd9
virtio-net: alloc big buffers also when guest can receive UFO

[ Upstream commit 0e7ede80d929ff0f830c44a543daa1acd590c749 ]

We should alloc big buffers also when guest can receive UFO
packets to let the big packets fit into guest rx buffer.

Fixes 5c5167515d80f78f6bb538492c423adcae31ad65
(virtio-net: Allow UFO feature to be set and advertised.)

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/virtio_net.c