diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2014-06-19 21:34:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-20 00:17:37 -0400 |
commit | 3a494e710367c0a233d86bcde9853781859fc008 (patch) | |
tree | d79694a284627d3015a4b8975dd2d6aa7e434e04 /drivers/net/hyperv/hyperv_net.h | |
parent | e0f802fbcaa3bffe4728e37a8fa1279b5d554173 (diff) |
hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event
The RNDIS_STATUS_NETWORK_CHANGE event is received after the Hyper-V host
sleep or hibernation. We refresh network at this time.
MS-TFS: 135162
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 6cc37c15e0bf..24441ae832d1 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h | |||
@@ -170,6 +170,7 @@ struct rndis_device { | |||
170 | 170 | ||
171 | enum rndis_device_state state; | 171 | enum rndis_device_state state; |
172 | bool link_state; | 172 | bool link_state; |
173 | bool link_change; | ||
173 | atomic_t new_req_id; | 174 | atomic_t new_req_id; |
174 | 175 | ||
175 | spinlock_t request_lock; | 176 | spinlock_t request_lock; |
@@ -185,7 +186,7 @@ int netvsc_device_remove(struct hv_device *device); | |||
185 | int netvsc_send(struct hv_device *device, | 186 | int netvsc_send(struct hv_device *device, |
186 | struct hv_netvsc_packet *packet); | 187 | struct hv_netvsc_packet *packet); |
187 | void netvsc_linkstatus_callback(struct hv_device *device_obj, | 188 | void netvsc_linkstatus_callback(struct hv_device *device_obj, |
188 | unsigned int status); | 189 | struct rndis_message *resp); |
189 | int netvsc_recv_callback(struct hv_device *device_obj, | 190 | int netvsc_recv_callback(struct hv_device *device_obj, |
190 | struct hv_netvsc_packet *packet, | 191 | struct hv_netvsc_packet *packet, |
191 | struct ndis_tcp_ip_checksum_info *csum_info); | 192 | struct ndis_tcp_ip_checksum_info *csum_info); |