Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2017 17:40:38 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        syrinx@freebsd.org, Tom Huerlimann <office@thuinformatik.ch>
Cc:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   Re: axge0 and AX88179
Message-ID:  <43b6b5de-1c36-bc16-1472-001e48184fdc@selasky.org>
In-Reply-To: <CAExw995JZWhSMmiYa9eErxzpD8WuU1WAnhWW=fYYAmb7-S-RjA@mail.gmail.com>
References:  <008701d2d585$f1977f90$d4c67eb0$@thuinformatik.ch> <2248eb55-c402-cdb9-2648-986a0ed9663a@selasky.org> <00f201d2d593$734c6160$59e52420$@thuinformatik.ch> <CAExw995JZWhSMmiYa9eErxzpD8WuU1WAnhWW=fYYAmb7-S-RjA@mail.gmail.com>

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

Thanks for shipping me your device.

I've now done some basic tests and your device shows varying results.

When connecting it to a GBit capable ethernet port using a short cable, 
it ends up negotiating 10MBit link speed, whilst connecting to another 
other port, 1Gbit link speed. When connecting another such device using 
the same chip and phy and everything, only a different PCB layout, 
1GBit/s is always negotiated.

Running a simple back2back iperf test gives me:

iperf -i 1 -P4 -c 1.1.1.1
------------------------------------------------------------
Client connecting to 1.1.1.1, TCP port 5001
TCP window size: 32.8 KByte (default)
------------------------------------------------------------
[  3] local 1.1.1.2 port 20458 connected with 1.1.1.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  81.4 MBytes   683 Mbits/sec
[  3]  1.0- 2.0 sec  86.2 MBytes   724 Mbits/sec
[  3]  2.0- 3.0 sec  86.2 MBytes   724 Mbits/sec
[  3]  3.0- 4.0 sec  86.4 MBytes   725 Mbits/sec
[  3]  4.0- 5.0 sec  86.2 MBytes   724 Mbits/sec
[  3]  5.0- 6.0 sec  86.4 MBytes   725 Mbits/sec
[  3]  6.0- 7.0 sec  86.0 MBytes   721 Mbits/sec
[  3]  7.0- 8.0 sec  86.4 MBytes   725 Mbits/sec
[  3]  8.0- 9.0 sec  86.1 MBytes   722 Mbits/sec
[  3]  9.0-10.0 sec  86.1 MBytes   722 Mbits/sec
[  3]  0.0-10.0 sec   858 MBytes   719 Mbits/sec

1) Can you try to override the link speed negotiated:
ifconfig ueX media 100baseTX mediaopt full-duplex

2) Can you try to enable flowcontrol:
ifconfig ueX media autoselect mediaopt flowcontrol

3) The full list of medias accepted is available by entering:
ifconfig -m ueX

If none of the above helps, I'm afraid your device might suffer from an 
electrical design problem.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43b6b5de-1c36-bc16-1472-001e48184fdc>