]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb662d114220ebd662aca943a30234ad17ef8b3cf
tree9640a44e7b2a9910a5fd9e098a1c3aa7858c41d5
parent72df4b77c69b2ea2f7b0d9799c1c2a9ee08e7e55
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