From kabaev@mail.ru  Tue Mar  6 20:42:49 2001
Return-Path: <kabaev@mail.ru>
Received: from smtp6.port.ru (mx6.port.ru [194.67.23.42])
	by hub.freebsd.org (Postfix) with ESMTP id 0E85A37B718
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Mar 2001 20:42:47 -0800 (PST)
	(envelope-from kabaev@mail.ru)
Received: from adsl-141-154-116-168.bostma.adsl.bellatlantic.net ([141.154.116.168] helo=kan.dnsalias.net)
	by smtp6.port.ru with esmtp (Exim 3.14 #24)
	id 14aVmd-0005CV-00
	for FreeBSD-gnats-submit@freebsd.org; Wed, 07 Mar 2001 07:42:44 +0300
Received: (from kan@localhost)
	by kan.dnsalias.net (8.11.3/8.11.3) id f274feS46802;
	Tue, 6 Mar 2001 23:41:40 -0500 (EST)
	(envelope-from kan)
Message-Id: <200103070441.f274feS46802@kan.dnsalias.net>
Date: Tue, 6 Mar 2001 23:41:40 -0500 (EST)
From: kabaev@mail.ru
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: lnc network card driver module name is incorrect
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         25582
>Category:       kern
>Synopsis:       lnc driver uses wrong driver name
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    paul
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 06 20:50:02 PST 2001
>Closed-Date:    Sun Dec 16 12:11:05 PST 2001
>Last-Modified:  Sun Dec 16 12:11:56 PST 2001
>Originator:     Alexander N. Kabaev
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Verizon Laboratories Inc.
>Environment:
System: FreeBSD kan.dnsalias.net 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Tue Mar 6 21:03:40 EST 2001 kan@kan.dnsalias.net:/usr/src/sys/compile/KAN i386

>Description:
	lnc driver uses lnc_pci and lnc_isa names for its bus interface parts.
	It should use "if_lnc" name instead, otherwise ifconfig will attempt
	to load dynamic module each time if is invoked for lncX interface.
	This produces fairly annoying "lnc_pc failed to register: 17" 
	messages. 	
>How-To-Repeat:
	Compile in lnc driver and try to configure IP on it (you'll need a 
	card obviously, or you should be running FreeBSD under VMWare)
>Fix:

Index: if_lnc_isa.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/lnc/if_lnc_isa.c,v
retrieving revision 1.10
diff -u -r1.10 if_lnc_isa.c
--- if_lnc_isa.c	2000/12/29 11:59:41	1.10
+++ if_lnc_isa.c	2001/03/07 04:08:10
@@ -310,4 +310,4 @@
 	sizeof(struct lnc_softc),
 };
 
-DRIVER_MODULE(lnc_isa, isa, lnc_isa_driver, lnc_devclass, 0, 0);
+DRIVER_MODULE(if_lnc, isa, lnc_isa_driver, lnc_devclass, 0, 0);
Index: if_lnc_pci.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/lnc/if_lnc_pci.c,v
retrieving revision 1.23
diff -u -r1.23 if_lnc_pci.c
--- if_lnc_pci.c	2001/03/02 00:40:06	1.23
+++ if_lnc_pci.c	2001/03/07 04:08:31
@@ -223,4 +223,4 @@
 	sizeof(struct lnc_softc),
 };
 
-DRIVER_MODULE(lnc_pci, pci, lnc_pci_driver, lnc_devclass, 0, 0);
+DRIVER_MODULE(if_lnc, pci, lnc_pci_driver, lnc_devclass, 0, 0);
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->paul 
Responsible-Changed-By: joe 
Responsible-Changed-When: Wed Mar 7 01:18:00 PST 2001 
Responsible-Changed-Why:  
Paul's the maintainter of this code IIRC. 
. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25582 
State-Changed-From-To: open->analyzed 
State-Changed-By: iedowse 
State-Changed-When: Wed Mar 7 16:54:21 PST 2001 
State-Changed-Why:  
Paul says that he has been aware of this issue for some time, but 
that he would like to retain the ability to load/unload the ISA 
and PCI parts of the lnc driver separately. Apparently the logic 
in ifconfig(8) for loading interface driver modules is not very 
flexible in this respect. It may be ifconfig that needs to be 
improved to handle such cases correctly. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25582 
State-Changed-From-To: analyzed->suspended 
State-Changed-By: iedowse 
State-Changed-When: Sun Mar 18 09:52:51 PST 2001 
State-Changed-Why:  
I have committed your patch - this may not result in the most 
desirable behaviour, but it will do for now. It avoids the annoying 
warnings and makes lnc consistent with other drivers. Thanks for 
the problem report! 

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

From: "Alexander N. Kabaev" <ak03@gte.com>
To: freebsd-gnats-submit@FreeBSD.org, kabaev@mail.ru
Cc:  
Subject: Re: kern/25582: lnc driver uses wrong driver name
Date: Mon, 29 Oct 2001 11:43:33 -0500

 This PR can be closed. With kldxref introduction, the original problem 
 is non-issue.
 
State-Changed-From-To: suspended->closed 
State-Changed-By: dannyboy 
State-Changed-When: Sun Dec 16 12:11:05 PST 2001 
State-Changed-Why:  
Originator says issue is resolved. 

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