[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/19] net: insert event-tap to qemu_send_packet() a
From: |
Yoshiaki Tamura |
Subject: |
[Qemu-devel] [PATCH 13/19] net: insert event-tap to qemu_send_packet() and qemu_sendv_packet_async(). |
Date: |
Fri, 28 Jan 2011 16:21:46 +0900 |
event-tap function is called only when it is on.
Signed-off-by: Yoshiaki Tamura <address@hidden>
---
net.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/net.c b/net.c
index 9ba5be2..1176124 100644
--- a/net.c
+++ b/net.c
@@ -36,6 +36,7 @@
#include "qemu-common.h"
#include "qemu_socket.h"
#include "hw/qdev.h"
+#include "event-tap.h"
static QTAILQ_HEAD(, VLANState) vlans;
static QTAILQ_HEAD(, VLANClientState) non_vlan_clients;
@@ -559,6 +560,10 @@ ssize_t qemu_send_packet_async(VLANClientState *sender,
void qemu_send_packet(VLANClientState *vc, const uint8_t *buf, int size)
{
+ if (event_tap_is_on()) {
+ return event_tap_send_packet(vc, buf, size);
+ }
+
qemu_send_packet_async(vc, buf, size, NULL);
}
@@ -657,6 +662,10 @@ ssize_t qemu_sendv_packet_async(VLANClientState *sender,
{
NetQueue *queue;
+ if (event_tap_is_on()) {
+ return event_tap_sendv_packet_async(sender, iov, iovcnt, sent_cb);
+ }
+
if (sender->link_down || (!sender->peer && !sender->vlan)) {
return calc_iov_length(iov, iovcnt);
}
--
1.7.1.2
- [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., (continued)
- [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Paolo Bonzini, 2011/01/28
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Yoshiaki Tamura, 2011/01/28
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Paolo Bonzini, 2011/01/28
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Yoshiaki Tamura, 2011/01/28
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Paolo Bonzini, 2011/01/28
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Yoshiaki Tamura, 2011/01/29
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Paolo Bonzini, 2011/01/29
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Yoshiaki Tamura, 2011/01/29
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Paolo Bonzini, 2011/01/29
- Re: [Qemu-devel] Re: [PATCH 19/19] migration: add a parser to accept FT migration incoming mode., Yoshiaki Tamura, 2011/01/29
[Qemu-devel] [PATCH 13/19] net: insert event-tap to qemu_send_packet() and qemu_sendv_packet_async().,
Yoshiaki Tamura <=
[Qemu-devel] [PATCH 16/19] migration: introduce migrate_ft_trans_{put, get}_ready(), and modify migrate_fd_put_ready() when ft_mode is on., Yoshiaki Tamura, 2011/01/28
[Qemu-devel] [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari)., Yoshiaki Tamura, 2011/01/28
[Qemu-devel] [PATCH 11/19] ioport: insert event_tap_ioport() to ioport_write()., Yoshiaki Tamura, 2011/01/28
[Qemu-devel] [PATCH 06/19] virtio: decrement last_avail_idx with inuse before saving., Yoshiaki Tamura, 2011/01/28
[Qemu-devel] [PATCH 09/19] Introduce event-tap., Yoshiaki Tamura, 2011/01/28
[Qemu-devel] [PATCH 07/19] Introduce fault tolerant VM transaction QEMUFile and ft_mode., Yoshiaki Tamura, 2011/01/28
[Qemu-devel] [PATCH 04/19] qemu-char: export socket_set_nodelay()., Yoshiaki Tamura, 2011/01/28
[Qemu-devel] [PATCH 12/19] Insert event_tap_mmio() to cpu_physical_memory_rw() in exec.c., Yoshiaki Tamura, 2011/01/28
[Qemu-devel] [PATCH 15/19] savevm: introduce qemu_savevm_trans_{begin, commit}., Yoshiaki Tamura, 2011/01/28