hyperv: Remove recv_pkt_list and lock
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 21 Apr 2014 21:54:43 +0000 (14:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Apr 2014 18:48:39 +0000 (14:48 -0400)
commit4baab26129e0540746744232022110dbe9e011e7
tree191b15d289faf1ba4cdaf6005156cbe87a920901
parentfd0d192be6e814495aec91f357b5801afc3b6262
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