commit | 2d24cdaa6e389f85dad51eda39f1c2684a4f15b0 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@redhat.com> | Wed Sep 14 13:06:45 2011 +0530 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Wed Nov 02 11:41:00 2011 +1030 |
tree | 88f02e92c459fa8d768c1ae6fbcfa8a4ccfcdc0e | |
parent | ce072a0cee420782ed0a079ac17c7ca26056fb95 [diff] |
virtio: console: make discard_port_data() use get_inbuf() discard_port_data() used virtqueue_get_buf() directly instead of using get_inbuf(). Fix this, so that we get accounting for all received bytes. This also simplifies the code a lot. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>