]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: simplify receive side calling arguments
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 26 Apr 2018 21:34:25 +0000 (14:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:46:26 +0000 (14:46 -0400)
commitc12a407dde9286e24e5941e18ca2c6e0497d3e69
tree4d8d3ad027b65794c0628435510f083b1200b4e8
parentdda6b655185294603b628e688a7ff0ac98ae5152
hv_netvsc: simplify receive side calling arguments

The calls up from the napi poll reading the receive ring had many
places where an argument was being recreated. I.e the caller already
had the value and wasn't passing it, then the callee would use
known relationship to determine the same value. Simpler and faster
to just pass arguments needed.

Also, add const in a couple places where message is being only read.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c