summaryrefslogtreecommitdiffstats
path: root/net/ncsi
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-12-01 11:01:47 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-03 10:10:02 -0500
commita7f99d0f2bbfe3b42ce398cdd37a97762e72cb56 (patch)
treeae1c99cb331fc717f3333cb3c4ce3b9fb57441a9 /net/ncsi
parentb85e06f7bb1a25dd2e7755d55a2ca313d24ae7ad (diff)
downloadlinux-a7f99d0f2bbfe3b42ce398cdd37a97762e72cb56.tar.bz2
hv_netvsc: use reciprocal divide to speed up percent calculation
Every packet sent checks the available ring space. The calculation can be sped up by using reciprocal divide which is multiplication. Since ring_size can only be configured by module parameter, so it doesn't have to be passed around everywhere. Also it should be unsigned since it is number of pages. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ncsi')
0 files changed, 0 insertions, 0 deletions