]> err.no Git - linux-2.6/commit
virtio net: Allow receiving SG packets
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Apr 2008 03:24:27 +0000 (11:24 +0800)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 25 Jul 2008 02:06:01 +0000 (12:06 +1000)
commit97402b96f87c6e32f75f1bffdd91a5ee144b679d
tree7135f703666079dbc15fc972941179f05bd63972
parenta9ea3fc6f2654a7407864fec983d1671d775b5ee
virtio net: Allow receiving SG packets

Finally this patch lets virtio_net receive GSO packets in addition
to sending them.  This can definitely be optimised for the non-GSO
case.  For comparison the Xen approach stores one page in each skb
and uses subsequent skb's pages to construct an SG skb instead of
preallocating the maximum amount of pages per skb.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (added feature bits)
drivers/net/virtio_net.c