summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-09-10 20:53:22 +0000
committermarius <marius@FreeBSD.org>2008-09-10 20:53:22 +0000
commit1c6ab85afc0de1e8b733b1378cf1336024da62a1 (patch)
tree0faf8aaa56901e6175d915bc49a3edbca96b96e0 /sys/boot
parent56df8196beaf8caf0540bb740167397da47be3d8 (diff)
downloadFreeBSD-src-1c6ab85afc0de1e8b733b1378cf1336024da62a1.zip
FreeBSD-src-1c6ab85afc0de1e8b733b1378cf1336024da62a1.tar.gz
Revert r177108 and restore r60506 for sparc64 as long as libstand
isn't fixed to only open the network device once and not do a open and close dance on every file access; the firmwares of newer sparc64 machines perform an auto-negotiation with every open which in turn causes netbooting to take horribly long if we open and close the device over and over again.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/dev_net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/boot/common/dev_net.c b/sys/boot/common/dev_net.c
index fcf32e5..5dc1dc3 100644
--- a/sys/boot/common/dev_net.c
+++ b/sys/boot/common/dev_net.c
@@ -145,6 +145,9 @@ net_open(struct open_file *f, ...)
return (error);
}
}
+#if defined(__sparc64__)
+ netdev_opens++;
+#endif
}
netdev_opens++;
f->f_devdata = &netdev_sock;
OpenPOWER on IntegriCloud