linux/drivers/net/hyperv
Stephen Hemminger a7f99d0f2b 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>
2017-12-03 10:10:02 -05:00
..
hyperv_net.h hv_netvsc: use reciprocal divide to speed up percent calculation 2017-12-03 10:10:02 -05:00
Kconfig
Makefile
netvsc_drv.c hv_netvsc: use reciprocal divide to speed up percent calculation 2017-12-03 10:10:02 -05:00
netvsc.c hv_netvsc: use reciprocal divide to speed up percent calculation 2017-12-03 10:10:02 -05:00
rndis_filter.c hv_netvsc: use reciprocal divide to speed up percent calculation 2017-12-03 10:10:02 -05:00