n8v8r, thanks for sharing!
BTW, I have a question: https://www.tp-link.com/us/business-networking/accessory/tl-sm321b/#specifications says that data rate is 1.25Gbps.
dmesg says both 1.3Gbps and 1Gbps in different places
# dmesg | egrep sfp\|eth2
[ 4.465349] mvneta f1034000.ethernet eth2: Using hardware mac address d8:58:d7:00:50:a4
[ 5.302567] sfp sfp: module TP-LINK TL-SM321B rev 1.1 sn 35506106580385 dc 17-06-15
[ 5.311904] sfp sfp: LC connector, encoding 8b10b, nominal bitrate 1.3Gbps +0% -0%
[ 5.319665] sfp sfp: 1000BaseSX- 1000BaseLX+ 1000BaseCX- 1000BaseT- 100BaseTLX- 1000BaseFX- BaseBX10- BasePX-
[ 5.329779] sfp sfp: 10GBaseSR- 10GBaseLR- 10GBaseLRM- 10GBaseER-
[ 5.336062] sfp sfp: Wavelength 1310nm, fiber lengths:
[ 5.341388] sfp sfp: 9µm SM : 20000m
[ 5.345666] sfp sfp: 62.5µm MM OM1: unsupported/unspecified
[ 5.351426] sfp sfp: 50µm MM OM2: unsupported/unspecified
[ 5.357184] sfp sfp: 50µm MM OM3: unsupported/unspecified
[ 5.362944] sfp sfp: 50µm MM OM4: unsupported/unspecified
[ 5.368704] sfp sfp: Options: txdisable, txfault, los+
[ 5.374029] sfp sfp: Diagnostics:
[ 5.377616] mvneta f1034000.ethernet eth2: switched to 802.3z/1000base-x link mode
[ 21.657946] mvneta f1034000.ethernet eth2: configuring for 802.3z/1000base-x link mode
[ 21.972393] mvneta f1034000.ethernet eth2: Link is Up - 1Gbps/Full - flow control off
other tools:
# ethtool eth2
Settings for eth2:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseX/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseX/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Link detected: yes
# mii-tool eth2
eth2: 1000 Mbit, full duplex, link ok
So is it 1.3Gbps or 1Gbps or 1000Mbps ? Also are there a way to get link quality measurements (if they available at all)?