Bug 26696

Summary: mediaopt doesn't work with xl drivers "ifconfig: SIOCSIFMEDIA: Device not configured"
Product: Base System Reporter: luc <luc>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description luc 2001-04-19 08:50:01 UTC
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
Comment 1 brooks 2001-05-29 03:15:19 UTC
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

-- 
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
Comment 2 brooks 2001-06-02 01:28:16 UTC
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­
             ly has meaning if the device is normally not half-du­
	     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

-- 
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
Comment 3 dd freebsd_committer freebsd_triage 2001-06-02 04:02:34 UTC
State Changed
From-To: open->closed

This is not a problem as explained in the two follow-ups.