net/queue: export qemu_net_queue_append_iov
This will be used by buffer filter implementation later to queue packets. Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
a4960f52e7
commit
b68c7f7692
@ -47,6 +47,13 @@ typedef ssize_t (NetQueueDeliverFunc)(NetClientState *sender,
|
||||
|
||||
NetQueue *qemu_new_net_queue(NetQueueDeliverFunc *deliver, void *opaque);
|
||||
|
||||
void qemu_net_queue_append_iov(NetQueue *queue,
|
||||
NetClientState *sender,
|
||||
unsigned flags,
|
||||
const struct iovec *iov,
|
||||
int iovcnt,
|
||||
NetPacketSent *sent_cb);
|
||||
|
||||
void qemu_del_net_queue(NetQueue *queue);
|
||||
|
||||
ssize_t qemu_net_queue_send(NetQueue *queue,
|
||||
|
12
net/queue.c
12
net/queue.c
@ -112,12 +112,12 @@ static void qemu_net_queue_append(NetQueue *queue,
|
||||
QTAILQ_INSERT_TAIL(&queue->packets, packet, entry);
|
||||
}
|
||||
|
||||
static void qemu_net_queue_append_iov(NetQueue *queue,
|
||||
NetClientState *sender,
|
||||
unsigned flags,
|
||||
const struct iovec *iov,
|
||||
int iovcnt,
|
||||
NetPacketSent *sent_cb)
|
||||
void qemu_net_queue_append_iov(NetQueue *queue,
|
||||
NetClientState *sender,
|
||||
unsigned flags,
|
||||
const struct iovec *iov,
|
||||
int iovcnt,
|
||||
NetPacketSent *sent_cb)
|
||||
{
|
||||
NetPacket *packet;
|
||||
size_t max_len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user