Bug 63401

Summary: ALX does not provide stats information
Product: Drivers Reporter: hexchain (i)
Component: NetworkAssignee: drivers_network (drivers_network)
Status: RESOLVED UNREPRODUCIBLE    
Severity: normal CC: alan, beelzebubbie.logs, dsrdan, javran.c, lyf362345, marco, opensource
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 3.11.5 Subsystem:
Regression: No Bisected commit-id:

Description hexchain 2013-10-21 12:03:42 UTC
There is no way to get statistical information for the AR8161 card (eth0 below).

$ cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
  eth0:       0       0    0  869    0     0          0         0        0       0    0    0    0     0       0          0
    lo: 3145890   29654    0    0    0     0          0         0  3145890   29654    0    0    0     0       0          0
 wlan0: 2552698   20410    0   17    0     0          0         0 10192156   21620    0    0    0     0       0          0

$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet xxxxx  netmask xxxxx  broadcast xxxxx
        inet6 xxxxx  prefixlen 64  scopeid 0x20<link>
        ether xx:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 869  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16
Comment 1 Alan 2013-11-13 12:09:36 UTC
I think you will need to add support to the driver for it.
Comment 2 hexchain 2013-11-14 03:26:18 UTC
On Wed, Nov 13, 2013 at 8:09 PM,  <bugzilla-daemon@bugzilla.kernel.org> wrote:
> I think you will need to add support to the driver for it.

Yes, I'm talking about the driver.
Comment 3 Metalboxnuke 2013-11-26 12:01:58 UTC
Same issue @ 3.10-2-amd64 (LMDE 201303 + UP7)

Problem not fixed @ https://www.kernel.org/pub/linux/kernel/projects/backports/2013/11/22/

Why this bug takes long time to fixed...
Comment 4 Alan 2013-11-26 21:40:48 UTC
*** Bug 65581 has been marked as a duplicate of this bug. ***
Comment 5 Metalboxnuke 2013-12-01 16:50:20 UTC
Still not fixed at

https://www.kernel.org/pub/linux/kernel/projects/backports/2013/11/29/
Comment 6 Marios Andreopoulos 2013-12-06 04:48:06 UTC
(In reply to Alan from comment #1)
> I think you will need to add support to the driver for it.

The original ALX driver had support for statistics.
The developer who added the driver to the tree, removed that code because he wasn't sure about the quality of the code and as he stated he hadn't a need for network statistics.

The problem is that since the ALX code was included in the kernel, the original code stopped being maintained so there isn't an option for us who need statistics.

Someone said that it was trivial to add back the stats code but for anyone who doesn't know much about kernel development or C, the task seems impossible.

Here is the post where the kernel dev explains why he removed the stats code:
http://www.spinics.net/lists/netdev/msg245607.html


I hope someone can help us, because network stats are important. Right now we can't even know if our computer downloads or uploads something.
Comment 7 beelze 2013-12-15 10:59:45 UTC
No need for network stat? It's very strange approach. Bad code? Is the any bug reports, related to alx network stats? If not – this code must be returned back. Now kernel is 3.12 but seems alx module remains unchanged and it is very disappointed.
Please return our stat! :)
Comment 8 Alan 2013-12-15 14:36:09 UTC
Send patches. Bugzilla is used to track bugs, it's not a work queue for fixing things.
Comment 9 fengqi 2014-01-22 08:05:46 UTC
In CentOS 6, Kernel is 2.6.x, I find driver in google, that have stat
Comment 10 Marco Belmonte 2014-01-31 00:27:51 UTC
Stats have been added if you check the linux-next branch - I compiled the alx driver from there and am using it with 3.12 with no problems.
Comment 11 beelze 2014-02-05 17:30:24 UTC
Confirming. linux-next drivers successfully built against 3.13 sources and does have stats. What should be done to get these to mainline kernel?
Comment 12 hexchain 2014-02-18 03:21:20 UTC
Stats are back in 3.14rc1.
Comment 13 fengqi 2014-02-18 03:22:35 UTC
(In reply to Hexchain Tong from comment #12)
> Stats are back in 3.14rc1.

Thanks
Comment 14 fengqi 2014-02-18 03:23:20 UTC
(In reply to Marco Belmonte from comment #10)
> Stats have been added if you check the linux-next branch - I compiled the
> alx driver from there and am using it with 3.12 with no problems.

Too