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

GitHub noreply at github.com
Wed Sep 23 18:38:02 UTC 2015


  Branch: refs/heads/branch-2.4
  Home:   https://github.com/openvswitch/ovs
  Commit: dbdcaf83bed5e7243b6aceb1688d2971322aae6a
      https://github.com/openvswitch/ovs/commit/dbdcaf83bed5e7243b6aceb1688d2971322aae6a
  Author: Andy Zhou <azhou at nicira.com>
  Date:   2015-09-23 (Wed, 23 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