kern/183920: Incorrect ifconfig media on INTEL X520-T2 10G Dual-port Ethernet Server Adapter, RJ45/2

Vladimir Pushkar vladimir.pushkar at gmail.com
Wed Nov 13 10:30:01 UTC 2013


>Number:         183920
>Category:       kern
>Synopsis:       Incorrect ifconfig media on INTEL X520-T2 10G Dual-port Ethernet Server Adapter, RJ45/2
>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:   Wed Nov 13 10:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Pushkar
>Release:        9.2-STABLE
>Organization:
Dune HD
>Environment:
FreeBSD storage.ua.dune-hd.com 9.2-STABLE FreeBSD 9.2-STABLE #5: Wed Nov  6 13:01:31 UTC 2013     root at storage.ua.dune-hd.com:/usr/obj/usr/src/sys/STORAGE  amd64

>Description:
Incorrect media (1000baseSX instead of 1000baseT) shown in ifconfig with INTEL X520-T2 10G Dual-port Ethernet Server Adapter, RJ45/2 when connecting to the gigabit switch with copper ports:
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO>
	ether 00:1e:67:07:80:d8
	media: Ethernet autoselect (1000baseSX <full-duplex>)
	status: active
ix1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO>
	ether 00:1e:67:07:80:d8
	media: Ethernet autoselect (1000baseSX <full-duplex>)
	status: active

Current network adapter doesn't have optic ports or modules, only build-in copper ports. That's why can't gather this interfaces with other gigabit in lagg with lacp (but this is another problem fixed in PR: 176097).
>How-To-Repeat:
Simply ifconfig ixX up, where X is the number of interface.
>Fix:
Quick and dirty hack is to replace the IFM_1000_SX with IFM_1000_T in ixgbe.c:
--- /root/ixgbe.c	2013-11-06 12:42:31.993273871 +0000
+++ /sys/dev/ixgbe/ixgbe.c	2013-11-06 12:58:05.657453811 +0000
@@ -1693,7 +1693,7 @@
 			ifmr->ifm_active |= IFM_100_TX | IFM_FDX;
 			break;
 		case IXGBE_LINK_SPEED_1GB_FULL:
-			ifmr->ifm_active |= IFM_1000_SX | IFM_FDX;
+			ifmr->ifm_active |= IFM_1000_T | IFM_FDX;
 			break;
 		case IXGBE_LINK_SPEED_10GB_FULL:
 			ifmr->ifm_active |= adapter->optics | IFM_FDX;


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list