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

GitHub noreply at github.com
Wed Sep 23 01:09:18 UTC 2015


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

  Changed paths:
    M AUTHORS
    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>
tested-by: Gregory Smith <gasmith at nutanix.com>
Signed-off-by: Andy Zhou <azhou at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>




More information about the git mailing list