netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Port STP state after removing port from bridge
@ 2015-02-19  4:39 Florian Fainelli
  2015-02-19  4:54 ` roopa
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Florian Fainelli @ 2015-02-19  4:39 UTC (permalink / raw)
  To: Scott Feldman, Jiří Pírko, netdev,
	Stephen Hemminger

Hi,

It just occured to me that the following sequence:

brctl addbr br0
brctl addif br0 port0
... STP happens
brctl delif br0 port0

will leave port0 in STP disabled state, because the bridge code will
set the STP state to DISABLED, and only a down/up sequence can bring
it back to FORWARDING.

Is this something that we should somehow fix? As an user it seems a
little convoluted having to do a down/up sequence to restore things. I
believe however that it is valid for the bridge layer to mark a port
as DISABLED when removing it. This is typically not noticed or even
remotely a problem with software bridges because we cannot enforce an
actual STP state at the HW level.

Let me know your thoughts.
-- 
Florian

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-02-22  2:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-19  4:39 Port STP state after removing port from bridge Florian Fainelli
2015-02-19  4:54 ` roopa
2015-02-19  5:00   ` Florian Fainelli
2015-02-19  5:28     ` roopa
2015-02-20  4:46 ` Scott Feldman
     [not found] ` <CAE4R7bBSbwi93t05Z+rB2JgzFYdZ+m44AFSzU7JkwdHRWzz1Mw@mail.gmail.com>
2015-02-20 10:00   ` Jiri Pirko
2015-02-20 15:03     ` Scott Feldman
2015-02-20 17:04       ` Florian Fainelli
2015-02-21 19:43         ` Scott Feldman
2015-02-21 20:26           ` Florian Fainelli
2015-02-21 22:58         ` Stephen Hemminger
2015-02-22  2:49           ` Scott Feldman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).