From agapon@excite.com  Thu Jan 16 16:31:52 2003
Return-Path: <agapon@excite.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C58F237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Jan 2003 16:31:52 -0800 (PST)
Received: from mta6.srv.hcvlny.cv.net (mta6.srv.hcvlny.cv.net [167.206.5.17])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1DA9143F1E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Jan 2003 16:31:52 -0800 (PST)
	(envelope-from agapon@excite.com)
Received: from asv17.srv.hcvlny.cv.net
 (asv17.srv.hcvlny.cv.net [167.206.5.171]) by mta6.srv.hcvlny.cv.net
 (iPlanet Messaging Server 5.2 HotFix 1.05 (built Nov  6 2002))
 with ESMTP id <0H8U00JOD1GZV2@mta6.srv.hcvlny.cv.net> for
 FreeBSD-gnats-submit@freebsd.org; Thu, 16 Jan 2003 19:31:48 -0500 (EST)
Received: from edge.foundation.invalid
 (ool-4355489e.dyn.optonline.net [67.85.72.158])	by asv17.srv.hcvlny.cv.net
 (8.12.6/8.11.6) with ESMTP id h0H0Varw017181	for
 <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Jan 2003 19:31:37 -0500 (EST)
Received: from edge.foundation.invalid
 (localhost.foundation.invalid [127.0.0.1])	by edge.foundation.invalid
 (8.12.6/8.12.3) with ESMTP id h0H0VdZX010514	for
 <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Jan 2003 19:31:39 -0500
Received: (from avg@localhost)	by edge.foundation.invalid
 (8.12.6/8.12.3/Submit) id h0H0Vdnx010513; Thu, 16 Jan 2003 19:31:39 -0500 (EST)
Message-Id: <200301170031.h0H0Vdnx010513@edge.foundation.invalid>
Date: Thu, 16 Jan 2003 19:31:39 -0500 (EST)
From: Andriy Gapon <avg@icyb.net.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pseudo-device ef in kernel does not create ethernet interfaces
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47152
>Category:       kern
>Synopsis:       pseudo-device ef in kernel does not create ethernet interfaces
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 16 16:40:01 PST 2003
>Closed-Date:    Sun Mar 06 23:09:05 GMT 2005
>Last-Modified:  Sun Mar 06 23:09:05 GMT 2005
>Originator:     Andriy Gapon
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD edge.foundation.invalid 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #0: Tue Nov 19 17:28:50 EST 2002 avg@edge.foundation.invalid:/sys-devel/obj/sys-devel/src/sys/EDGE i386


>Description:
when ef driver is loaded via loader.conf everything works OK, but if I,
instead, compile pseudo-device ef into kernel, ethernet interfaces do not get
created. I can see that all if_ef_* symbols are present in kernel, however.

>How-To-Repeat:
1. compile kernel with pseudo-device ef
2. make sure if_ef module will not be loaded
3. reboot
4. run ifconfig to see if you have any xxNfM interfaces 
(xxN - network device, M - ethernet type number)

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Sun Mar 6 23:04:54 GMT 2005 
State-Changed-Why:  
You problem has been caused by the fact that previously driver required that 
at least one of the supported frame types should be enabled in the kernel 
config. If neither of them has been enabled then clone() function is not 
called and as a result you don't see any of those sub-interfaces. This 
problem has not been happening with module since module's makefile were enabling 
all of those frame types silently. 

I've fixed the problem, so that from now on if none of frame types is enabled 
explicitly then support for all of them will be compiled into the kernel. 

Thank you for reporting! 

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