socket: pass correct size in net_socket_send()
commit091f1f52963d7093ea578e4a05e67bc015b21192
authorJason Wang <jasowang@redhat.com>
Tue, 7 Jul 2015 09:00:56 +0000 (7 17:00 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 20 Jul 2015 16:39:05 +0000 (20 17:39 +0100)
tree22678c6d204a9aa9db982545258f607510a3648f
parentf73ca7363440240b7ee5ee7f7ddb1c64751efb54
socket: pass correct size in net_socket_send()

We should pass the size of packet instead of the remaining to
qemu_send_packet_async().

Fixes: 6e99c631f116221d169ea53953d91b8aa74d297a
       ("net/socket: Drop net_socket_can_send")

Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1436259656-24263-1-git-send-email-jasowang@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
net/socket.c