[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121213161733.7bffe897@obelix.rh>
Date: Thu, 13 Dec 2012 16:17:33 -0200
From: Flavio Leitner <fbl@...hat.com>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: John Fastabend <john.fastabend@...il.com>,
Jiri Pirko <jiri@...nulli.us>, netdev@...r.kernel.org,
davem@...emloft.net, edumazet@...gle.com,
bhutchings@...arflare.com, mirqus@...il.com,
greearb@...delatech.com
Subject: Re: [patch net-next 0/4] net: allow to change carrier from
userspace
On Thu, 13 Dec 2012 10:09:33 -0800
Stephen Hemminger <shemminger@...tta.com> wrote:
> On Thu, 13 Dec 2012 15:54:23 -0200
> Flavio Leitner <fbl@...hat.com> wrote:
>
> > I am saying this because people are used to and there are scripts out
> > there using something like:
> > # ethtool <iface> | grep 'Link'
> > to react an interface failure.
>
> Then the script is broken. It is asking about hardware state.
I was talking about the team master interface, so it makes sense
to check its 'hardware' state. Just think on 'bond0' interface
with no slaves. It should report Link detected: no.
See bond_release(), what happens if bond->slave_cnt == 0, for instance.
--
fbl
--
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