xen-netback: Handle backend state transitions in a more robust way
authorPaul Durrant <Paul.Durrant@citrix.com>
Thu, 26 Sep 2013 11:09:52 +0000 (12:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Sep 2013 19:13:28 +0000 (15:13 -0400)
commitea732dff5cfa10789007bf4a5b935388a0bb2a8f
tree9640a44e7b2a9910a5fd9e098a1c3aa7858c41d5
parentc9d55d5bff05084b5829f751aebd03d0c8f632f5
xen-netback: Handle backend state transitions in a more robust way

When the frontend state changes netback now specifies its desired state to
a new function, set_backend_state(), which transitions through any
necessary intermediate states.
This fixes an issue observed with some old Windows frontend drivers where
they failed to transition through the Closing state and netback would not
behave correctly.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/xenbus.c