summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahesh Bandewar <maheshb@google.com>2015-03-27 22:34:31 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-31 13:25:39 -0400
commit19a12049cd12ea2c5195f81e747adbc2c89e6560 (patch)
tree72684730d1ad7408751b3bd8a4ad1fb9e3b16b25
parent6e47d6caff9e8af6db0741ddbd260bdd36d24c13 (diff)
downloadtalos-obmc-linux-19a12049cd12ea2c5195f81e747adbc2c89e6560.tar.gz
talos-obmc-linux-19a12049cd12ea2c5195f81e747adbc2c89e6560.zip
bonding: Remove hardcoded initialization
Signed-off-by: Mahesh Bandewar <maheshb@google.com> Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/bonding/bond_3ad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c
index f61b2870cddf..80861b1e4f09 100644
--- a/drivers/net/bonding/bond_3ad.c
+++ b/drivers/net/bonding/bond_3ad.c
@@ -1776,7 +1776,7 @@ static void ad_initialize_port(struct port *port, int lacp_fast)
port->is_enabled = true;
/* private parameters */
- port->sm_vars = 0x3;
+ port->sm_vars = AD_PORT_BEGIN | AD_PORT_LACP_ENABLED;
port->sm_rx_state = 0;
port->sm_rx_timer_counter = 0;
port->sm_periodic_state = 0;
OpenPOWER on IntegriCloud