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)
commitc347b9273c26453fa8c9e1acb92f45546d888745
tree4d8d3ad027b65794c0628435510f083b1200b4e8
parent4422cc0d5b58fb1c1a7a1cbf630c2781459c76f8
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