]> git.proxmox.com Git - qemu.git/commit
e1000: fix link down handling with auto negotiation
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 5 Feb 2013 19:00:21 +0000 (21:00 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 6 Feb 2013 14:29:25 +0000 (08:29 -0600)
commitddcb73b7782cb6104479503faea04cc224f982b5
treeb9a4eceefc9f5895ece88866f2e5f3f10cf5fcc1
parent84208085d357d95b84f6e281ec3aa028e988e5ff
e1000: fix link down handling with auto negotiation

Fixes a couple of regression bugs introduced by
b9d03e352cb6b31a66545763f6a1e20c9abf0c2c and related to
auto-negotiation:
-   Auto-negotiation currently sets link up even if it was
    forced down from the monitor.
-   If Auto-negotiation was in progress during migration,
    link will never come up.

As a fix, don't touch NC link_down field at all,
instead add code on receive path to check
guest link status.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/e1000.c