ofproto/bond: Keep hash entry slave valid.
authorAndy Zhou <azhou@nicira.com>
Wed, 16 Apr 2014 14:51:02 +0000 (07:51 -0700)
committerAndy Zhou <azhou@nicira.com>
Wed, 16 Apr 2014 15:58:40 +0000 (08:58 -0700)
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 <azhou@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
ofproto/bond.c

index c0f79c9..b1b8997 100644 (file)
@@ -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: