aboutsummaryrefslogtreecommitdiff
path: root/lib/bond.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-05-23 11:37:15 -0700
committerEthan Jackson <ethan@nicira.com>2011-05-23 13:21:14 -0700
commit739e1050dcc320af88e7ab227a15d26eb63e5726 (patch)
tree32ab3d8db1b2fa2ac87ee672b8f88bc937245cf4 /lib/bond.c
parent7fae24e67c95b1dbe93497135ae533e39b61e110 (diff)
bond: Always use L4 hash for stable bonds.
Stable bonds are used in such specialized cases that it doesn't make sense to require LACP negotiations to use L4 hashing.
Diffstat (limited to 'lib/bond.c')
-rw-r--r--lib/bond.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bond.c b/lib/bond.c
index 9a688be6..85bb2da9 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -1305,8 +1305,8 @@ bond_link_status_update(struct bond_slave *slave, struct tag_set *tags)
static bool
bond_is_tcp_hash(const struct bond *bond)
{
- return (bond->balance == BM_TCP || bond->balance == BM_STABLE)
- && bond->lacp_negotiated;
+ return (bond->balance == BM_TCP && bond->lacp_negotiated)
+ || bond->balance == BM_STABLE;
}
static unsigned int