ALT Linux Bugzilla
– Attachment 2297 Details for
Bug 13548
kernel-modules-atl2 не считает статистику по передаваемым байтам
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Fix statistics (try 1)
linux-2.6-atl2-tx-bytes-stat.asp.patch (text/plain), 784 bytes, created by
Andy Shevchenko
on 2007-11-29 23:31:30 MSK
(
hide
)
Description:
Fix statistics (try 1)
Filename:
MIME Type:
Creator:
Andy Shevchenko
Created:
2007-11-29 23:31:30 MSK
Size:
784 bytes
patch
obsolete
>Should fix TX counter in the byte statistics. (Andy Shevchenko) >--- a/drivers/net/atl2/at_main.c 2007-11-13 18:32:58.000000000 +0200 >+++ b/drivers/net/atl2/at_main.c 2007-11-29 22:38:23.000000000 +0200 >@@ -2096,7 +2096,11 @@ > atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); > > // tx statistics: >- if (txs->ok) adapter->net_stats.tx_packets++; >+ if (txs->ok) { >+ // Add packet size to byte statistics >+ adapter->net_stats.tx_bytes += txs->pkt_size; >+ adapter->net_stats.tx_packets++; >+ } > else adapter->net_stats.tx_errors++; > if (txs->defer) adapter->net_stats.collisions++; > if (txs->abort_col) adapter->net_stats.tx_aborted_errors++;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13548
: 2297