]> 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)
commit9147a5c2ea544928e4dd44d9b6770248c092356e
tree9640a44e7b2a9910a5fd9e098a1c3aa7858c41d5
parentc5eaac9b95babe33c77008a0d81591e00968dda8
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