[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2] xen-netfront: delay gARP until backend switches to Connected

In addition to backporting 43223efd9bfd to the RHEL-5 host side, we needed the
following in the RHEL-6 guest, in order to fix the network outage after live
migration. I also tested a Fedora-15 guest (without the patch), and the
backport to the host side alone was not sufficient there either. Therefore I
think it could be useful to apply this guest-side patch to upstream as well.

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=713585

v1->v2: "port" to Linus's tree; add RHBZ ref.

Signed-off-by: Laszlo Ersek <lersek@xxxxxxxxxx>
 drivers/net/xen-netfront.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index d29365a..f033656 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1646,7 +1646,6 @@ static void netback_changed(struct xenbus_device *dev,
        case XenbusStateInitialised:
        case XenbusStateReconfiguring:
        case XenbusStateReconfigured:
-       case XenbusStateConnected:
        case XenbusStateUnknown:
        case XenbusStateClosed:
@@ -1657,6 +1656,9 @@ static void netback_changed(struct xenbus_device *dev,
                if (xennet_connect(netdev) != 0)
                xenbus_switch_state(dev, XenbusStateConnected);
+               break;
+       case XenbusStateConnected:

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.