]> git.ipfire.org Git - people/ms/linux.git/commit
hyperv: Remove recv_pkt_list and lock
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 21 Apr 2014 21:54:43 +0000 (14:54 -0700)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Dec 2015 16:37:42 +0000 (16:37 +0000)
commitd6bf5567c1438b4f3b1bcff1a1525ddb1754df19
tree6557affe8a9ef579c842cadac840d8b9dc0f44dd
parent44559a96c6864eb6e95db0ae896c621b82e605f3
hyperv: Remove recv_pkt_list and lock

Removed recv_pkt_list and lock, and updated related code, so that
the locking overhead is reduced especially when multiple channels
are in use.

The recv_pkt_list isn't actually necessary because the packets are
processed sequentially in each channel. It has been replaced by a
local variable, and the related lock for this list is also removed.
The is_data_pkt field is not used in receive path, so its assignment
is cleaned up.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c