Commit Graph

133630 Commits

Author SHA1 Message Date
mycroft 5283ca74ad Fix two problems in our TCP stack:
1) If an echoed RFC 1323 time stamp appears to be later than the current time,
   ignore it and fall back to old-style RTT calculation.  This prevents ending
   up with a negative RTT and panicking later.

2) Fix NewReno.  This involves a few changes:

   a) Implement the send_high variable in RFC 2582.  Our implementation is
      subtly different; it is one *past* the last sequence number transmitted
      rather than being equal to it.  This simplifies some logic and makes
      the code smaller.  Additional logic was required to prevent sequence
      number wraparound problems; this is not mentioned in RFC 2582.

   b) Make sure we reset t_dupacks on new acks, but *not* on a partial ack.
      All of the new ack code is pushed out into tcp_newreno().  (Later this
      will probably be a pluggable function.)  Thus t_dupacks keeps track of
      whether we're in fast recovery all the time, with Reno or NewReno, which
      keeps some logic simpler.

   c) We do not need to update snd_recover when we're not in fast recovery.
      See tech-net for an explanation of this.

   d) In the gratuitous fast retransmit prevention case, do not send a packet.
      RFC 2582 specifically says that we should "do nothing".

   e) Do not inflate the congestion window on a partial ack.  (This is done by
      testing t_dupacks to see whether we're still in fast recovery.)

This brings the performance of NewReno back up to the same as Reno in a few
random test cases (e.g. transferring peer-to-peer over my wireless network).
I have not concocted a good test case for the behavior specific to NewReno.
2005-01-26 21:49:27 +00:00
jmcneill 9c40186bce Add support functions for capturing and restoring PCI configuration
registers for power management code.
2005-01-26 21:49:00 +00:00
jmcneill 109219993b Fixup ACPI wakecode on i386. This (along with some PCI power management
hooks) allows my Latitude D600 to recover from S3 sleep.

acpi_wakeup.c changes from lha@:
  http://people.su.se/~lha/patches/netbsd/acpi-wakeup-1
2005-01-26 21:46:38 +00:00
kleink 9ce91047cd Clean up the array of audio_formats supported. 2005-01-26 21:28:55 +00:00
kleink 3d7886ed58 MPC601: Use RTC instead of TB. (While I'm here, update these to use
the inline versions from <powerpc/cpu.h>).
2005-01-26 20:51:47 +00:00
he 0429525c8e The ANSIfication apparently revealed a use of netif_attach() with a
missing argument.  (It doesn't appear to be used, though, so this should
be a functional NOOP, except for fixing the build problem.)
2005-01-26 20:34:50 +00:00
he 6012a9f72d Make forward declaration and actual function definitions consistent.
Some of the functions changed signature in the previous commit.
2005-01-26 20:32:27 +00:00
he bee4200faa Preserve the const qualifier even if we cast the "from" argument in the
memcpy() and memmove() inline functions.
2005-01-26 15:53:52 +00:00
wiz 15f1332a67 Sync with manpage (add -W, sort). 2005-01-26 13:42:07 +00:00
wiz 2ad86c0bf3 Sort options. Remove some unnecessary Bk/Ek. Add some commas. 2005-01-26 13:41:47 +00:00
simonb 048c86fdf0 Add a "wide" mode output (selected with -W) to show more information
about memory pools, including pool page size, flags and utilisation.
2005-01-26 13:07:32 +00:00
fvdl 5ccd9c2654 Don't print a message when there's no interrupt to be handled, since this
can happen when one is shared. Also, don't claim it in that case.

Make some printfs more consistent.
2005-01-26 12:59:06 +00:00
yamt f6e331ee7c nfs_readdirrpc, nfs_readdirplusrpc:
avoid infinite loops when getting readdir response without
any entries or eof.  PR/28971.
2005-01-26 10:33:54 +00:00
yamt 72d6e88acf handle a really empty directory, which doesn't have even the dot entry. 2005-01-26 10:30:58 +00:00
wiz ea028fde5d From groff CVS:
2005-01-25  Werner LEMBERG
        * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
        NetBSD PR bin/29114.
2005-01-26 10:25:09 +00:00
christos edf98457e5 sync with reality. 2005-01-26 09:04:49 +00:00
wrstuden e384a44e9d Extend fsync_range(2) to support the FDISKSYNC flag, which requests
that the sync be propogated out through the disk drive caches.
2005-01-25 23:55:20 +00:00
briggs d9b6766216 Ensure i/o commands are allocated on 16-byte boundary by allocating 15
extra bytes and adjusting array starts.
Issue pointed out on port-macppc by Michael Lorenz.

Also remove extra print of the device name on attach().
2005-01-25 19:05:22 +00:00
matt 53fdea69cb Switch to using ifa for ifaddr's instead of ia (which are traditionally
used for in_ifaddr's) which could lead to confusion.
2005-01-25 17:22:08 +00:00
jmmv 51b5451e34 Capture incomplete packets coming from the card, as this driver doesn't
support this feature.  This avoids multiple crashes that I've had in the
past.  Also ensure that packets are not empty when DIAGNOSTIC is set.

However, this is just another sanity check of the received packets, but
does not address the real problem.  The issue seems to be the following:
if the card receives data while doing a reset (vr_init), it later finds
a bunch of empty packets in the receive ring.

This explains the crashes I've hit: running a program which needs
promiscuous mode (dhclient) while the card was already running in
that mode (tcpdump).  In this situation, it's easy that the second
reset receives stuff from the network.

Unfortunately, I don't know why the card is producing these packets...

While here, fix a typo in a comment.
2005-01-25 17:02:09 +00:00
drochner 613f1d9cdb Hmm - vax is different. sendsig_sigcontext() is for __mips only.
Should fix build error found by Havard Eidnes.
2005-01-25 14:56:09 +00:00
yamt 3fe3f80448 yamt-km branch. 2005-01-25 13:14:56 +00:00
yamt a7b5d8f567 nfs_check_wccdata: comment. 2005-01-25 12:20:32 +00:00
tron ed9b5b2073 Fix cut and paste error in last commit. 2005-01-25 11:20:37 +00:00
ragge 9bb19bb2e0 Do not cast simple_lock() to (void). It may be a do { } while() macro,
and then compilation fails.  Found by Håvard Eidnes.
2005-01-25 09:57:15 +00:00
drochner 7d0567768c -in the read-ahead code, avoid to issue read requests at/past EOF
-because noone should request reads past EOF, or writes past EOF which
 are not explicitely marked as file-extending (PGO_PASTEOF), turn
 a boundary check into a KASSERT
approved by Chuck Silvers
2005-01-25 09:50:31 +00:00
wiz 1eef56ee01 Bump date for previous two, and restore part of sentence
that got lost in v1.261. Drop trailing whitespace.
2005-01-25 01:59:07 +00:00
wiz a225e4032b Bump date for another supported card. 2005-01-25 01:54:29 +00:00
wiz 93f4ac130d Fix a double word, and improve mark up in FILES section. From jmc@openbsd. 2005-01-25 01:39:57 +00:00
matt 1dfcdea23d Regen. 2005-01-25 00:55:25 +00:00
matt 2d074b9231 Add additional PCI Device IDs for ATI Radeon 9200 2005-01-25 00:55:00 +00:00
rumble bd6d6c9a81 INET is not required. 2005-01-25 00:53:03 +00:00
joff 79f8908d72 It seems on some archs size_t is unsigned int and on others size_t is
unsigned long.  Cast sizeof() to unsigned long in printf()'s so it can
always work regardless.
2005-01-24 22:40:00 +00:00
matt 691566cdec Initialize zsconschannel to -1 so that it can't matched unless zscninit
is explicitly called to set it up.
2005-01-24 21:39:15 +00:00
dbj d681cb1ea9 check _KERNEL_OPT instead of !_LKM to conditionalize opt includes 2005-01-24 21:34:48 +00:00
dbj 208b0b3a89 clear p->p_cwdi of exiting processes and
avoid dereferencing invalid p_cwdi in checkdirs
this fixes a race condition between exiting processes and mount
see discussion on tech-kern:
 http://mail-index.netbsd.org/tech-kern/2004/10/04/0006.html
 http://mail-index.netbsd.org/tech-kern/2004/10/08/0005.html
2005-01-24 21:27:02 +00:00
matt 027c11539b Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them. 2005-01-24 21:25:09 +00:00
rumble 4d1829e17f Document SOFTDEP and UFS_DIRHASH options. 2005-01-24 19:08:23 +00:00
shige 3ad343e546 Add OpenBlockS266 GPIO LED Driver. 2005-01-24 18:47:37 +00:00
rumble ae7309fcd9 Mention dirhash at suggestion of xtraeme@. 2005-01-24 16:57:32 +00:00
is 909ba1f5de Fixes by Klaus Klein. 2005-01-24 16:57:21 +00:00
sketch 9cc1b26000 + AYT (are you there), inspired by telnet and sometimes used for online chats. 2005-01-24 16:27:58 +00:00
cube 9c61428178 Install tap(4) LKM. 2005-01-24 15:50:52 +00:00
is 0c23284a1c Don't be confused with trigraphs.
EXEC_ELF -> EXEC_ELF32
2005-01-24 15:49:29 +00:00
pooka 56876e818a .Nm siginfo_t -> .Nm siginfo
Makes the manual page name match the whatis database.

ok from wiz
2005-01-24 13:08:35 +00:00
simonb 0bcf992248 Fix a couple of comments. 2005-01-24 11:54:51 +00:00
simonb c13bbf038d Make a comment line up nicely. 2005-01-24 10:38:47 +00:00
drochner 7c10815d09 use sendsig_sigcontext() directly instead of the generic sendsig() 2005-01-24 10:08:02 +00:00
drochner 50ed6c7cf3 -remove definition of "struct sigframe" -- haven't found a use of it
(should fix build problems w/o COMPAT_16 reported by Markus W Kilbinger
  per PR port-mips/29041 and by Havard Eidnes)
-further shuffle COMPAT_* conditionals to allow COMPAT_ULTRIX
 w/o COMPAT_16
2005-01-24 10:03:57 +00:00
wiz a8921bf654 Fix Dd string; fix case in a macro; sort list of supported devices;
mark up all authors; fix case in "NetBSD".
2005-01-24 09:04:12 +00:00