]> err.no Git - linux-2.6/commit
virtio: fix scatterlist sizing in net driver.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 3 May 2008 02:50:45 +0000 (21:50 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 2 May 2008 11:50:45 +0000 (21:50 +1000)
commit0527168522c25121bdd5d5f1d3c5b484d972ea14
treeffd2c0db655898e4e0e981af4eb1d71fa6cf1e99
parentcb38fa23c17519faf46a76d2f71a8430705fe474
virtio: fix scatterlist sizing in net driver.

Herbert Xu points out (within another patch) that my scatterlists are
too short: one entry for the gso header, one for the skb->data, and
MAX_SKB_FRAGS for all the fragments.

Fix both xmit and recv sides (recv currently unused, coming in later
patch).

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