From nobody@FreeBSD.org  Wed Feb 22 19:30:13 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C74A91065672
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Feb 2012 19:30:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id B6D808FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Feb 2012 19:30:13 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q1MJUDns091753
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Feb 2012 19:30:13 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q1MJUD4V091752;
	Wed, 22 Feb 2012 19:30:13 GMT
	(envelope-from nobody)
Message-Id: <201202221930.q1MJUD4V091752@red.freebsd.org>
Date: Wed, 22 Feb 2012 19:30:13 GMT
From: Eugen Konkov <kes-kes@yandex.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: turn off port on SWITCH do not change status of igb
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         165399
>Category:       kern
>Synopsis:       [igb] turn off port on SWITCH do not change status of igb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jfv
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 22 19:40:08 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Mar 12 07:30:50 UTC 2012
>Originator:     Eugen Konkov
>Release:        8.3-PRERELEASE
>Organization:
ISP FreeLine
>Environment:
FreeBSD 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #1 r231881: Fri Feb 17 17:20:09 UTC 2012     @:/usr/obj/usr/src/sys/KES_KERN_v8  amd64

>Description:
changing status of port to OFF do not change status of igb device:
igb3: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
        ether a0:36:9f:00:66:a7
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
EXPECTED: 
 status: no carrier

only reboot helps.

On other hand. when port is OFF and it is turned on status is changed as expected from 'no carrier' to 'active. Turning off port on switch do not change status of link on igb. it stay to be 'active' despite on that port is OFF now

i350 chipset
igb0@pci0:1:0:0:        class=0x020000 card=0x00018086 chip=0x15218086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
    subclass   = ethernet
igb1@pci0:1:0:1:        class=0x020000 card=0x00018086 chip=0x15218086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
    subclass   = ethernet
igb2@pci0:1:0:2:        class=0x020000 card=0x00018086 chip=0x15218086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
    subclass   = ethernet
igb3@pci0:1:0:3:        class=0x020000 card=0x00018086 chip=0x15218086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
    subclass   = ethernet

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: "Vogel, Jack" <jack.vogel@intel.com>
To: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>, "kes-kes@yandex.ru"
	<kes-kes@yandex.ru>
Cc:  
Subject: Re: kern/165399: turn off port on SWITCH do not change status of igb
Date: Wed, 22 Feb 2012 20:07:34 +0000

 --_000_BC1B13FD0226B0479C795193AC1B257204574EORSMSX104amrcorpi_
 Content-Type: text/plain; charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 
 This is not a bug, it's a side-effect of design. Until you bring the interf=
 ace up interrupts are not enabled, hence there is no way to see and respond=
  to the link change event. If you bring the port up just by doing an `ifcon=
 fig igbX up` and try it again you'll see the status will change.
 
 Jack
 
 --_000_BC1B13FD0226B0479C795193AC1B257204574EORSMSX104amrcorpi_--
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Mon Mar 12 07:29:51 UTC 2012 
State-Changed-Why:  
Note that jfv asked for feedback. 


Responsible-Changed-From-To: freebsd-bugs->jfv 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 12 07:29:51 UTC 2012 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=165399 
>Unformatted:
