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
740689cf
Commit
740689cf
authored
Nov 29, 2002
by
Edward Peng
Committed by
Jeff Garzik
Nov 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr dl2k] only read 0x100 through 0x150 statistics registers if mem mapping
parent
f81aeae0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
drivers/net/dl2k.c
drivers/net/dl2k.c
+9
-3
No files found.
drivers/net/dl2k.c
View file @
740689cf
...
...
@@ -50,7 +50,7 @@
*/
#define DRV_NAME "D-Link DL2000-based linux driver"
#define DRV_VERSION "v1.17"
#define DRV_VERSION "v1.17
a
"
#define DRV_RELDATE "2002/10/04"
#include "dl2k.h"
...
...
@@ -1007,7 +1007,9 @@ get_stats (struct net_device *dev)
{
long
ioaddr
=
dev
->
base_addr
;
struct
netdev_private
*
np
=
dev
->
priv
;
#ifdef MEM_MAPPING
int
i
;
#endif
unsigned
int
stat_reg
;
/* All statistics registers need to be acknowledged,
...
...
@@ -1050,9 +1052,10 @@ get_stats (struct net_device *dev)
readw
(
ioaddr
+
MacControlFramesXmtd
);
readw
(
ioaddr
+
FramesWEXDeferal
);
#ifdef MEM_MAPPING
for
(
i
=
0x100
;
i
<=
0x150
;
i
+=
4
)
readl
(
ioaddr
+
i
);
#endif
readw
(
ioaddr
+
TxJumboFrames
);
readw
(
ioaddr
+
RxJumboFrames
);
readw
(
ioaddr
+
TCPCheckSumErrors
);
...
...
@@ -1065,7 +1068,9 @@ static int
clear_stats
(
struct
net_device
*
dev
)
{
long
ioaddr
=
dev
->
base_addr
;
#ifdef MEM_MAPPING
int
i
;
#endif
/* All statistics registers need to be acknowledged,
else statistic overflow could cause problems */
...
...
@@ -1101,9 +1106,10 @@ clear_stats (struct net_device *dev)
readw
(
ioaddr
+
BcstFramesXmtdOk
);
readw
(
ioaddr
+
MacControlFramesXmtd
);
readw
(
ioaddr
+
FramesWEXDeferal
);
#ifdef MEM_MAPPING
for
(
i
=
0x100
;
i
<=
0x150
;
i
+=
4
)
readl
(
ioaddr
+
i
);
#endif
readw
(
ioaddr
+
TxJumboFrames
);
readw
(
ioaddr
+
RxJumboFrames
);
readw
(
ioaddr
+
TCPCheckSumErrors
);
...
...
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