Re: bad counter for ixg* interfaces

2017-05-08 Thread Masanobu SAITOH

Hi, Uwe.

On 2017/04/28 21:11, 6b...@6bone.informatik.uni-leipzig.de wrote:

Hello,

ifconfig -v ixg0 shows:

ixg0: flags=8843 mtu 1500
 capabilities=fff80
 capabilities=fff80
 capabilities=fff80
 enabled=0
 ec_capabilities=7
 ec_enabled=7
 address: a0:36:9f:d4:3c:08
 media: Ethernet autoselect (10GbaseSR full-duplex,rxpause,txpause)
 status: active
 input: 22429456 packets, 12404771626 bytes, 132266 multicasts
 output: 10573554 packets, 0 bytes
 ...


The outgoing packets are counted correctly. The outgoing bytes remain at 0.

Kernel version: NetBSD 7.99.70. Older Versions have the same problem.

Programs like the snmpd which the counter evaluate provide wrong data.

Maybe someone can take a look at the code.



Thank you for your efforts


Regards
Uwe


Thank you for the report. I've committed the fix.
Please test with ix_txrx.c rev. 1.23.

 netbsd-7 pullup request for this fix will be sent with
other changes.

 Thanks.

--
---
SAITOH Masanobu (msai...@execsw.org
 msai...@netbsd.org)


bad counter for ixg* interfaces

2017-04-28 Thread 6bone

Hello,

ifconfig -v ixg0 shows:

ixg0: flags=8843 mtu 1500
capabilities=fff80
capabilities=fff80
capabilities=fff80
enabled=0
ec_capabilities=7
ec_enabled=7
address: a0:36:9f:d4:3c:08
media: Ethernet autoselect (10GbaseSR full-duplex,rxpause,txpause)
status: active
input: 22429456 packets, 12404771626 bytes, 132266 multicasts
output: 10573554 packets, 0 bytes
...


The outgoing packets are counted correctly. The outgoing bytes remain at 
0.


Kernel version: NetBSD 7.99.70. Older Versions have the same problem.

Programs like the snmpd which the counter evaluate provide wrong data.

Maybe someone can take a look at the code.



Thank you for your efforts


Regards
Uwe