aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Lublin <uril@qumranet.com>2007-03-06 17:01:06 +0000
committerUri Lublin <uril@qumranet.com>2007-03-06 17:01:06 +0000
commitdd72669d25c86febf4dbc137b34d77eec9b95006 (patch)
treeceb66abe2680498c27d3abaf6e1de1fb9c0d9731
parentb32b286025df9231dc21836e3029da5d2d61455b (diff)
qemu live migration: send announce-self-packets only on tap interfaces.
The guest does not need to receive those packets.
-rw-r--r--vl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 7ac7738ac..a6d48f184 100644
--- a/vl.c
+++ b/vl.c
@@ -4320,8 +4320,9 @@ static void qemu_announce_self(void)
len = announce_self_create(buf, nd_table[i].macaddr);
vlan = nd_table[i].vlan;
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
- for (j=0; j < SELF_ANNOUNCE_ROUNDS; j++)
- vc->fd_read(vc->opaque, buf, len);
+ if (vc->fd_read == tap_receive) /* send only if tap */
+ for (j=0; j < SELF_ANNOUNCE_ROUNDS; j++)
+ vc->fd_read(vc->opaque, buf, len);
}
}
}