summaryrefslogtreecommitdiff
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-09-23 08:39:54 -0400
committerDavid S. Miller <davem@davemloft.net>2016-09-23 08:39:54 -0400
commitc14fec3969b0e8af5c38ad9f14198d6d7cca54d0 (patch)
treec8dc065962c44292584cd7c48e8d6bcaeb613bb3 /drivers/net/hyperv/hyperv_net.h
parentdd5a3005eb09b84d759dda43b1ae662bb223d2ac (diff)
parentf7ad75b753f386454f50044fd69edad767b69ce8 (diff)
Merge branch 'hv_netvsc-next'
Stephen Hemminger says: ==================== hv_netvsc changes These are mostly about improving the handling of interaction between the virtual network device (netvsc) and the SR-IOV VF network device. ==================== 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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 284b97b6b258..7130bf910f52 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -649,6 +649,8 @@ struct multi_recv_comp {
struct netvsc_stats {
u64 packets;
u64 bytes;
+ u64 broadcast;
+ u64 multicast;
struct u64_stats_sync syncp;
};
@@ -695,9 +697,8 @@ struct net_device_context {
bool start_remove;
/* State to manage the associated VF interface. */
- struct net_device *vf_netdev;
- bool vf_inject;
- atomic_t vf_use_cnt;
+ struct net_device __rcu *vf_netdev;
+
/* 1: allocated, serial number is valid. 0: not allocated */
u32 vf_alloc;
/* Serial number of the VF to team with */