Commit c14fec39 authored by David S. Miller's avatar David S. Miller

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: default avatarDavid S. Miller <davem@davemloft.net>
parents dd5a3005 f7ad75b7
...@@ -649,6 +649,8 @@ struct multi_recv_comp { ...@@ -649,6 +649,8 @@ struct multi_recv_comp {
struct netvsc_stats { struct netvsc_stats {
u64 packets; u64 packets;
u64 bytes; u64 bytes;
u64 broadcast;
u64 multicast;
struct u64_stats_sync syncp; struct u64_stats_sync syncp;
}; };
...@@ -695,9 +697,8 @@ struct net_device_context { ...@@ -695,9 +697,8 @@ struct net_device_context {
bool start_remove; bool start_remove;
/* State to manage the associated VF interface. */ /* State to manage the associated VF interface. */
struct net_device *vf_netdev; struct net_device __rcu *vf_netdev;
bool vf_inject;
atomic_t vf_use_cnt;
/* 1: allocated, serial number is valid. 0: not allocated */ /* 1: allocated, serial number is valid. 0: not allocated */
u32 vf_alloc; u32 vf_alloc;
/* Serial number of the VF to team with */ /* Serial number of the VF to team with */
......
...@@ -635,7 +635,7 @@ static void netvsc_send_tx_complete(struct netvsc_device *net_device, ...@@ -635,7 +635,7 @@ static void netvsc_send_tx_complete(struct netvsc_device *net_device,
q_idx = nvsc_packet->q_idx; q_idx = nvsc_packet->q_idx;
channel = incoming_channel; channel = incoming_channel;
dev_kfree_skb_any(skb); dev_consume_skb_any(skb);
} }
num_outstanding_sends = num_outstanding_sends =
...@@ -944,7 +944,7 @@ int netvsc_send(struct hv_device *device, ...@@ -944,7 +944,7 @@ int netvsc_send(struct hv_device *device,
} }
if (msdp->skb) if (msdp->skb)
dev_kfree_skb_any(msdp->skb); dev_consume_skb_any(msdp->skb);
if (xmit_more && !packet->cp_partial) { if (xmit_more && !packet->cp_partial) {
msdp->skb = skb; msdp->skb = skb;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment