Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpif-netdev: includes microsecond delta in meter bucket calculation
When dp-netdev meter rate is higher than 200Mbps, observe more than 10% bias from configured rate value with UDP traffic. In dp-netdev meter, millisecond delta between now and last used is taken into bucket size calcualtion, while sub-millisecond part is truncated. If traffic rate is pretty high, time delta can be few milliseconds, its ratio to truncated part is less than 10:1, the loss of bucket size caused by truncated can be observed obviously by commited traffic rate. In this patch, microsend delta part is included in calculation of meter bucket to make it more precise. Signed-off-by: Jiang Lidong <[email protected]> Signed-off-by: William Tu <[email protected]>
- Loading branch information