Subject: Re: configuring se0 device
To: Thomas Carlson <tcarlson@myback40.com>
From: Allen Briggs <briggs@netbsd.org>
List: port-mac68k
Date: 09/08/2006 12:34:38
--FFoLq8A0u+X9iRU8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Sep 08, 2006 at 05:05:32AM -0700, Thomas Carlson wrote:
> Configuring network interfaces:  se0se0:  device enable failed

What are you doing when you get that?  Booting?
Are you building you own kernel?

It looks like it won't let you set the IP address more than once.
I have never used one of these, but I think that's wrong.  If you're
building your own kernels, try the attached patch.

-allen

-- 
Allen Briggs  |  http://www.ninthwonder.com/~briggs/  |  briggs@ninthwonder.com

--FFoLq8A0u+X9iRU8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="se.diff"

Index: if_se.c
===================================================================
RCS file: /cvsroot/src/sys/dev/scsipi/if_se.c,v
retrieving revision 1.61
diff -p -u -r1.61 if_se.c
--- if_se.c	30 Mar 2006 16:09:28 -0000	1.61
+++ if_se.c	8 Sep 2006 16:34:25 -0000
@@ -997,9 +997,11 @@ se_ioctl(ifp, cmd, data)
 	switch (cmd) {
 
 	case SIOCSIFADDR:
-		if ((error = se_enable(sc)) != 0)
-			break;
-		ifp->if_flags |= IFF_UP;
+		if ((ifp->if_flags & IFF_UP) == 0) {
+			if ((error = se_enable(sc)) != 0)
+				break;
+			ifp->if_flags |= IFF_UP;
+		}
 
 		if ((error = se_set_media(sc, CMEDIA_AUTOSENSE) != 0))
 			break;

--FFoLq8A0u+X9iRU8--