NetBSD Problem Report #18762

Received: (qmail 29628 invoked by uid 605); 22 Oct 2002 07:06:44 -0000
Message-Id: <200210220706.g9M76Rh27094@digital.clock.org>
Date: Tue, 22 Oct 2002 00:06:27 -0700 (PDT)
From: "Erik E. Fair" <fair@digital.clock.org>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: fair@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: MII PHY numbers do not map 1:1 to ifconfig(8) instance numbers
X-Send-Pr-Version: 3.95

>Number:         18762
>Category:       kern
>Synopsis:       MII PHY numbers do not map 1:1 to ifconfig(8) instance numbers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 22 07:07:00 +0000 2002
>Closed-Date:    
>Last-Modified:  
>Originator:     Erik E. Fair
>Release:        NetBSD 1.6
>Organization:
International Organization of Internet Clock Watchers
>Environment:
>Description:
	On an Ethernet's Media Independent Interface (MII) bus,
	there can be up to 32 different physical interfaces (e.g.
	10base-2, 10base-T, 100base-T, AUI, fiber, etc.). The PHYs
	on MII are addressed using their number, and this number
	is reported at autconfiguration attachment time during
	system boot.

	Unfortunately, NetBSD also assigns each attached PHY an
	"instance" number in the order they're found, counting from
	zero. This number is not reported, but can be inferred from
	the kernel output during autoconfiguration. This number is
	what ifconfig(8) requires as an argument if one wishes to
	select a PHY explicitly, rather than by descriptive type
	(e.g. 10base-T).

	I think that instance numbers and PHY numbers should be
	the same thing, i.e. they should map 1:1. This would simplify
	our user interface for the (admittedly uncommon) multiple
	PHY case, particularly when the PHYs on the MII do not
	number themselves from zero. See PR 18590 for an example
	of a system with such a configuration.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.