commit | 0741bcb5584f9e2390ae6261573c4de8314999f2 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@redhat.com> | Thu Dec 22 16:58:33 2011 +0530 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Thu Jan 12 15:44:46 2012 +1030 |
tree | d52abfa39e08dbdda0bee35d85a72a8060391a16 | |
parent | 04486ed019d249249c00546704af12498a432c15 [diff] |
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>