Skip to contentSkip to conversation

team: fix master carrier set when user linkup is enabled

PATCH In review Jiri Pirko 2 participants 2 messages Nov 28, 2013 – Nov 29, 2013

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author maintainer
#0 lore raw

PATCH 1/1 team: fix master carrier set when user linkup is enabled

When user linkup is enabled and user sets linkup of individual port, we need to recompute linkup (carrier) of master interface so the change is reflected. Fix this by calling __team_carrier_check() which does the needed work.

Please apply to all stable kernels as well. Thanks.

---
 drivers/net/team/team.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/team/team.c +4 -0
index 34b0de0..736050d 100644
@@ -1366,6 +1366,8 @@ static int team_user_linkup_option_get(struct team *team,
 	return 0;
 }
 
+static void __team_carrier_check(struct team *team);
+
 static int team_user_linkup_option_set(struct team *team,
 				       struct team_gsetter_ctx *ctx)
 {
@@ -1373,6 +1375,7 @@ static int team_user_linkup_option_set(struct team *team,
 
 	port->user.linkup = ctx->data.bool_val;
 	team_refresh_port_linkup(port);
+	__team_carrier_check(port->team);
 	return 0;
 }
 
@@ -1392,6 +1395,7 @@ static int team_user_linkup_en_option_set(struct team *team,
 
 	port->user.linkup_enabled = ctx->data.bool_val;
 	team_refresh_port_linkup(port);
+	__team_carrier_check(port->team);
 	return 0;
 }
 
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw

From: Jiri Pirko <[email protected]>
Date: Thu, 28 Nov 2013 18:01:38 +0100

Quoted 9 lines

When user linkup is enabled and user sets linkup of individual port, we need to recompute linkup (carrier) of master interface so the change is reflected. Fix this by calling __team_carrier_check() which does the needed work.

Please apply to all stable kernels as well. Thanks.

Applied and queued up for -stable, thanks Jiri.