aboutsummaryrefslogtreecommitdiff
path: root/lib/lacp.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-06-13 13:45:05 -0700
committerEthan Jackson <ethan@nicira.com>2011-06-14 11:17:24 -0700
commitb6466afa85a9960f9424089f41c1a6e14009c994 (patch)
treef349e32d71d35cf168eea3274d01cd8c04cd376a /lib/lacp.c
parentaebf4235f3938b9e8865d4eb4a767d7584478d30 (diff)
lacp: Loosen lacp_slave_is_current().
The lacp_slave_is_current() function is used to indicate to a controller failover status of the LACP module. However, the result of this function is more strict than the failover logic. Thus, the function will generally return false quite a bit before a failover actually happens. This patch loosens lacp_slave_is_current() so that it changes in-line with the failover logic.
Diffstat (limited to 'lib/lacp.c')
-rw-r--r--lib/lacp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lacp.c b/lib/lacp.c
index 3fe5eff3..eaf01c3c 100644
--- a/lib/lacp.c
+++ b/lib/lacp.c
@@ -347,7 +347,7 @@ lacp_slave_get_port_id(const struct lacp *lacp, const void *slave_)
bool
lacp_slave_is_current(const struct lacp *lacp, const void *slave_)
{
- return slave_lookup(lacp, slave_)->status == LACP_CURRENT;
+ return slave_lookup(lacp, slave_)->status != LACP_DEFAULTED;
}
/* This function should be called periodically to update 'lacp'. */