diff options
author | Ben Pfaff <blp@nicira.com> | 2013-01-07 12:23:07 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-01-07 12:23:46 -0800 |
commit | 09a5d390eec472e7837c6accb6196770a78f5bd1 (patch) | |
tree | 7b2f203b1345c81d88088fa4623a52a610d70e62 /lib/bond.c | |
parent | 70fe217eef345c89033c5cac042198612fb35f7e (diff) |
bond: Correct comments.
Signed-off-by: Ben Pfaff <blp@nicira.com>
CC: Zoltan Kiss <zoltan.kiss@citrix.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/bond.c')
-rw-r--r-- | lib/bond.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -742,7 +742,8 @@ bond_shift_load(struct bond_entry *hash, struct bond_slave *to, hash->tag = tag_create_random(); } -/* Pick and returns a bond_entry to migrate to 'to' (the least-loaded slave), +/* Picks and returns a bond_entry to migrate from 'from' (the most heavily + * loaded bond slave) to a bond slave that has 'to_tx_bytes' bytes of load, * given that doing so must decrease the ratio of the load on the two slaves by * at least 0.1. Returns NULL if there is no appropriate entry. * @@ -859,8 +860,8 @@ bond_rebalance(struct bond *bond, struct tag_set *tags) break; } - /* 'from' is carrying significantly more load than 'to', and that load - * is split across at least two different hashes. */ + /* 'from' is carrying significantly more load than 'to'. Pick a hash + * to move from 'from' to 'to'. */ e = choose_entry_to_migrate(from, to->tx_bytes); if (e) { bond_shift_load(e, to, tags); |