From nobody@FreeBSD.org  Tue Mar 20 05:55:19 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 8AB7A16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Mar 2007 05:55:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 79E8413C484
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Mar 2007 05:55:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2K5tJaw014776
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Mar 2007 05:55:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l2K5oHmT009181;
	Tue, 20 Mar 2007 05:50:17 GMT
	(envelope-from nobody)
Message-Id: <200703200550.l2K5oHmT009181@www.freebsd.org>
Date: Tue, 20 Mar 2007 05:50:17 GMT
From: Bruce Becker<hostmaster@infra-service.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: :"em" driver shuts down interface when "ifconfig  media 100baseTX"  is invoked
X-Send-Pr-Version: www-3.0

>Number:         110561
>Category:       kern
>Synopsis:       :"em" driver shuts down interface when "ifconfig  media 100baseTX"  is invoked
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 20 06:00:09 GMT 2007
>Closed-Date:    Tue Mar 20 06:42:07 GMT 2007
>Last-Modified:  Wed Mar 21 01:00:17 GMT 2007
>Originator:     Bruce Becker
>Release:        6.2 i386
>Organization:
G.T.S.
>Environment:
FreeBSD cg-gw 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #10: Tue Jan 16 01:40:27 EST 2007     root@taint:/usr/obj/usr/src/sys/FW-YQ  i386

>Description:
I did:
ifconfig em2 media 100baseTX mediaopt full-duplex

ifconfig em2 now reports:
..
media: Ethernet 100baseTX <full-duplex> (autoselect)
status: no carrier
>How-To-Repeat:
do the above
>Fix:
"ifconfig media autoselect" brings the interface active again
 but the ability to set specific media/mediaopt is what is required


