]> git.baikalelectronics.ru Git - kernel.git/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)
commit374cdbc70b7f1e07f3a100ef5716efc3d55e3411
treeffd2c0db655898e4e0e981af4eb1d71fa6cf1e99
parentfe98d3bf06eeedf1480e459750b87218f2387993
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