diff options
| author | Haiyang Zhang <[email protected]> | 2014-06-20 01:34:36 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-06-20 04:17:37 +0000 |
| commit | 3a494e710367c0a233d86bcde9853781859fc008 (patch) | |
| tree | d79694a284627d3015a4b8975dd2d6aa7e434e04 /drivers/net/hyperv/hyperv_net.h | |
| parent | tcp: move ir_mark initialization to tcp_openreq_init (diff) | |
| download | kernel-3a494e710367c0a233d86bcde9853781859fc008.tar.gz kernel-3a494e710367c0a233d86bcde9853781859fc008.zip | |
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 <[email protected]>
Reviewed-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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 { enum rndis_device_state state; bool link_state; + bool link_change; atomic_t new_req_id; spinlock_t request_lock; @@ -185,7 +186,7 @@ int netvsc_device_remove(struct hv_device *device); int netvsc_send(struct hv_device *device, struct hv_netvsc_packet *packet); void netvsc_linkstatus_callback(struct hv_device *device_obj, - unsigned int status); + struct rndis_message *resp); int netvsc_recv_callback(struct hv_device *device_obj, struct hv_netvsc_packet *packet, struct ndis_tcp_ip_checksum_info *csum_info); |
