Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpif-netdev: Fix Auto Load Balance debug log.
In the case where there is a NUMA node that has a zero variance improvement, the log will report it's variance improvement as value for a previous NUMA node with a non-zero variance improvement. For example in an artificial case: |dpif_netdev|DBG|Numa node 1. Current variance 1000 Estimated variance 0. Variance improvement 100%. ^^^ correct value |dpif_netdev|DBG|Numa node 0. Current variance 0 Estimated variance 0. Variance improvement 100%. ^^^ incorrect value for Numa 0, value from Numa 1 This is caused by not resetting the improvement between loops. This is a debug log reporting issue only, non-zero variance improvement will still trigger rebalance where appropriate. Move improvement and other variables into the loop code block to fix logs. Fixes: 46e04ec ("dpif-netdev: Calculate per numa variance.") Reported-at: https://issues.redhat.com/browse/FDP-1145 Signed-off-by: Kevin Traynor <ktraynor@redhat.com> Acked-by: Simon Horman <horms@ovn.org> Reviewed-by: David Marchand <david.marchand@redhat.com>
- Loading branch information