Bug 213803 - net/intel-ixl-kmod: Does not report transceiver details
Summary: net/intel-ixl-kmod: Does not report transceiver details
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Kurt Jaeger
URL:
Keywords: feature
Depends on:
Blocks:
 
Reported: 2016-10-26 11:29 UTC by Kurt Jaeger
Modified: 2017-03-14 17:16 UTC (History)
2 users (show)

See Also:
pi: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger freebsd_committer freebsd_triage 2016-10-26 11:29:19 UTC
For a X520-DA2, on 10.3p3 I can get the transceiver details via

ifconfig -v ix0

ix0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=e407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 90:e2:ba:80:96:9c
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        plugged: SFP/SFP+/SFP28 10G Base-SR (LC)
        vendor: Intel Corp. PN: E10GSFPSR-SO SN: SOP850S_WK09 DATE: 2016-07-05
        module temperature: 33.40 C Voltage: 3.24 Volts
        RX: 0.00 mW (-inf dBm) TX: 0.48 mW (-3.10 dBm)

For a X710-DA4 on 10.3p10, the driver (net/intel-ixl-kmod, 1.4.27), does
not report the transceiver details:

ifconfig -v ixl3
ixl3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=6407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 3c:fd:fe:a0:f2:73
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (10Gbase-SR <full-duplex>)
        status: active

Will this reporting be available in a future version of the driver ?
It's really, really very helpful!
Comment 1 Jeff Pieper 2016-10-26 12:54:43 UTC
The next driver release will have this functionality:

# ifconfig -v ixl2
ixl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=6407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 00:00:00:00:03:14
        inet 190.4.9.30 netmask 0xffff0000 broadcast 190.4.255.255
        inet6 fec0::4:930 prefixlen 112
        inet6 fe80::200:ff:fe00:314%ixl2 prefixlen 64 scopeid 0x5
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (10Gbase-Twinax <full-duplex>)
        status: active
        plugged: SFP/SFP+/SFP28 1X Copper Passive (Copper pigtail)
 
# ifconfig -vvv ixl2

ixl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=6407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 00:00:00:00:03:14
        inet 190.4.9.30 netmask 0xffff0000 broadcast 190.4.255.255
        inet6 fec0::4:930 prefixlen 112
        inet6 fe80::200:ff:fe00:314%ixl2 prefixlen 64 scopeid 0x5
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (10Gbase-Twinax <full-duplex>)
        status: active
        plugged: SFP/SFP+/SFP28 1X Copper Passive (Copper pigtail)
        vendor: Amphenol PN: 624380003 SN: APF14460034PK7 DATE: 2014-11-14

        SFF8472 DUMP (0xA0 0..127 range):
        03 04 21 01 00 00 04 41 84 80 D5 00 67 00 00 00
        00 00 03 00 41 6D 70 68 65 6E 6F 6C 20 20 20 20
        20 20 20 20 00 78 A7 14 36 32 34 33 38 30 30 30
        33 20 20 20 20 20 20 20 41 20 20 20 03 00 00 66
        00 00 00 00 41 50 46 31 34 34 36 30 30 33 34 50
        4B 37 20 20 31 34 31 31 31 34 20 20 00 00 00 EB
        FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
        FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2016-10-26 12:57:13 UTC
Very cool! Thanks a lot!
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2016-10-26 13:15:31 UTC
Revert incorrect classification and clarify Summary according to category/portname hidden^W mentioned in comment 0
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2016-10-26 13:17:48 UTC
Reporter is committer, assign accordingly.

Pending patch & QA (it appears from comment 1?)
Comment 5 Kurt Jaeger freebsd_committer freebsd_triage 2017-01-04 15:25:39 UTC
Status: ixl on 11.0p6 still misses transceiver details.
Comment 6 Jeff Pieper 2017-01-04 15:29:00 UTC
(In reply to Kurt Jaeger from comment #5)
That would be because the driver hasn't been updated yet.
Comment 7 Jeff Pieper 2017-01-04 15:34:53 UTC
(In reply to Kurt Jaeger from comment #5)
You filed this Bz on net/intel-ixl-kmod, NOT the in-kernel driver.
Comment 8 Kurt Jaeger freebsd_committer freebsd_triage 2017-01-04 15:46:16 UTC
Yes, I'm aware that this PR is on the port. I'm mentioning it for other users,
so that they find the current status for both (port and 11.0p6 OS) for ixl.
Comment 9 Jeff Pieper 2017-03-13 00:21:17 UTC
This functionality is in: https://reviews.freebsd.org/D9474 and as well as the latest driver on Intel Download Center: https://downloadcenter.intel.com/download/25160/Intel-Network-Adapter-Driver-for-PCIe-40-Gigabit-Ethernet-Network-Connection-under-FreeBSD-
Comment 10 Kurt Jaeger freebsd_committer freebsd_triage 2017-03-13 19:11:32 UTC
testing@11.0p8-amd64
Comment 11 Kurt Jaeger freebsd_committer freebsd_triage 2017-03-14 16:57:07 UTC
Builds, installs, detects the X710-DA4, provides transceiver values, all very nice.
Comment 12 commit-hook freebsd_committer freebsd_triage 2017-03-14 17:11:23 UTC
A commit references this bug:

Author: pi
Date: Tue Mar 14 17:10:54 UTC 2017
New revision: 436166
URL: https://svnweb.freebsd.org/changeset/ports/436166

Log:
  net/intel-ixl-kmod: update 1.4.27 -> 1.7.11

  - Now supports reporting transceiver DOM (via the -v flag to ifconfig)
    (DOM == Diagnostic Monitoring Interface for Optical Transceivers)

  PR:		213803
  Submitted by:	Jeff Pieper <jeffrey.e.pieper@intel.com> (maintainer)
  Changes:	https://downloadmirror.intel.com/25160/eng/README.txt

Changes:
  head/net/intel-ixl-kmod/Makefile
  head/net/intel-ixl-kmod/distinfo
Comment 13 Kurt Jaeger freebsd_committer freebsd_triage 2017-03-14 17:16:29 UTC
Committed, thanks very much!