From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 13 10:30:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D594D82C for ; Wed, 13 Nov 2013 10:30:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B90C62531 for ; Wed, 13 Nov 2013 10:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rADAU0LR040667 for ; Wed, 13 Nov 2013 10:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rADAU0jf040666; Wed, 13 Nov 2013 10:30:00 GMT (envelope-from gnats) Resent-Date: Wed, 13 Nov 2013 10:30:00 GMT Resent-Message-Id: <201311131030.rADAU0jf040666@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vladimir Pushkar Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7823767F for ; Wed, 13 Nov 2013 10:20:31 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 68CA824B5 for ; Wed, 13 Nov 2013 10:20:31 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rADAKVPl031492 for ; Wed, 13 Nov 2013 10:20:31 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rADAKVL6031491; Wed, 13 Nov 2013 10:20:31 GMT (envelope-from nobody) Message-Id: <201311131020.rADAKVL6031491@oldred.freebsd.org> Date: Wed, 13 Nov 2013 10:20:31 GMT From: Vladimir Pushkar To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/183920: Incorrect ifconfig media on INTEL X520-T2 10G Dual-port Ethernet Server Adapter, RJ45/2 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2013 10:30:01 -0000 >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@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 metric 0 mtu 1500 options=407bb ether 00:1e:67:07:80:d8 media: Ethernet autoselect (1000baseSX ) status: active ix1: flags=8843 metric 0 mtu 1500 options=407bb ether 00:1e:67:07:80:d8 media: Ethernet autoselect (1000baseSX ) 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: