Re: Lacking TX-statistics for a2065

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 14 Jan 2007, Geert Uytterhoeven wrote:

daneel ~ # ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:80:10:00:14:18
          inet addr:158.38.152.229  Bcast:158.38.152.255 Mask:255.255.255.0
          inet6 addr: fe80::280:10ff:fe00:1418/64 Scope:Link
          inet6 addr: 2001:700:1:2::a:1200/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5236233 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3035691 errors:0 dropped:0 overruns:0 carrier:0
          collisions:6063 txqueuelen:1000
          RX bytes:2341484260 (2233.0 Mb)  TX bytes:0 (0.0 b)
                                                    ^^^^^^^^^
          Base address:0x4000 Memory:80e98000-80ea0000

Both the A2065 and Ariadne driver seem to miss code to update
net_device_stats.tx_bytes. The patch below (compile-tested only) may fix that.
Please give it a try and report back.

Looking good, as usual:

daneel ~ # ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:80:10:00:14:18
          inet addr:158.38.152.229  Bcast:158.38.152.255 Mask:255.255.255.0
          inet6 addr: fe80::280:10ff:fe00:1418/64 Scope:Link
          inet6 addr: 2001:700:1:2::a:1200/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6964 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4789 errors:0 dropped:0 overruns:0 carrier:0
          collisions:2 txqueuelen:1000
          RX bytes:543427 (530.6 Kb)  TX bytes:3074824 (2.9 Mb)
          Base address:0x4000 Memory:80e98000-80ea0000


I discovered this when writing a lightweight ("busybox only") replacement
for munin-client, now at last the traffic graph hits the positive side of
the scale...

https://admin.kolla.no/munin/kolla.no/daneel.kolla.no-if_eth0.html

Cheers! :)

-- kolla
-
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux