Description of problem: When sending data the NIC eth0 doesn't count the number of bytes sent! Only received are counted. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:1E:8C:11:C3:40 inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21e:8cff:fe11:c340/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5884533 errors:0 dropped:0 overruns:0 frame:0 TX packets:5625584 errors:0 dropped:0 overruns:0 carrier:7 collisions:0 txqueuelen:1000 RX bytes:850428241 (811.0 MiB) TX bytes:0 (0.0 b) Memory:dffc0000-e0000000 Expected results: I'm expecting TX Bytes to count the number of bytes sent via the NIC Additional info: lspci 00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01) 01:00.0 RAID bus controller: Silicon Image, Inc. SiI 3124 PCI-X Serial ATA Controller (rev 02) 01:01.0 RAID bus controller: Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller (rev 02) 02:00.0 Ethernet controller: Attansic Technology Corp. L2 100 Mbit Ethernet Adapter (rev a0)
Created attachment 306578 [details] lshw.txt is the result of the lshw command which give the Hardware list.
Hello, could you send as an attachment the output of "$ cat /proc/net/dev"? Ideally twice, firstly after boot and secondly after some network activity. Thanks.
Created attachment 312427 [details] cat /proc/net/dev after reboot
Created attachment 312428 [details] cat /proc/net/dev after some network activities
As you can see in attachments, transmit bytes remains at 0 all the time. Probably this is a bug in kernel module for NIC "Attansic Technology Corp. L2 100 Mbit Ethernet Adapter" or somewhere else at kernel side. It definitely isn't the bug in net-tools. I'm reassigning this to kernel, so they can add their comments.
Most of the statistics features haven't been implemented yet in atl2, so this is expected. Atheros is getting more directly involved, and I've posted the driver upstream, so we should get more help with this soon.
I submitted a kernel fix for this bug on 9/20/2008, now that atl2 is officially in the pipeline for merging in the kernel. It's in Dave Miller's net-next-2.6 tree now, so it should show up in 2.6.28. I'm not sure which out-of-tree driver version of atl2 that Fedora ships today, but here's the patch if you guys want to include it yourselves. commit e2f092ff9bf2ab515c14d2208b5f08c7d389d5d2 Author: Jay Cliburn <jacliburn> Date: Sat Sep 20 17:37:05 2008 -0500 atl2: add tx bytes statistic Signed-off-by: Jay Cliburn <jacliburn> Signed-off-by: Jeff Garzik <jgarzik> diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c index d548a67..5ab9c76 100644 --- a/drivers/net/atlx/atl2.c +++ b/drivers/net/atlx/atl2.c @@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter) atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); /* tx statistics: */ - if (txs->ok) + if (txs->ok) { + adapter->net_stats.tx_bytes += txs->pkt_size; adapter->net_stats.tx_packets++; + } else adapter->net_stats.tx_errors++;
I'm so interested why the fix from me wasn't accepted? (see bug #249382 and attachment #287941 [details])
I submitted my patch to LKML after the atl2 driver was merged upstream and after receiving comment #6 above in the form of an email message from Chris to atl1-devel@sourceforge. I'm afraid I don't know why your patch wasn't accepted by Fedora. Maybe they decided to just wait for it to get fixed upstream. FWIW, I just verified the patch *is* in the 2.6.28 kernel, so that's a good thing.
This message is a reminder that Fedora 9 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 9. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '9'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 9's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 9 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Fedora 9 changed to end-of-life (EOL) status on 2009-07-10. Fedora 9 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.