team: allow userspace to take control over carrier
authorFlavio Leitner <fbl@redhat.com>
Tue, 5 Feb 2013 09:30:55 +0000 (09:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2013 20:48:09 +0000 (15:48 -0500)
commite185483e6b84c127d0b1c890b6b703701ae52d35
tree199255216263143c2ee1fd24030611c531621988
parent3b72c2fe0c6bbec42ed7f899931daef227b80322
team: allow userspace to take control over carrier

Some modes don't require any special carrier handling so
in these cases, the kernel can control the carrier as for
any other interface.  However, some other modes, e.g. lacp,
requires more than just that, so userspace needs to control
the carrier itself.

The daemon today is ready to control it, but the kernel
still can change it based on events.

This fix so that either kernel or userspace is controlling
the carrier.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
include/linux/if_team.h