From owner-cvs-src-old@FreeBSD.ORG Fri Jan 15 19:07:08 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 901BA1065695 for ; Fri, 15 Jan 2010 19:07:08 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7DE9A8FC1F for ; Fri, 15 Jan 2010 19:07:08 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0FJ78Mb005526 for ; Fri, 15 Jan 2010 19:07:08 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0FJ78ws005525 for cvs-src-old@freebsd.org; Fri, 15 Jan 2010 19:07:08 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <201001151907.o0FJ78ws005525@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Fri, 15 Jan 2010 19:06:47 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/boot/common dev_net.c src/sys/boot/sparc64/loader Makefile X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2010 19:07:08 -0000 marius 2010-01-15 19:06:47 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/boot/common dev_net.c sys/boot/sparc64/loader Makefile Log: SVN rev 202409 on 2010-01-15 19:06:47Z by marius MFC: r201932 - Add code allowing a network device to only be open and closed once by keeping it opened after the first open and closing it via the cleanup handler when NETIF_OPEN_CLOSE_ONCE is defined. Note that due to the fact that the part of r177108 which reverts r60506 and causes the open-close-dance on every file access as the remaining problems with powerpc should be sorted out first, in stable/7 the only difference in behavior between when NETIF_OPEN_CLOSE_ONCE is defined and not currently is that with that macro defined the network device is eventually closed before entering the kernel and before rebooting. - Define NETIF_OPEN_CLOSE_ONCE on sparc64 in order to not keep the network device opened forever, as at least with some firmware versions received packets are DMA'ed to stale memory otherwise. Revision Changes Path 1.15.18.5 +33 -6 src/sys/boot/common/dev_net.c 1.20.2.1 +5 -1 src/sys/boot/sparc64/loader/Makefile