diff options
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 41071d32bc8e..dd4544085db3 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h | |||
@@ -161,6 +161,7 @@ struct netvsc_device_info { | |||
161 | unsigned char mac_adr[ETH_ALEN]; | 161 | unsigned char mac_adr[ETH_ALEN]; |
162 | bool link_state; /* 0 - link up, 1 - link down */ | 162 | bool link_state; /* 0 - link up, 1 - link down */ |
163 | int ring_size; | 163 | int ring_size; |
164 | u32 max_num_vrss_chns; | ||
164 | }; | 165 | }; |
165 | 166 | ||
166 | enum rndis_device_state { | 167 | enum rndis_device_state { |
@@ -611,6 +612,12 @@ struct multi_send_data { | |||
611 | u32 count; /* counter of batched packets */ | 612 | u32 count; /* counter of batched packets */ |
612 | }; | 613 | }; |
613 | 614 | ||
615 | struct netvsc_stats { | ||
616 | u64 packets; | ||
617 | u64 bytes; | ||
618 | struct u64_stats_sync syncp; | ||
619 | }; | ||
620 | |||
614 | /* The context of the netvsc device */ | 621 | /* The context of the netvsc device */ |
615 | struct net_device_context { | 622 | struct net_device_context { |
616 | /* point back to our device context */ | 623 | /* point back to our device context */ |
@@ -618,6 +625,9 @@ struct net_device_context { | |||
618 | struct delayed_work dwork; | 625 | struct delayed_work dwork; |
619 | struct work_struct work; | 626 | struct work_struct work; |
620 | u32 msg_enable; /* debug level */ | 627 | u32 msg_enable; /* debug level */ |
628 | |||
629 | struct netvsc_stats __percpu *tx_stats; | ||
630 | struct netvsc_stats __percpu *rx_stats; | ||
621 | }; | 631 | }; |
622 | 632 | ||
623 | /* Per netvsc device */ | 633 | /* Per netvsc device */ |