bond: Change the way of assigning bond slave for unassigned bond entry.
authorAlex Wang <alexw@nicira.com>
Thu, 6 Feb 2014 23:46:05 +0000 (15:46 -0800)
committerAlex Wang <alexw@nicira.com>
Tue, 11 Feb 2014 19:48:29 +0000 (11:48 -0800)
commitf1c8a79c626f383926b70eb1885c40f8a427ba23
treea3c6c4d8f245b2507c6235ad80ea306a8dc1e06b
parent47fb7f713424b6b4b3464c6fed56e4e0f3677301
bond: Change the way of assigning bond slave for unassigned bond entry.

Before this commit, ovs randomly selects a slave for unassigned
bond entry.  If the selected slave is not enabled, the active slave
is chosen instead.  In this commit, the slave is selected from the
list of all enabled slaves in a round-robin fashion.  This helps
improve the consistency of bond behavior when new flows are added.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/bond.c