]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: fix tx_ stats in virtio_net
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 3 May 2008 02:50:43 +0000 (21:50 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 2 May 2008 11:50:44 +0000 (21:50 +1000)
commit01e24de9b9860db20a5eacb48c0b137e20eade13
treee133f367535d97a6cbe65d95bd0174822a21e76f
parent00b6c944d7a470609a24c5b49ba251734a2b236d
virtio: fix tx_ stats in virtio_net

get_buf() gives the length written by the other side, which will be
zero.  We want to add the skb length.

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