All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Ruijter <bridge@siennax.com>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: bridge@lists.osdl.org
Subject: Re: [Bridge] Bridge code enhancement (link state detection) and bug fix. (patches included).
Date: Thu, 17 Jun 2004 23:08:19 +0200	[thread overview]
Message-ID: <40D20843.2020109@siennax.com> (raw)
In-Reply-To: <20040617132849.0b64c799@dell_ss3.pdx.osdl.net>


> Rather than add another state, it should just go to DISABLED state.

I did think about doing just that. But the problem then is that the 
bridge needs to be reenabled by hand when the link comes back.

You can't automatically enable a disabled interface when the link goes 
down/up. It would also not be clear why a port is disabled. Link problem 
or human intervention?

So that's the reason why I made up the nolink state.
> 
>>I did encounter a second problem when writing the link monitoring code.
>>When you add a vlan interface like eth0.10 then it's not possible to
>>obtain link state information from this interface.
> 
> That is a VLAN problem, fix it there.  Sorry.

Hmmm.... I'll investigate the amount of work that needs to be done for this.

> 
> 
> 
>>The fix I wrote is that brctl now allows you to specify the interface
>>that contains the link state.
>>
>>Example : brctl addif NUM1 eth0.10 eth0
> 
> 
> I prefer to eschew needless complexity.

It might be complex but this is also true for a swiss army knife. :-)
If the vlan interfaces are the only ones that don't allow link state 
monitoring then I do agree that it would be best to fix the vlan 
interface status.

If the are more types of interfaces that don't support state checking 
then the current solution might be better. It is highly flexible....
> 
> That doesn't mean I won't consider adding it, but let me look at the problem
> a little more before accepting your solution as is.

Thanks for considering it. It probably needs some work. I hope that you 
do agree that some form of link state monitoring is useful.

Regards,

Mark.

  reply	other threads:[~2004-06-17 21:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-17 18:57 [Bridge] Bridge code enhancement (link state detection) and bug fix. (patches included) Mark Ruijter
2004-06-17 20:28 ` Stephen Hemminger
2004-06-17 21:08   ` Mark Ruijter [this message]
2004-07-16 23:28 ` Stephen Hemminger
2004-07-17 19:31   ` Mark Ruijter
2004-07-20 11:24   ` Mark Ruijter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40D20843.2020109@siennax.com \
    --to=bridge@siennax.com \
    --cc=bridge@lists.osdl.org \
    --cc=shemminger@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.