mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
net/queue: introduce NetQueueDeliverFunc
net/queue.c has logic to send/queue/flush packets but a qemu_deliver_packet_iov() call is hardcoded. Abstract this func so that we can use our own deliver function in netfilter. Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com> Cc: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
fefe2a78ab
commit
3e033a46a7
3 changed files with 18 additions and 5 deletions
|
@ -286,7 +286,7 @@ static void qemu_net_client_setup(NetClientState *nc,
|
|||
}
|
||||
QTAILQ_INSERT_TAIL(&net_clients, nc, next);
|
||||
|
||||
nc->incoming_queue = qemu_new_net_queue(nc);
|
||||
nc->incoming_queue = qemu_new_net_queue(qemu_deliver_packet_iov, nc);
|
||||
nc->destructor = destructor;
|
||||
QTAILQ_INIT(&nc->filters);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue