Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2010 16:28:37 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204129 - head/sys/boot/powerpc/ofw
Message-ID:  <201002201628.o1KGSbPO056450@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sat Feb 20 16:28:37 2010
New Revision: 204129
URL: http://svn.freebsd.org/changeset/base/204129

Log:
  Enable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting on
  PowerPC Book-S hardware, which had been broken for a very long time.
  
  Submitted by:	Andreas Tobler
  MFC after:	1 week

Modified:
  head/sys/boot/powerpc/ofw/Makefile

Modified: head/sys/boot/powerpc/ofw/Makefile
==============================================================================
--- head/sys/boot/powerpc/ofw/Makefile	Sat Feb 20 16:23:29 2010	(r204128)
+++ head/sys/boot/powerpc/ofw/Makefile	Sat Feb 20 16:28:37 2010	(r204129)
@@ -56,6 +56,11 @@ CFLAGS+=	-DBOOT_FORTH -I${.CURDIR}/../..
 LIBFICL=	${.OBJDIR}/../../ficl/libficl.a
 .endif
 
+# Avoid the open-close-dance for every file access as some firmwares perform
+# an auto-negotiation on every open of the network interface and thus causes
+# netbooting to take horribly long.
+CFLAGS+=	-DNETIF_OPEN_CLOSE_ONCE
+
 # Always add MI sources
 .PATH:		${.CURDIR}/../../common
 .include	"${.CURDIR}/../../common/Makefile.inc"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002201628.o1KGSbPO056450>