hv_netvsc: replace divide with mask when computing padding
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 1 Dec 2017 19:01:46 +0000 (11:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 15:10:02 +0000 (10:10 -0500)
commitb85e06f7bb1a25dd2e7755d55a2ca313d24ae7ad
tree96a06d5e05d762625396fb22a797f4c7188e6f61
parent200a569990e1d54b8eed2fa817cbf4ba66fe9350
hv_netvsc: replace divide with mask when computing padding

Packet alignment is always a power of 2 therefore modulus can
be replaced with a faster and operation

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