diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-05-23 11:37:15 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2011-05-23 13:21:14 -0700 |
commit | 739e1050dcc320af88e7ab227a15d26eb63e5726 (patch) | |
tree | 32ab3d8db1b2fa2ac87ee672b8f88bc937245cf4 /lib/bond.c | |
parent | 7fae24e67c95b1dbe93497135ae533e39b61e110 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |