Bug 448206 - TX bytes remain to 0 on the Attansic L2 ethernet card
Summary: TX bytes remain to 0 on the Attansic L2 ethernet card
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 9
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Chris Snook
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-24 12:26 UTC by Patrick Pichon
Modified: 2009-07-14 17:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-07-14 17:50:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
lshw.txt is the result of the lshw command which give the Hardware list. (21.93 KB, text/plain)
2008-05-24 12:26 UTC, Patrick Pichon
no flags Details
cat /proc/net/dev after reboot (569 bytes, application/octet-stream)
2008-07-23 07:10 UTC, Patrick Pichon
no flags Details
cat /proc/net/dev after some network activities (569 bytes, application/octet-stream)
2008-07-23 07:10 UTC, Patrick Pichon
no flags Details

Description Patrick Pichon 2008-05-24 12:26:08 UTC
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)

Comment 1 Patrick Pichon 2008-05-24 12:26:08 UTC
Created attachment 306578 [details]
lshw.txt is the result of the lshw command which give the Hardware list.

Comment 2 Zdenek Prikryl 2008-07-08 11:55:41 UTC
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.


Comment 3 Patrick Pichon 2008-07-23 07:10:18 UTC
Created attachment 312427 [details]
cat /proc/net/dev after reboot

Comment 4 Patrick Pichon 2008-07-23 07:10:55 UTC
Created attachment 312428 [details]
cat /proc/net/dev after some network activities

Comment 5 Zdenek Prikryl 2008-07-29 12:18:41 UTC
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.

Comment 6 Chris Snook 2008-09-10 20:35:33 UTC
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.

Comment 7 Jay Cliburn 2008-10-08 02:01:14 UTC
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++;

Comment 8 Andy Shevchenko 2009-01-08 22:04:28 UTC
I'm so interested why the fix from me wasn't accepted? (see bug #249382 and attachment #287941 [details])

Comment 9 Jay Cliburn 2009-01-09 00:00:45 UTC
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.

Comment 10 Bug Zapper 2009-06-10 01:08:35 UTC
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

Comment 11 Bug Zapper 2009-07-14 17:50:11 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.