diff options
author | Marius Strobl <marius@FreeBSD.org> | 2008-09-10 20:53:22 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2008-09-10 20:53:22 +0000 |
commit | 4028a367264de6838b3e344c09a03f233b66a187 (patch) | |
tree | 0faf8aaa56901e6175d915bc49a3edbca96b96e0 /sys/boot/common/dev_net.c | |
parent | 9fe27860ffbf7a1abe96a8f79bd2aae4342c3cf3 (diff) | |
download | src-4028a367264de6838b3e344c09a03f233b66a187.tar.gz src-4028a367264de6838b3e344c09a03f233b66a187.zip |
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.
Notes
Notes:
svn path=/head/; revision=182919
Diffstat (limited to 'sys/boot/common/dev_net.c')
-rw-r--r-- | sys/boot/common/dev_net.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/boot/common/dev_net.c b/sys/boot/common/dev_net.c index fcf32e5cb32f..5dc1dc33fe4a 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; |