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
nexedi
linux
Commits
5a99bfde
Commit
5a99bfde
authored
Apr 06, 2004
by
François Romieu
Committed by
Jeff Garzik
Apr 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr r8169] Barrier against compiler optimization.
parent
b4bf4278
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
drivers/net/r8169.c
drivers/net/r8169.c
+5
-1
No files found.
drivers/net/r8169.c
View file @
5a99bfde
...
...
@@ -1369,6 +1369,7 @@ rtl8169_tx_interrupt(struct net_device *dev, struct rtl8169_private *tp,
while
(
tx_left
>
0
)
{
int
entry
=
dirty_tx
%
NUM_TX_DESC
;
rmb
();
if
(
!
(
le32_to_cpu
(
tp
->
TxDescArray
[
entry
].
status
)
&
OWNbit
))
{
struct
sk_buff
*
skb
=
tp
->
Tx_skbuff
[
entry
];
...
...
@@ -1430,7 +1431,10 @@ rtl8169_rx_interrupt(struct net_device *dev, struct rtl8169_private *tp,
while
(
rx_left
>
0
)
{
int
entry
=
cur_rx
%
NUM_RX_DESC
;
u32
status
=
le32_to_cpu
(
tp
->
RxDescArray
[
entry
].
status
);
u32
status
;
rmb
();
status
=
le32_to_cpu
(
tp
->
RxDescArray
[
entry
].
status
);
if
(
status
&
OWNbit
)
break
;
...
...
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