Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bad counter for ixg* interfaces



Hi, Uwe.

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

ifconfig -v ixg0 shows:

ixg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         capabilities=fff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
         capabilities=fff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
         capabilities=fff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6,LRO>
         enabled=0
         ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
         ec_enabled=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
         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 (msaitoh%execsw.org@localhost
                                 msaitoh%netbsd.org@localhost)


Home | Main Index | Thread Index | Old Index