system/net-tools: ifconfig reports zero-value rx/tx counters
Found on ppc64 but happens on all architectures.
Occurs even with 2.10
(and ca. 1.60
which is present in RC2).
# uname -a
Linux adelie 5.4.66-mc1-easy #1 SMP Tue Feb 8 02:34:39 UTC 2022 x86_64 GNU/Linux
# cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 24875448119 31633640 0 0 0 0 0 0 24875448119 31633640 0 0 0 0 0 0
eth0: 2868069466 2102964 0 0 0 0 0 0 52709223 465667 0 0 0 2327262 0 0
# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.108 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::5054:ff:fec1:38e3 prefixlen 64 scopeid 0x20<link>
ether 52:54:00:c1:38:e3 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 2327507
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
and on the new kernel:
03:58 <~awilfox> awilcox on adelie-m1 ~ % grep eth0 /proc/net/dev
03:58 <~awilfox> eth0: 377841108 1340076 0 0 0 0 0 0 85516980 704282 0 0 0 0 0 0
03:58 <~awilfox> awilcox on adelie-m1 ~ % ifconfig | grep packets
03:58 <~awilfox> RX packets 0 bytes 0 (0.0 B)
03:58 <~awilfox> TX packets 0 bytes 0 (0.0 B)
03:58 <~awilfox> awilcox on adelie-m1 ~ % uname -a
03:58 <~awilfox> Linux adelie-m1.foxkit.us 5.15.28-mc1-easy #1 SMP Sun Apr 17 19:25:11 CDT 2022 aarch64 GNU/Linux