aboutsummaryrefslogtreecommitdiff
path: root/net/queue.c
diff options
context:
space:
mode:
authorYang Hongyang <yanghy@cn.fujitsu.com>2015-10-07 11:52:16 +0800
committerJason Wang <jasowang@redhat.com>2015-10-12 13:30:04 +0800
commitfefe2a78abde932e0f340b21bded2c86def1d242 (patch)
tree16d422f7620487c1e7b75f10effc4d8d3c08f2f9 /net/queue.c
parente64c770d1fa859bd8ee583d339b085fe345ac02b (diff)
net: merge qemu_deliver_packet and qemu_deliver_packet_iov
qemu_deliver_packet_iov already have the compat delivery, we can drop qemu_deliver_packet. Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/queue.c')
-rw-r--r--net/queue.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/queue.c b/net/queue.c
index ebbe2bb93b..cf8db3ae95 100644
--- a/net/queue.c
+++ b/net/queue.c
@@ -152,9 +152,13 @@ static ssize_t qemu_net_queue_deliver(NetQueue *queue,
size_t size)
{
ssize_t ret = -1;
+ struct iovec iov = {
+ .iov_base = (void *)data,
+ .iov_len = size
+ };
queue->delivering = 1;
- ret = qemu_deliver_packet(sender, flags, data, size, queue->opaque);
+ ret = qemu_deliver_packet_iov(sender, flags, &iov, 1, queue->opaque);
queue->delivering = 0;
return ret;