summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2019-09-25 22:04:04 +0000
committerSasha Levin <sashal@kernel.org>2019-11-21 20:10:44 -0500
commit0efeea5fb15357f0a582c89c02ef0b6ef58defb5 (patch)
tree96d7c5e93f6e61e487fe58d8a9893aa3985ef68b /drivers/net/hyperv/hyperv_net.h
parent2194c2eb6717f2ea7dc793ad9cbf44d359a3f696 (diff)
downloadlinux-0efeea5fb15357f0a582c89c02ef0b6ef58defb5.tar.bz2
hv_netvsc: Add the support of hibernation
The existing netvsc_detach() and netvsc_attach() APIs make it easy to implement the suspend/resume callbacks. Signed-off-by: Dexuan Cui <decui@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r--drivers/net/hyperv/hyperv_net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 670ef682f268..ab7cc3dd3b33 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -952,6 +952,9 @@ struct net_device_context {
u32 vf_alloc;
/* Serial number of the VF to team with */
u32 vf_serial;
+
+ /* Used to temporarily save the config info across hibernation */
+ struct netvsc_device_info *saved_netvsc_dev_info;
};
/* Per channel data */