Hi All,
I'm working on omapl137 board, after the network driver gets loaded,
If I try to see the stats through the ifconfig -v option, the stats are
not
getting updated properly(input and output both 0 packets).
But if I run the nicinfo, I can see the stats updated correctly.
Actually its an io-net driver, io-pkt-v4 loads it using the devnp-shim,
any idea why this behaviour ? is it the shim layer causing the
problem or with the io-pkt am I missing something,
Thanks in advance.
Here is the sequence:
# io-pkt-v4 -ddm644x-l137 -ptcpip
# ifconfig en0 10.90.74.246/24 up
#
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
en0: flags=80008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SHIM> mtu
1500
address: 00:0e:99:02:f9:4e
inet 10.90.74.246 netmask 0xffffff00 broadcast 10.90.74.255
# ifconfig -v
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
input: 0 packets, 0 bytes
output: 0 packets, 0 bytes
inet 127.0.0.1 netmask 0xff000000
en0: flags=80008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SHIM> mtu
1500
address: 00:0e:99:02:f9:4e
input: 0 packets, 2661 bytes, 32 multicasts
output: 0 packets, 42 bytes
inet 10.90.74.246 netmask 0xffffff00 broadcast 10.90.74.255
# ping -c 3 10.90.74.1
PING 10.90.74.1 (10.90.74.1): 56 data bytes
64 bytes from 10.90.74.1: icmp_seq=0 ttl=255 time=8 ms
64 bytes from 10.90.74.1: icmp_seq=1 ttl=255 time=3 ms
64 bytes from 10.90.74.1: icmp_seq=2 ttl=255 time=3 ms
----10.90.74.1 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 3/4/8 ms variance = 17 ms^2
# ifconfig -v
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
input: 6 packets, 306 bytes
output: 6 packets, 306 bytes
inet 127.0.0.1 netmask 0xff000000
en0: flags=80008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SHIM> mtu
1500
address: 00:0e:99:02:f9:4e
input: 0 packets, 5094 bytes, 57 multicasts
output: 0 packets, 378 bytes
inet 10.90.74.246 netmask 0xffffff00 broadcast 10.90.74.255
# nicinfo
en0:
TI DM644x EMAC Ethernet Controller
Physical Node ID ........................... 000E99 02F94E
Current Physical Node ID ................... 000E99 02F94E
Current Operation Rate ..................... 100.00 Mb/s half-duplex
Active Interface Type ...................... MII
Active PHY address ....................... 1
Maximum Transmittable data Unit ............ 1514
Maximum Receivable data Unit ............... 1514
Hardware Interrupt ......................... 0x22
Hardware Interrupt ......................... 0x23
I/O Aperture ............................... 0x1e20000 - 0x1e24fff
Promiscuous Mode ........................... Off
Multicast Support .......................... Enabled
Packets Transmitted OK ..................... 5
Bytes Transmitted OK ....................... 434
Broadcast Packets Transmitted OK ........... 2
Multicast Packets Transmitted OK ........... 0
Packets Received OK ........................ 80
Bytes Received OK .......................... 6936
Broadcast Packets Received OK .............. 76
Multicast Packets Received OK .............. 0
Single Collisions on Transmit .............. 0
Multiple Collisions on Transmit ............ 0
Deferred Transmits ......................... 0
Late Collision on Transmit errors .......... 0
Transmits aborted (excessive collisions) ... 0
No Carrier on Transmit ..................... 0
Jabber detected ............................ 0
Receive Alignment errors ......................
View Full Message