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
Rafal Jaworowski
raj at FreeBSD.org
Wed Mar 12 16:01:36 UTC 2008
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
More information about the cvs-src
mailing list