"ifconfig em2 media 100baseTX" also shuts the interface down
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Tue Mar 20 06:42:06 UTC 2007 
State-Changed-Why:  
This is not a bug, this is a problem in the negotiation on the other 
side. If the switch you are attaching to is not supporting the fixed 
setting of the speed and duplex settings or incorrectly negotiates then 
this is not a problem of the driver nor the card but a switching 
problem. Please try to findout FIRST what the real problem is and THEN 
get back to me if this really is a FreeBSD problem (Discuss this on the 
networking mailinglist please > 
http://lists.freebsd.org/mailman/listinfo/freebsd-net/). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110561 

From: Infraservice hostmaster <hostmaster@Infra-Service.ca>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/110561 "em" driver shuts down interface when "ifconfig media 100baseTX" is invoked
Date: Tue, 20 Mar 2007 03:31:54 -0400 (EDT)

 | 
 | Synopsis: :"em" driver shuts down interface when "ifconfig  media 100baseTX"  is invoked
 | 
 | State-Changed-From-To: open->closed
 | State-Changed-By: remko
 | State-Changed-When: Tue Mar 20 06:42:06 UTC 2007
 | State-Changed-Why: 
 | This is not a bug, this is a problem in the negotiation on the other
 | side. If the switch you are attaching to is not supporting the fixed
 | setting of the speed and duplex settings or incorrectly negotiates then
 | this is not a problem of the driver nor the card but a switching
 | problem. Please try to findout FIRST what the real problem is and THEN
 | get back to me if this really is a FreeBSD problem (Discuss this on the
 | networking mailinglist please >
 | http://lists.freebsd.org/mailman/listinfo/freebsd-net/).
 
 
 	This happens to every interface we tried it on!
 

From: Infraservice hostmaster <hostmaster@Infra-Service.ca>
To: kris@obsecurity.org (Kris Kennaway)
Cc: freebsd-bugs@FreeBSD.org, bug-followup@freebsd.org
Subject: Re: kern/110561 "em" driver shuts down interface when "ifconfig media 100baseTX" is invoked
Date: Tue, 20 Mar 2007 20:09:13 -0400 (EDT)

 | 
 | On Tue, Mar 20, 2007 at 07:40:10AM +0000, Infraservice hostmaster wrote:
 | > The following reply was made to PR kern/110561; it has been noted by GNATS.
 | > 
 | > From: Infraservice hostmaster <hostmaster@Infra-Service.ca>
 | > To: bug-followup@freebsd.org
 | > Cc:  
 | > Subject: Re: kern/110561 "em" driver shuts down interface when "ifconfig media 100baseTX" is invoked
 | > Date: Tue, 20 Mar 2007 03:31:54 -0400 (EDT)
 | > 
 | >  | 
 | >  | Synopsis: :"em" driver shuts down interface when "ifconfig  media 100baseTX"  is invoked
 | >  | 
 | >  | State-Changed-From-To: open->closed
 | >  | State-Changed-By: remko
 | >  | State-Changed-When: Tue Mar 20 06:42:06 UTC 2007
 | >  | State-Changed-Why: 
 | >  | This is not a bug, this is a problem in the negotiation on the other
 | >  | side. If the switch you are attaching to is not supporting the fixed
 | >  | setting of the speed and duplex settings or incorrectly negotiates then
 | >  | this is not a problem of the driver nor the card but a switching
 | >  | problem. Please try to findout FIRST what the real problem is and THEN
 | >  | get back to me if this really is a FreeBSD problem (Discuss this on the
 | >  | networking mailinglist please >
 | >  | http://lists.freebsd.org/mailman/listinfo/freebsd-net/).
 | >  
 | >  
 | >  	This happens to every interface we tried it on!
 | 
 | Right, which is consistent with the switch failing to negotiate.
 
 
 	wrong, each interface connects to distinctly different devices
 
 	one is a cisco adsl router, another is a FBSD 6.2 box with an
 	Intel fxp card - it ifconfigs media/mediaopt just fine BTW
 
 

From: "Jack Vogel" <jfvogel@gmail.com>
To: "Infraservice hostmaster" <hostmaster@infra-service.ca>
Cc: "Kris Kennaway" <kris@obsecurity.org>, freebsd-bugs@freebsd.org, 
	bug-followup@freebsd.org
Subject: Re: kern/110561 "em" driver shuts down interface when "ifconfig media 100baseTX" is invoked
Date: Tue, 20 Mar 2007 17:22:42 -0700

 On 3/20/07, Infraservice hostmaster <hostmaster@infra-service.ca> wrote:
 > |
 > | On Tue, Mar 20, 2007 at 07:40:10AM +0000, Infraservice hostmaster wrote:
 > | > The following reply was made to PR kern/110561; it has been noted by GNATS.
 > | >
 > | > From: Infraservice hostmaster <hostmaster@Infra-Service.ca>
 > | > To: bug-followup@freebsd.org
 > | > Cc:
 > | > Subject: Re: kern/110561 "em" driver shuts down interface when "ifconfig media 100baseTX" is invoked
 > | > Date: Tue, 20 Mar 2007 03:31:54 -0400 (EDT)
 > | >
 > | >  |
 > | >  | Synopsis: :"em" driver shuts down interface when "ifconfig  media 100baseTX"  is invoked
 > | >  |
 > | >  | State-Changed-From-To: open->closed
 > | >  | State-Changed-By: remko
 > | >  | State-Changed-When: Tue Mar 20 06:42:06 UTC 2007
 > | >  | State-Changed-Why:
 > | >  | This is not a bug, this is a problem in the negotiation on the other
 > | >  | side. If the switch you are attaching to is not supporting the fixed
 > | >  | setting of the speed and duplex settings or incorrectly negotiates then
 > | >  | this is not a problem of the driver nor the card but a switching
 > | >  | problem. Please try to findout FIRST what the real problem is and THEN
 > | >  | get back to me if this really is a FreeBSD problem (Discuss this on the
 > | >  | networking mailinglist please >
 > | >  | http://lists.freebsd.org/mailman/listinfo/freebsd-net/).
 > | >
 > | >
 > | >     This happens to every interface we tried it on!
 > |
 > | Right, which is consistent with the switch failing to negotiate.
 >
 >
 >         wrong, each interface connects to distinctly different devices
 >
 >         one is a cisco adsl router, another is a FBSD 6.2 box with an
 >         Intel fxp card - it ifconfigs media/mediaopt just fine BTW
 
 So, if each 'distinctly different device' can't handle forcing the speed
 then Kris's assertion still holds.
 
 Our test group at Intel has a wide range of hardware, and they do
 extensive tests on forcing speed/duplex, I am unaware of any
 outstanding bugs on this issue.
 
 Cheers,
 
 Jack

From: Infraservice hostmaster <hostmaster@Infra-Service.ca>
To: jfvogel@gmail.com (Jack Vogel)
Cc: kris@obsecurity.org, freebsd-bugs@freebsd.org, bug-followup@freebsd.org
Subject: Re: kern/110561 "em" driver shuts down interface when "ifconfig media 100baseTX" is invoked
Date: Tue, 20 Mar 2007 20:52:21 -0400 (EDT)

 | On 3/20/07, Infraservice hostmaster <hostmaster@infra-service.ca> wrote:
 | > | On Tue, Mar 20, 2007 at 07:40:10AM +0000, Infraservice hostmaster wrote:
 | > | > The following reply was made to PR kern/110561; it has been noted by GNATS.
 | > | >
 | > | > From: Infraservice hostmaster <hostmaster@Infra-Service.ca>
 | > | > To: bug-followup@freebsd.org
 | > | > Cc:
 | > | > Subject: Re: kern/110561 "em" driver shuts down interface when "ifconfig media 100baseTX" is invoked
 | > | > Date: Tue, 20 Mar 2007 03:31:54 -0400 (EDT)
 | > | >
 | > | >  |
 | > | >  | Synopsis: :"em" driver shuts down interface when "ifconfig  media 100baseTX"  is invoked
 | > | >  |
 | > | >  | State-Changed-From-To: open->closed
 | > | >  | State-Changed-By: remko
 | > | >  | State-Changed-When: Tue Mar 20 06:42:06 UTC 2007
 | > | >  | State-Changed-Why:
 | > | >  | This is not a bug, this is a problem in the negotiation on the other
 | > | >  | side. If the switch you are attaching to is not supporting the fixed
 | > | >  | setting of the speed and duplex settings or incorrectly negotiates then
 | > | >  | this is not a problem of the driver nor the card but a switching
 | > | >  | problem. Please try to findout FIRST what the real problem is and THEN
 | > | >  | get back to me if this really is a FreeBSD problem (Discuss this on the
 | > | >  | networking mailinglist please >
 | > | >  | http://lists.freebsd.org/mailman/listinfo/freebsd-net/).
 | > | >
 | > | >     This happens to every interface we tried it on!
 | > |
 | > | Right, which is consistent with the switch failing to negotiate.
 | >
 | >         wrong, each interface connects to distinctly different devices
 | >
 | >         one is a cisco adsl router, another is a FBSD 6.2 box with an
 | >         Intel fxp card - it ifconfigs media/mediaopt just fine BTW
 | 
 | So, if each 'distinctly different device' can't handle forcing the speed
 | then Kris's assertion still holds.
 | 
 | Our test group at Intel has a wide range of hardware, and they do
 | extensive tests on forcing speed/duplex, I am unaware of any
 | outstanding bugs on this issue.
 
 
 	I think i am cunfused by this difference between what i see
 	with a fxp interface:
 
 	media: Ethernet 100baseTX <full-duplex>
 	status: active
 
 
 	... and an em interface:
 
 	media: Ethernet 100baseTX <full-duplex> (autoselect)
 	status: no carrier
 
 
 	I've not previously seen "(autoselect)" appended after doing
 	"ifconfig <interface> media 100baseTX mediaopt full-duplex"
 	to my recollection.
 
 
 	Is a defective ethernet cable a possible cause even though
 	it seems to pass packets just fine?
 
>Unformatted:
