diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2015-12-02 01:43:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-03 05:43:24 +0100 |
commit | 2a04ae8acb144996eba6e3d69ab2a7156c775416 (patch) | |
tree | 15e4e14be435e272736d2a06f3b891e0e808f108 /drivers/net/hyperv/hyperv_net.h | |
parent | hv_netvsc: move subchannel existence check to netvsc_select_queue() (diff) | |
download | linux-2a04ae8acb144996eba6e3d69ab2a7156c775416.tar.xz linux-2a04ae8acb144996eba6e3d69ab2a7156c775416.zip |
hv_netvsc: remove locking in netvsc_send()
Packet scheduler guarantees there won't be multiple senders for the same
queue and as we use q_idx for multi_send_data the spinlock is redundant.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-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 | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 8d534a324ce1..ee0f55957ab8 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -632,7 +632,6 @@ struct nvsp_message { #define RNDIS_PKT_ALIGN_DEFAULT 8 struct multi_send_data { - spinlock_t lock; /* protect struct multi_send_data */ struct hv_netvsc_packet *pkt; /* netvsc pkt pending */ u32 count; /* counter of batched packets */ }; |