From 545b23f61fe72e77b37933e5b5fe3f6c4f4a9230 Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Wed, 16 Apr 2014 07:51:02 -0700 Subject: [PATCH] ofproto/bond: Keep hash entry slave valid. 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 Acked-by: Jarno Rajahalme --- ofproto/bond.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ofproto/bond.c b/ofproto/bond.c index c0f79c992..b1b8997f3 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: -- 2.43.0