diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2015-12-01 16:43:12 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-02 23:43:24 -0500 |
commit | 2a04ae8acb144996eba6e3d69ab2a7156c775416 (patch) | |
tree | 15e4e14be435e272736d2a06f3b891e0e808f108 /drivers/net/hyperv/hyperv_net.h | |
parent | 8b9fbe1ac390689f01153d6af8485caec5423ccc (diff) | |
download | op-kernel-dev-2a04ae8acb144996eba6e3d69ab2a7156c775416.zip op-kernel-dev-2a04ae8acb144996eba6e3d69ab2a7156c775416.tar.gz |
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 8d534a3..ee0f559 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 */ }; |