diff options
| author | Dexuan Cui <[email protected]> | 2019-09-25 22:04:04 +0000 |
|---|---|---|
| committer | Sasha Levin <[email protected]> | 2019-11-22 01:10:44 +0000 |
| commit | 0efeea5fb15357f0a582c89c02ef0b6ef58defb5 (patch) | |
| tree | 96d7c5e93f6e61e487fe58d8a9893aa3985ef68b /drivers/net/hyperv/hyperv_net.h | |
| parent | hv_sock: Add the support of hibernation (diff) | |
| download | kernel-0efeea5fb15357f0a582c89c02ef0b6ef58defb5.tar.gz kernel-0efeea5fb15357f0a582c89c02ef0b6ef58defb5.zip | |
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 <[email protected]>
Reviewed-by: Haiyang Zhang <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
| -rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 3 |
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 */ |
