Date: Thu, 13 Jan 2011 14:23:30 GMT From: Steinar Haug <sthaug@nethelp.no> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/153951: Intel 10GBase-LR Ethernet card detected as 10GBase-SR Message-ID: <201101131423.p0DENUNu097802@red.freebsd.org> Resent-Message-ID: <201101131430.p0DEUAJZ080386@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 153951 >Category: kern >Synopsis: Intel 10GBase-LR Ethernet card detected as 10GBase-SR >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 13 14:30:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Steinar Haug >Release: 8.2-RC1 >Organization: Nethelp Consulting >Environment: FreeBSD sniffy.lab.ventelo.net 8.2-RC1 FreeBSD 8.2-RC1 #0: Thu Jan 13 14:41:42 CET 2011 sthaug@sniffy.lab.ventelo.net:/usr/src/sys/amd64/compile/GENERIC amd64 >Description: I have a server with an Intel X520-LR1 Ethernet card, which is a 10GBase-LR card: http://ark.intel.com/Product.aspx?id=41164 The card contains the Intel 82599ES controller: http://ark.intel.com/Product.aspx?id=41282 pciconf -lv shows: ix0@pci0:28:0:0: class=0x020000 card=0x00068086 chip=0x10fb8086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' class = network subclass = ethernet where /sys/dev/ixgbe/ixgbe_type.h has the PCI ID definition: #define IXGBE_DEV_ID_82599_SFP 0x10FB The problem is that this card is shown by ifconfig as a 10GBase-SR card: % ifconfig ix0 ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4> ether 00:1b:21:7c:7b:94 media: Ethernet autoselect (10Gbase-SR <full-duplex>) status: active I believe this is due to the following code in /sys/dev/ixgbe/ixgbe.c line 423, routine ixgbe_attach(): case IXGBE_DEV_ID_82599_SFP: adapter->optics = IFM_10G_SR; I'm looking at version 1.17.2.12.2.1, from 8.2-RC1, but I see this code is the same in version 1.45, from HEAD: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ixgbe/ixgbe.c?rev=1.45;content-type=text/plain >How-To-Repeat: Insert Intel X520-LR1 Ethernet card into server, compile kernel with ixgbe driver, reboot, type ifconfig, look at the values for the detected ixN card. >Fix: Fix pasted in so space/tabs won't be correct: --- ixgbe.c.orig 2010-12-21 18:09:25.000000000 +0100 +++ ixgbe.c 2011-01-13 14:31:14.000000000 +0100 @@ -421,7 +421,7 @@ adapter->optics = IFM_10G_LR; break; case IXGBE_DEV_ID_82599_SFP: - adapter->optics = IFM_10G_SR; + adapter->optics = IFM_10G_LR; ixgbe_num_segs = IXGBE_82599_SCATTER; break; case IXGBE_DEV_ID_82598_DA_DUAL_PORT : >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101131423.p0DENUNu097802>