diff options
author | Andy Zhou <azhou@nicira.com> | 2014-04-16 07:51:02 -0700 |
---|---|---|
committer | Andy Zhou <azhou@nicira.com> | 2014-04-16 08:58:40 -0700 |
commit | 545b23f61fe72e77b37933e5b5fe3f6c4f4a9230 (patch) | |
tree | ad4c0773ba189a62c251770734e54a59bf988877 /ofproto/bond.c | |
parent | f6ba1f355075900221ffbfba127a75e540841bc5 (diff) | |
download | openvswitch-545b23f61fe72e77b37933e5b5fe3f6c4f4a9230.tar.gz |
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 <azhou@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Diffstat (limited to 'ofproto/bond.c')
-rw-r--r-- | ofproto/bond.c | 3 |
1 files changed, 0 insertions, 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: |