From: Mahesh Bandewar Date: Sat, 28 Mar 2015 05:34:31 +0000 (-0700) Subject: bonding: Remove hardcoded initialization X-Git-Tag: v4.1-rc1~128^2~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19a12049cd12ea2c5195f81e747adbc2c89e6560;p=platform%2Fkernel%2Flinux-exynos.git bonding: Remove hardcoded initialization Signed-off-by: Mahesh Bandewar Signed-off-by: Andy Gospodarek Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c index f61b287..80861b1 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;