Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2020 13:43:46 +0100
From:      =?utf-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com>
To:        John F Carr <jfc@mit.edu>
Cc:        "freebsd-arm@freebsd.org" <arm@freebsd.org>
Subject:   Re: if_mvneta rx/tx byte counts wrong
Message-ID:  <5DD7380F-00C1-425F-B44F-1E755A4D30EE@gmail.com>
In-Reply-To: <858E0BCD-C4E9-4997-A982-3C19DF21D161@exchange.mit.edu>
References:  <57104A54-AC82-4102-A637-116BF8D2E17D@gmail.com> <858E0BCD-C4E9-4997-A982-3C19DF21D161@exchange.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi John

Good catch!, if I just use those as 32bit values it =E2=80=9Cjust =
works=E2=80=9D seems the Marvell version has a bug or config problem =
here..

> On 4 Nov 2020, at 13.26, John F Carr <jfc@mit.edu> wrote:
>=20
> If you view in hex,
>=20
> $ printf '%x %x %x\n' 443193380410133 3813930959736 274877907008
> 1931500019315 37800000378 4000000040
>=20
> you see a 32 bit value duplicated into both halves of a 64 bit value.
>=20
> On Nov 4, 2020, at 03:38 , S=C3=B8ren Schmidt =
<soren.schmidt@gmail.com> wrote:
>>=20
>> Hi gang
>>=20
>> While returning to my hacks on the Espressobin I noticed that netstat =
-w gives some interesting results:
>>=20
>> root@EspressoBin:~ # netstat -w1
>>           input        (Total)           output
>>  packets  errs idrops      bytes    packets  errs      bytes colls
>>        0     0     0         60          0     0          0     0
>>        1     0     0 274877907008          0     0          0     0
>>        0     0     0         60          0     0          0     0
>>        1     0     0 274877907008          0     0          0     0
>>        1     0     0 274877907315          0     0          0     0
>>        3     0     1 1370094567743          0     0          0     0
>>        0     0     0         60          0     0          0     0
>>        1     0     0 274877909253          0     0          0     0
>>=20
>> Looking at the sysctl=E2=80=99s its the same thing:
>>=20
>> dev.mvneta.0.mib.tx_good_oct: 3813930959736
>> dev.mvneta.0.mib.rx_good_oct: 443193380410133
>>=20
>> First though there might be byteordering involved but looking at the =
raw values that does not explain the behaviour, however the rx/tx count =
is the only values that are 64bit, all others are 32bit and are working =
as expected.
>>=20
>> Any ideas / fixes ?
>>=20
>> --
>> S=C3=B8ren Schmidt
>> sos@deepcore.dk / sos@freebsd.org
>> "So much code to hack, so little time"
>>=20
>>=20
>>=20
>> _______________________________________________
>> freebsd-arm@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>> To unsubscribe, send any mail to =
"freebsd-arm-unsubscribe@freebsd.org"
>=20

--
S=C3=B8ren Schmidt
sos@deepcore.dk / sos@freebsd.org
"So much code to hack, so little time"






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5DD7380F-00C1-425F-B44F-1E755A4D30EE>