qemu-e2k/hw/net/rocker
Scott Feldman 5ff1547b75 rocker: bring link up/down on PHY enable/disable
When the OS driver enables/disables the port, go ahead and set the port's
link status to up/down in response to the change.  This more closely
emulates real hardware when the PHY for the port is brought up/down
and the PHY negotiates carrier (link status) with link partner.  In
the case of qemu, the virtual rocker device can't really do link
negotiation with the link partner as that requires signally over a
physical medium (the wire), so just pretend the negotiation was
successful and bring the link up when the port is enabled.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1433985681-56138-4-git-send-email-sfeldma@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-06-12 13:26:27 +01:00
..
rocker.c rocker: Add support for phys name 2015-06-12 13:26:27 +01:00
rocker.h rocker: timestamp on the debug logs helps correlate with events in the VM 2015-05-11 14:49:04 +01:00
rocker_desc.c rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_desc.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_fp.c rocker: bring link up/down on PHY enable/disable 2015-06-12 13:26:27 +01:00
rocker_fp.h rocker: Add support for phys name 2015-06-12 13:26:27 +01:00
rocker_hw.h rocker: Add support for phys name 2015-06-12 13:26:27 +01:00
rocker_of_dpa.c rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_of_dpa.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_tlv.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_world.c rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_world.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00