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
7f3f138c
Commit
7f3f138c
authored
Jul 29, 2004
by
Ganesh Venkatesan
Committed by
Jeff Garzik
Jul 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] e100 - fix stat counters rx_length_error and rx_over_errors
parent
d38e8d6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
drivers/net/e100.c
drivers/net/e100.c
+5
-2
No files found.
drivers/net/e100.c
View file @
7f3f138c
...
...
@@ -551,6 +551,7 @@ struct nic {
u32
rx_fc_pause
;
u32
rx_fc_unsupported
;
u32
rx_tco_frames
;
u32
rx_over_length_errors
;
u8
rev_id
;
u16
leds
;
...
...
@@ -1146,9 +1147,11 @@ static void e100_update_stats(struct nic *nic)
ns
->
tx_errors
+=
le32_to_cpu
(
s
->
tx_max_collisions
)
+
le32_to_cpu
(
s
->
tx_lost_crs
);
ns
->
rx_dropped
+=
le32_to_cpu
(
s
->
rx_resource_errors
);
ns
->
rx_length_errors
+=
le32_to_cpu
(
s
->
rx_short_frame_errors
);
ns
->
rx_length_errors
+=
le32_to_cpu
(
s
->
rx_short_frame_errors
)
+
nic
->
rx_over_length_errors
;
ns
->
rx_crc_errors
+=
le32_to_cpu
(
s
->
rx_crc_errors
);
ns
->
rx_frame_errors
+=
le32_to_cpu
(
s
->
rx_alignment_errors
);
ns
->
rx_over_errors
+=
le32_to_cpu
(
s
->
rx_overrun_errors
);
ns
->
rx_fifo_errors
+=
le32_to_cpu
(
s
->
rx_overrun_errors
);
ns
->
rx_errors
+=
le32_to_cpu
(
s
->
rx_crc_errors
)
+
le32_to_cpu
(
s
->
rx_alignment_errors
)
+
...
...
@@ -1459,7 +1462,7 @@ static inline int e100_rx_indicate(struct nic *nic, struct rx *rx,
dev_kfree_skb_any
(
skb
);
}
else
if
(
actual_size
>
nic
->
netdev
->
mtu
+
VLAN_ETH_HLEN
)
{
/* Don't indicate oversized frames */
nic
->
net_stats
.
rx_over
_errors
++
;
nic
->
rx_over_length
_errors
++
;
nic
->
net_stats
.
rx_dropped
++
;
dev_kfree_skb_any
(
skb
);
}
else
{
...
...
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