aboutsummaryrefslogtreecommitdiff
path: root/disas
diff options
context:
space:
mode:
authorVlad Yasevich <vyasevic@redhat.com>2013-11-21 21:05:51 -0500
committerStefan Hajnoczi <stefanha@redhat.com>2013-12-09 13:33:20 +0100
commit02d38fcb2caa4454cf4ed728d5908c3cc9ba47be (patch)
tree0f4ead1954630c9f434434cc3f3cf31611aa1f61 /disas
parentcae2e5562cdaf3aafa1c4ec2d5f2b19af6c886dd (diff)
net: Update netdev peer on link change
When a link change occurs on a backend (like tap), we currently do not propage such change to the nic. As a result, when someone turns off a link on a tap device, for instance, then a guest doesn't see that change and continues to try to send traffic or run DHCP even though the lower-layer is disconnected. This is OK when the network is set up as a HUB since the the guest may be connected to other HUB ports too, but when it's set up as a netdev, it makes thinkgs worse. The patch addresses this by setting the peers link down only when the peer is not a HUBPORT device. With this patch, in the following config -netdev tap,id=net0 -device e1000,mac=XXXXX,netdev=net0 when net0 link is turned off, the guest e1000 shows lower-layer link down. This allows guests to boot much faster in such configurations. With windows guest, it also allows the network to recover properly since windows will not configure the link-local IPv4 address, and when the link is turned on, the proper address address is configured. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'disas')
0 files changed, 0 insertions, 0 deletions