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)
commit655aa31f028c4498e8896576571ee1ea68dd26e0
treee133f367535d97a6cbe65d95bd0174822a21e76f
parent5ef827526fc01820a7a80827802e9fad3f34f937
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