]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35248f1d9bc199942a7032c6ef1295c0c3f792ef
tree5661b5350c2fee7199899e5ff36766280101ec08
parentdd94be135b44a5363efaad63ba437e6452f99228
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