[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121230085042.GA1575@minipsycho.orion>
Date: Sun, 30 Dec 2012 09:50:42 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Flavio Leitner <fbl@...hat.com>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] team: implement carrier change
Sun, Dec 30, 2012 at 02:31:01AM CET, fbl@...hat.com wrote:
>The user space teamd daemon may need to control the
>master's carrier state depending on the selected mode.
>
>Signed-off-by: Flavio Leitner <fbl@...hat.com>
>---
> drivers/net/team/team.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
>diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
>index f711039..14cb843 100644
>--- a/drivers/net/team/team.c
>+++ b/drivers/net/team/team.c
>@@ -1708,6 +1708,15 @@ static netdev_features_t team_fix_features(struct net_device *dev,
> return features;
> }
>
>+static int team_change_carrier(struct net_device *dev, bool new_carrier)
>+{
>+ if (new_carrier)
>+ netif_carrier_on(dev);
>+ else
>+ netif_carrier_off(dev);
>+ return 0;
>+}
>+
> static const struct net_device_ops team_netdev_ops = {
> .ndo_init = team_init,
> .ndo_uninit = team_uninit,
>@@ -1730,6 +1739,7 @@ static const struct net_device_ops team_netdev_ops = {
> .ndo_add_slave = team_add_slave,
> .ndo_del_slave = team_del_slave,
> .ndo_fix_features = team_fix_features,
>+ .ndo_change_carrier = team_change_carrier,
> };
>
> /***********************
>--
>1.8.0.1
Acked-by: Jiri Pirko <jiri@...nulli.us>
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists