mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
dpif-netdev: auto load balance log state on user request.
At present the log displays the auto load balance state everytime it is changed. There are some cases where the user will try to enable auto load balance, but it cannot be enabled because not enough PMDs or RxQs. As the state does not change, there is no new log of the state. While the the last log report of state is still correct, it is better to log the state again at this point so the user can explicitly confirm the outcome of their request. Signed-off-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
committed by
Ian Stokes
parent
81661d768b
commit
4b674829f9
@@ -4346,8 +4346,12 @@ dpif_netdev_set_config(struct dpif *dpif, const struct smap *other_config)
|
||||
}
|
||||
|
||||
struct pmd_auto_lb *pmd_alb = &dp->pmd_alb;
|
||||
bool cur_rebalance_requested = pmd_alb->auto_lb_requested;
|
||||
pmd_alb->auto_lb_requested = smap_get_bool(other_config, "pmd-auto-lb",
|
||||
false);
|
||||
if (cur_rebalance_requested != pmd_alb->auto_lb_requested) {
|
||||
log_autolb = true;
|
||||
}
|
||||
|
||||
rebalance_intvl = smap_get_int(other_config, "pmd-auto-lb-rebal-interval",
|
||||
ALB_REBALANCE_INTERVAL);
|
||||
|
Reference in New Issue
Block a user