From owner-cvs-src@FreeBSD.ORG Wed Mar 12 16:01:36 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08DFF1065670; Wed, 12 Mar 2008 16:01:36 +0000 (UTC) (envelope-from raj@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F2D5A8FC13; Wed, 12 Mar 2008 16:01:35 +0000 (UTC) (envelope-from raj@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2CG1ZkZ072259; Wed, 12 Mar 2008 16:01:35 GMT (envelope-from raj@repoman.freebsd.org) Received: (from raj@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2CG1ZbG072258; Wed, 12 Mar 2008 16:01:35 GMT (envelope-from raj) Message-Id: <200803121601.m2CG1ZbG072258@repoman.freebsd.org> From: Rafal Jaworowski Date: Wed, 12 Mar 2008 16:01:34 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/boot/common dev_net.c src/sys/boot/uboot/lib console.c copy.c glue.c libuboot.h net.c time.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2008 16:01:36 -0000 raj 2008-03-12 16:01:34 UTC FreeBSD src repository Modified files: sys/boot/common dev_net.c sys/boot/uboot/lib console.c copy.c glue.c libuboot.h net.c time.c Log: Eliminate artificial increasing of 'netdev_opens' counter in loader's net_open(). This was introduced as a workaround long time ago for some Alpha firmware (which is now gone), and actually prevented net_close() to ever be called. Certain firmwares (U-Boot) need local shutdown operations to be performed on a network controller upon transaction end: such platform-specific hooks are supposed to be called via netif_close() (from within net_close()). This change effectively reverts the following CVS commit: sys/boot/common/dev_net.c revision 1.7 date: 2000/05/13 15:40:46; author: dfr; state: Exp; lines: +2 -1 Only probe network settings on the first open of the network device. The alpha firmware takes a seriously long time to open the network device the first time. Also suppress excessive output while netbooting via loader, unless debugging. While there, make sys/boot/uboot more style(9) compliant. Reviewed by: imp Approved by: cognet (mentor) Revision Changes Path 1.16 +11 -8 src/sys/boot/common/dev_net.c 1.2 +5 -0 src/sys/boot/uboot/lib/console.c 1.2 +3 -0 src/sys/boot/uboot/lib/copy.c 1.3 +54 -49 src/sys/boot/uboot/lib/glue.c 1.2 +10 -12 src/sys/boot/uboot/lib/libuboot.h 1.2 +16 -18 src/sys/boot/uboot/lib/net.c 1.2 +2 -0 src/sys/boot/uboot/lib/time.c