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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2014 23:19:52 +0000 (18:19 -0500)
commit0e7ede80d929ff0f830c44a543daa1acd590c749
tree08fc842bafedc5a446ed330c6dc55432f0e18af8
parent916e4cf46d0204806c062c8c6c4d1f633852c5b6
virtio-net: alloc big buffers also when guest can receive UFO

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>
drivers/net/virtio_net.c