diff options
author | Uri Lublin <uril@qumranet.com> | 2007-03-06 17:01:06 +0000 |
---|---|---|
committer | Uri Lublin <uril@qumranet.com> | 2007-03-06 17:01:06 +0000 |
commit | dd72669d25c86febf4dbc137b34d77eec9b95006 (patch) | |
tree | ceb66abe2680498c27d3abaf6e1de1fb9c0d9731 | |
parent | b32b286025df9231dc21836e3029da5d2d61455b (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } } } |