]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: net: Add freeze, restore handlers to support S4
authorAmit Shah <amit.shah@redhat.com>
Thu, 22 Dec 2011 11:28:33 +0000 (16:58 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:46 +0000 (15:44 +1030)
commit032bf76f7b913e41451c9daea857932a8bc47a0d
treed52abfa39e08dbdda0bee35d85a72a8060391a16
parent26aed1c3a115e03c7f3e61c3fb805683eca276f2
virtio: net: Add freeze, restore handlers to support S4

Remove all the vqs, disable napi and detach from the netdev on
hibernation.

Re-create vqs after restoring from a hibernated image, re-enable napi
and re-attach the netdev.  This keeps networking working across
hibernation.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c