[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180419102809.55ljzqig4gn5rfth@debian9.gwilkie>
Date: Thu, 19 Apr 2018 11:28:09 +0100
From: George Wilkie <gwilkie@...tta.att-mail.com>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2] team: account for oper state
On Thu, Apr 19, 2018 at 11:24:15AM +0100, George Wilkie wrote:
> Account for operational state when determining port linkup state,
> as per Documentation/networking/operstates.txt.
>
> Signed-off-by: George Wilkie <gwilkie@...tta.att-mail.com>
> ---
> drivers/net/team/team.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
> index a6c6ce19eeee..ed4d109f40f3 100644
> --- a/drivers/net/team/team.c
> +++ b/drivers/net/team/team.c
> @@ -2918,7 +2918,7 @@ static int team_device_event(struct notifier_block *unused,
> case NETDEV_CHANGE:
> if (netif_running(port->dev))
> team_port_change_check(port,
> - !!netif_carrier_ok(port->dev));
> + !!(netif_oper_up(port->dev)));
Bah, forgot to remove the extra ().
> break;
> case NETDEV_UNREGISTER:
> team_del_slave(port->team->dev, dev);
> --
> 2.11.0
>
>
Powered by blists - more mailing lists