bond: Don't send learning packets on STABLE bonds.
authorEthan Jackson <ethan@nicira.com>
Mon, 25 Jun 2012 22:48:10 +0000 (15:48 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 5 Jul 2012 22:03:34 +0000 (15:03 -0700)
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>
lib/bond.c

index 54f2d0e0e3987b7266cb3f642d3e2c52397d594b..b9d58b46446a2fd1f2b75af98291beeb17236fb0 100644 (file)
@@ -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;
 }