mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
dpif-netdev: Add log for PMD auto load balance interval parameter.
Previously if the parameter for the PMD auto load balance minimum
interval was changed at runtime, it was not logged unless the
PMD auto load balance feature was also changed to enabled.
Log the parameter anytime it changes, and use minutes when it is
logged as that is the user input format.
Fixes: 5bf8428248
("Adding support for PMD auto load balancing")
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
committed by
Ilya Maximets
parent
32c8c10d94
commit
e4db0b69e2
@@ -4234,8 +4234,8 @@ set_pmd_auto_lb(struct dp_netdev *dp)
|
||||
pmd_alb->is_enabled = enable_alb;
|
||||
if (pmd_alb->is_enabled) {
|
||||
VLOG_INFO("PMD auto load balance is enabled "
|
||||
"(with rebalance interval:%"PRIu64" msec)",
|
||||
pmd_alb->rebalance_intvl);
|
||||
"interval %"PRIu64" mins",
|
||||
pmd_alb->rebalance_intvl / MIN_TO_MSEC);
|
||||
} else {
|
||||
pmd_alb->rebalance_poll_timer = 0;
|
||||
VLOG_INFO("PMD auto load balance is disabled");
|
||||
@@ -4344,6 +4344,8 @@ dpif_netdev_set_config(struct dpif *dpif, const struct smap *other_config)
|
||||
|
||||
if (pmd_alb->rebalance_intvl != rebalance_intvl) {
|
||||
pmd_alb->rebalance_intvl = rebalance_intvl;
|
||||
VLOG_INFO("PMD auto load balance interval set to "
|
||||
"%"PRIu64" mins\n", rebalance_intvl / MIN_TO_MSEC);
|
||||
}
|
||||
|
||||
set_pmd_auto_lb(dp);
|
||||
|
Reference in New Issue
Block a user