[ovs-git] [openvswitch/ovs] 479c68: ofproto/bond: simplify rebalancing logic

GitHub noreply at github.com
Wed Sep 23 00:57:15 UTC 2015


  Branch: refs/heads/branch-2.3
  Home:   https://github.com/openvswitch/ovs
  Commit: 479c686987afe81a79b78d300fba4c62f8e70e8d
      https://github.com/openvswitch/ovs/commit/479c686987afe81a79b78d300fba4c62f8e70e8d
  Author: Andy Zhou <azhou at nicira.com>
  Date:   2015-09-22 (Tue, 22 Sep 2015)

  Changed paths:
    M ofproto/bond.c

  Log Message:
  -----------
  ofproto/bond: simplify rebalancing logic

The current bond relancing logic is more complicated than necessary.
When considering a bucket for rebalancing, we just need to make sure
post rebalancing traffic will be closer to the ideal traffic split
than before. This patch implements the simplification.

There is a bug is current algorithm that causes a heavyly loaded bucket
to ping-pong for each reblancing interval. The simplied loigc also fixes
this bug.

Though not the main motivation for the change, computations are now
done with integer math rather than floating math.

Reported-by: Gregory Smith <gasmith at nutanix.com>
Signed-off-by: Andy Zhou <azhou at nicira.com>




More information about the git mailing list