linux: Increase accuracy of ingress_policing_rate at low rates
authorThomas Graf <tgraf@redhat.com>
Fri, 25 Jan 2013 19:13:55 +0000 (20:13 +0100)
committerBen Pfaff <blp@nicira.com>
Fri, 25 Jan 2013 23:25:21 +0000 (15:25 -0800)
commite5c08015823bd055ce64f12bc271c46f0551923b
tree823725e6d3999cb303bd808c997a03a8eb3cbd0a
parent8d675c5aee6430ee7c7ff41261d0686bccfc66cd
linux: Increase accuracy of ingress_policing_rate at low rates

The current method of calculating the ingress policer rate
can lead to inaccuracy if ingress_policing_rate is set to
a smallish values because the rate is divided by 8 first
which causes rounding errors.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-linux.c