team: fix master carrier set when user linkup is enabled
authorJiri Pirko <jiri@resnulli.us>
Thu, 28 Nov 2013 17:01:38 +0000 (18:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 15:29:26 +0000 (07:29 -0800)
commita52a9149f57d0b00dab0699028174a4f91dcb02f
tree229a87f17ef1209ab4303c3c26955c8cf0b20873
parent86a243440a102e315438c6faf57881796533528d
team: fix master carrier set when user linkup is enabled

[ Upstream commit f5e0d34382e18f396d7673a84df8e3342bea7eb6 ]

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.

Reported-by: Jan Tluka <jtluka@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/team/team.c