]> git.baikalelectronics.ru Git - kernel.git/commit
net: xen-netback: correctly restart Tx after a VM restore/migrate
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 30 Sep 2011 06:37:51 +0000 (06:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2011 18:15:46 +0000 (14:15 -0400)
commit2e7f347f97c6937fd362cb533656bbc70434c47a
treeb2cb7b93e26845326743e9a10bfc7bb6105e106e
parent6069c457c02f4ecb22dbd06c81a33c1e8fab0026
net: xen-netback: correctly restart Tx after a VM restore/migrate

If a VM is saved and restored (or migrated) the netback driver will no
longer process any Tx packets from the frontend.  xenvif_up() does not
schedule the processing of any pending Tx requests from the front end
because the carrier is off.  Without this initial kick the frontend
just adds Tx requests to the ring without raising an event (until the
ring is full).

This was caused by c3e4c0b0b47b9f925b5831fea42af76acc29693a (net:
xen-netback: convert to hw_features) which reordered the calls to
xenvif_up() and netif_carrier_on() in xenvif_connect().

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/interface.c