]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5307de6870b2275cc55f2ecc8cf352a45577783a
tree08fc842bafedc5a446ed330c6dc55432f0e18af8
parent7bc96540be3f7fcb462a0c93f08286a0f7dda0d9
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 5d2cb905101a959be3aeddd8d4fd37c146371e6c
(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