aboutsummaryrefslogtreecommitdiff
path: root/lib/bond.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2012-06-25 15:48:10 -0700
committerEthan Jackson <ethan@nicira.com>2012-07-05 15:03:34 -0700
commitbd3affc9acb6b14f889e51cd5d3846b52e67206a (patch)
tree7a31b8b7ebcb2c9b88a9be3c4d5a82db7044a546 /lib/bond.c
parent6e23fe72d378bc22beb3d4c05b3f1a9cdfac942b (diff)
bond: Don't send learning packets on STABLE bonds.
Stable bonds require upstream switch support to avoid confusing learning tables. Therefore, sending learning packets on these bonds doesn't make a lot of sense. Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/bond.c')
-rw-r--r--lib/bond.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bond.c b/lib/bond.c
index 54f2d0e0..b9d58b46 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -489,6 +489,7 @@ may_send_learning_packets(const struct bond *bond)
{
return bond->lacp_status == LACP_DISABLED
&& bond->balance != BM_AB
+ && bond->balance != BM_STABLE
&& bond->active_slave;
}