netvsc: optimize receive path
authorstephen hemminger <stephen@networkplumber.org>
Tue, 24 Jan 2017 21:06:08 +0000 (13:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 21:29:00 +0000 (16:29 -0500)
commitdc54a08cd3620e6457382c0cd0c8f03513dd749a
tree5661b5350c2fee7199899e5ff36766280101ec08
parentb8b835a89b2f7a7fe681983dfe5c489cb9ad9500
netvsc: optimize receive path

Do manual optimizations of receive path:
  - remove checks for impossible conditions (but keep checks
    for bad data from host)
  - pass argument down, rather than having callee recompute what
    is already known
  - remove indirection about receive buffer datalength
  - remove dependence on VLAN_TAG_PRESENCE
  - use _hot/_cold and likely/unlikely

Signed-off-by: Stephen Hemminger <sthemmin@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