Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c6a4620a
Commit
c6a4620a
authored
Oct 04, 2002
by
Lennert Buytenhek
Committed by
David S. Miller
Oct 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIDGE]: Skip the LISTENING_STP state if STP is disabled.
parent
25587b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
net/bridge/br_stp.c
net/bridge/br_stp.c
+13
-4
No files found.
net/bridge/br_stp.c
View file @
c6a4620a
...
@@ -369,10 +369,19 @@ static void br_make_blocking(struct net_bridge_port *p)
...
@@ -369,10 +369,19 @@ static void br_make_blocking(struct net_bridge_port *p)
static
void
br_make_forwarding
(
struct
net_bridge_port
*
p
)
static
void
br_make_forwarding
(
struct
net_bridge_port
*
p
)
{
{
if
(
p
->
state
==
BR_STATE_BLOCKING
)
{
if
(
p
->
state
==
BR_STATE_BLOCKING
)
{
printk
(
KERN_INFO
"%s: port %i(%s) entering %s state
\n
"
,
if
(
p
->
br
->
stp_enabled
)
{
p
->
br
->
dev
.
name
,
p
->
port_no
,
p
->
dev
->
name
,
"listening"
);
printk
(
KERN_INFO
"%s: port %i(%s) entering %s state
\n
"
,
p
->
br
->
dev
.
name
,
p
->
port_no
,
p
->
dev
->
name
,
p
->
state
=
BR_STATE_LISTENING
;
"listening"
);
p
->
state
=
BR_STATE_LISTENING
;
}
else
{
printk
(
KERN_INFO
"%s: port %i(%s) entering %s state
\n
"
,
p
->
br
->
dev
.
name
,
p
->
port_no
,
p
->
dev
->
name
,
"learning"
);
p
->
state
=
BR_STATE_LEARNING
;
}
br_timer_set
(
&
p
->
forward_delay_timer
,
jiffies
);
br_timer_set
(
&
p
->
forward_delay_timer
,
jiffies
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment