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
9dcdb6ef
Commit
9dcdb6ef
authored
Jul 29, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Add missing memory barriors for __LINK_STATE_RX_SCHED handling.
parent
395ab5d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
drivers/net/tg3.c
drivers/net/tg3.c
+1
-0
include/linux/netdevice.h
include/linux/netdevice.h
+1
-0
net/core/dev.c
net/core/dev.c
+1
-0
No files found.
drivers/net/tg3.c
View file @
9dcdb6ef
...
@@ -258,6 +258,7 @@ static inline void __netif_rx_complete(struct net_device *dev)
...
@@ -258,6 +258,7 @@ static inline void __netif_rx_complete(struct net_device *dev)
{
{
if
(
!
test_bit
(
__LINK_STATE_RX_SCHED
,
&
dev
->
state
))
BUG
();
if
(
!
test_bit
(
__LINK_STATE_RX_SCHED
,
&
dev
->
state
))
BUG
();
list_del
(
&
dev
->
poll_list
);
list_del
(
&
dev
->
poll_list
);
smp_mb__before_clear_bit
();
clear_bit
(
__LINK_STATE_RX_SCHED
,
&
dev
->
state
);
clear_bit
(
__LINK_STATE_RX_SCHED
,
&
dev
->
state
);
}
}
...
...
include/linux/netdevice.h
View file @
9dcdb6ef
...
@@ -820,6 +820,7 @@ static inline void netif_rx_complete(struct net_device *dev)
...
@@ -820,6 +820,7 @@ static inline void netif_rx_complete(struct net_device *dev)
local_irq_save
(
flags
);
local_irq_save
(
flags
);
if
(
!
test_bit
(
__LINK_STATE_RX_SCHED
,
&
dev
->
state
))
BUG
();
if
(
!
test_bit
(
__LINK_STATE_RX_SCHED
,
&
dev
->
state
))
BUG
();
list_del
(
&
dev
->
poll_list
);
list_del
(
&
dev
->
poll_list
);
smp_mb__before_clear_bit
();
clear_bit
(
__LINK_STATE_RX_SCHED
,
&
dev
->
state
);
clear_bit
(
__LINK_STATE_RX_SCHED
,
&
dev
->
state
);
local_irq_restore
(
flags
);
local_irq_restore
(
flags
);
}
}
...
...
net/core/dev.c
View file @
9dcdb6ef
...
@@ -1657,6 +1657,7 @@ static int process_backlog(struct net_device *backlog_dev, int *budget)
...
@@ -1657,6 +1657,7 @@ static int process_backlog(struct net_device *backlog_dev, int *budget)
*
budget
-=
work
;
*
budget
-=
work
;
list_del
(
&
backlog_dev
->
poll_list
);
list_del
(
&
backlog_dev
->
poll_list
);
smp_mb__before_clear_bit
();
clear_bit
(
__LINK_STATE_RX_SCHED
,
&
backlog_dev
->
state
);
clear_bit
(
__LINK_STATE_RX_SCHED
,
&
backlog_dev
->
state
);
if
(
queue
->
throttle
)
{
if
(
queue
->
throttle
)
{
...
...
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