From nobody@FreeBSD.org  Thu Apr 19 00:44:56 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id DBC7737B42C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Apr 2001 00:44:55 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f3J7itE40648;
	Thu, 19 Apr 2001 00:44:55 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104190744.f3J7itE40648@freefall.freebsd.org>
Date: Thu, 19 Apr 2001 00:44:55 -0700 (PDT)
From: luc@2113.ch
To: freebsd-gnats-submit@FreeBSD.org
Subject: mediaopt doesn't work with xl drivers "ifconfig: SIOCSIFMEDIA: Device not configured"
X-Send-Pr-Version: www-1.0

>Number:         26696
>Category:       i386
>Synopsis:       mediaopt doesn't work with xl drivers "ifconfig: SIOCSIFMEDIA: Device not configured"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 19 00:50:01 PDT 2001
>Closed-Date:    Fri Jun 1 20:02:34 PDT 2001
>Last-Modified:  Fri Jun 01 20:02:58 PDT 2001
>Originator:     luc
>Release:        FreeBSD 4.3-RC #2
>Organization:
none
>Environment:
FreeBSD felix.net2000.ch 4.3-RC FreeBSD 4.3-RC #2: Tue Apr 10 15:14:33 CEST 2001     root@:/usr/src/sys/compile/BSD2  i386
>Description:
I cannot set mediaopt to my network card.

dmesg | grep xl0 
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xa400-0xa47f mem 0xdf800000-0xdf80007f irq 15 at device 10.0 on pci0
xl0: Ethernet address: 00:10:5a:e2:53:58

felix# ifconfig xl0
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.10 netmask 0xffffff00 broadcast 10.0.0.255
        ether 00:10:5a:e2:53:58 
        media: 10baseT/UTP status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>

Here is my problem:

felix# ifconfig xl0 mediaopt half-duplex
ifconfig: SIOCSIFMEDIA: Device not configured

i cannot set mediaopt at all
>How-To-Repeat:
get a xl netcard configured then:
felix# ifconfig xl0 mediaopt half-duplex
>Fix:

>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@one-eyed-alien.net>
To: luc@2113.ch
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/26696: mediaopt doesn't work with xl drivers "ifconfig: SIOCSIFMEDIA: Device not configured"
Date: Mon, 28 May 2001 19:15:19 -0700

 --UlVJffcvxoiEqYs2
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 This is expected (though I'll admit that ifconfig has really lousy error
 handling.)  If you look at the output from ifconfig closly, you'll
 notice that half-duplex is not in the supported media list.  With
 Ethernet interfaces, the default is assumed to be convententional
 ethernet with full-duplex being the special case.  You are already in
 half-duplex mode.  If you were in full duplex mode you could disable it
 with "ifconfig xl0 -mediaopt full-duplex".
 
 -- Brooks
 
 --=20
 Any statement of the form "X is the one, true Y" is FALSE.
 PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
 
 --UlVJffcvxoiEqYs2
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (GNU/Linux)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE7EwY2XY6L6fI4GtQRAmRmAKCMKVm+CIqVw34vHyeybkEplkt2hQCffCvc
 W2AbxBaXJTp7ATeUVj+ZupM=
 =MJaF
 -----END PGP SIGNATURE-----
 
 --UlVJffcvxoiEqYs2--

From: Brooks Davis <brooks@one-eyed-alien.net>
To: luc@2113.ch, freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/26696: mediaopt doesn't work with xl drivers "ifconfig: SIOCSIFMEDIA: Device not configured"
Date: Fri, 1 Jun 2001 17:28:16 -0700

 --C7zPtVaVf+AK4Oqc
 Content-Type: text/plain; charset=iso-8859-1
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, May 28, 2001 at 07:15:19PM -0700, Brooks Davis wrote:
 > This is expected (though I'll admit that ifconfig has really lousy error
 > handling.)  If you look at the output from ifconfig closly, you'll
 > notice that half-duplex is not in the supported media list.  With
 > Ethernet interfaces, the default is assumed to be convententional
 > ethernet with full-duplex being the special case.  You are already in
 > half-duplex mode.  If you were in full duplex mode you could disable it
 > with "ifconfig xl0 -mediaopt full-duplex".
 
 A quick follow up on this.  According to the ifmedia manpage from NetBSD
 (the birthplace of ifmedia):
 
   IFM_HDX    Place the device into half-duplex mode.  This option on=AD
              ly has meaning if the device is normally not half-du=AD
 	     plex.  [half-duplex, hdx]
 
 Since classical ethernet is half duplex, it is correct that this is not
 a supported option.
 
 This PR can be closed.
 
 -- Brooks
 
 --=20
 Any statement of the form "X is the one, true Y" is FALSE.
 PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
 
 --C7zPtVaVf+AK4Oqc
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (GNU/Linux)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE7GDMfXY6L6fI4GtQRAoYjAKCKfgUC2dj5W+XceBYSoUG6QvkzUgCeLLMy
 bSzzDt7/eEYwc7nqVbR3q0c=
 =zFA4
 -----END PGP SIGNATURE-----
 
 --C7zPtVaVf+AK4Oqc--
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Fri Jun 1 20:02:34 PDT 2001 
State-Changed-Why:  
This is not a problem as explained in the two follow-ups. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26696 
>Unformatted:
