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
32003a7d
Commit
32003a7d
authored
Apr 25, 2003
by
Stephen Hemminger
Committed by
Hideaki Yoshifuji
Apr 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIDGE]: Possible race with timer on shutdown.
parent
d5e0fad5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
net/bridge/br_device.c
net/bridge/br_device.c
+1
-6
net/bridge/br_stp_if.c
net/bridge/br_stp_if.c
+3
-1
No files found.
net/bridge/br_device.c
View file @
32003a7d
...
@@ -105,12 +105,7 @@ static void br_dev_set_multicast_list(struct net_device *dev)
...
@@ -105,12 +105,7 @@ static void br_dev_set_multicast_list(struct net_device *dev)
static
int
br_dev_stop
(
struct
net_device
*
dev
)
static
int
br_dev_stop
(
struct
net_device
*
dev
)
{
{
struct
net_bridge
*
br
;
br_stp_disable_bridge
(
dev
->
priv
);
br
=
dev
->
priv
;
write_lock
(
&
br
->
lock
);
br_stp_disable_bridge
(
br
);
write_unlock
(
&
br
->
lock
);
netif_stop_queue
(
dev
);
netif_stop_queue
(
dev
);
...
...
net/bridge/br_stp_if.c
View file @
32003a7d
...
@@ -64,11 +64,12 @@ void br_stp_enable_bridge(struct net_bridge *br)
...
@@ -64,11 +64,12 @@ void br_stp_enable_bridge(struct net_bridge *br)
br_timer_set
(
&
br
->
gc_timer
,
jiffies
);
br_timer_set
(
&
br
->
gc_timer
,
jiffies
);
}
}
/*
called under bridge lock
*/
/*
NO locks held
*/
void
br_stp_disable_bridge
(
struct
net_bridge
*
br
)
void
br_stp_disable_bridge
(
struct
net_bridge
*
br
)
{
{
struct
net_bridge_port
*
p
;
struct
net_bridge_port
*
p
;
write_lock
(
&
br
->
lock
);
br
->
topology_change
=
0
;
br
->
topology_change
=
0
;
br
->
topology_change_detected
=
0
;
br
->
topology_change_detected
=
0
;
br_timer_clear
(
&
br
->
hello_timer
);
br_timer_clear
(
&
br
->
hello_timer
);
...
@@ -84,6 +85,7 @@ void br_stp_disable_bridge(struct net_bridge *br)
...
@@ -84,6 +85,7 @@ void br_stp_disable_bridge(struct net_bridge *br)
p
=
p
->
next
;
p
=
p
->
next
;
}
}
write_unlock
(
&
br
->
lock
);
del_timer_sync
(
&
br
->
tick
);
del_timer_sync
(
&
br
->
tick
);
}
}
...
...
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