]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
802.1Qbh: Delay IFF_UP'ing interface until migration final stage
authorRoopa Prabhu <roprabhu@cisco.com>
Tue, 22 Feb 2011 12:48:54 +0000 (07:48 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 22 Feb 2011 12:48:54 +0000 (07:48 -0500)
commitdfd39ccda8d0347636d92b89bf569b1dc9924ea6
tree57c1e693be4b725ad028a5969f57d251158c9061
parent9f928af12bc81c26299bc2711ea2c1ef3139c6fd
802.1Qbh: Delay IFF_UP'ing interface until migration final stage

Current code does an IFF_UP on a 8021Qbh interface immediately after a port
profile set. This is ok in most cases except when its the migration prepare
stage. During migration we want to postpone IFF_UP'ing the interface on the
destination host until the source host has disassociated the interface.
This patch moves IFF_UP of the interface to the final stage of migration.
The motivation for this change is to postpone any addr registrations on the
destination host until the source host has done the addr deregistrations.

While at it, for symmetry with associate move ifDown of a 8021Qbh interface
to before disassociate
src/util/macvtap.c