[ovs-dev] [PATCH 2/4] ofproto/bond: Keep hash entry slave valid.
Andy Zhou
azhou at nicira.com
Wed Apr 16 15:13:38 UTC 2014
From: Andy Zhou <andy at bubblewrapp.com>
Bond recirculation needs to refresh the 'hidden rules' from
time to time. Keep hash entry slave valid to prevent those
hidden rules from being removed.
Signed-off-by: Andy Zhou <andy at bubblewrapp.com>
---
ofproto/bond.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/ofproto/bond.c b/ofproto/bond.c
index c0f79c9..b1b8997 100644
--- a/ofproto/bond.c
+++ b/ofproto/bond.c
@@ -1179,9 +1179,6 @@ bond_rebalance(struct bond *bond)
* take 20 rebalancing runs to decay to 0 and get deleted entirely. */
for (e = &bond->hash[0]; e <= &bond->hash[BOND_MASK]; e++) {
e->tx_bytes /= 2;
- if (!e->tx_bytes) {
- e->slave = NULL;
- }
}
done:
--
1.9.1
More information about the dev
mailing list