1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys
George V. Neville-Neil e162ea60d4 Add a queue to hold packets while we await an ARP reply.
When a fast machine first brings up some non TCP networking program
it is quite possible that we will drop packets due to the fact that
only one packet can be held per ARP entry.  This leads to packets
being missed when a program starts or restarts if the ARP data is
not currently in the ARP cache.

This code adds a new sysctl, net.link.ether.inet.maxhold, which defines
a system wide maximum number of packets to be held in each ARP entry.
Up to maxhold packets are queued until an ARP reply is received or
the ARP times out.  The default setting is the old value of 1
which has been part of the BSD networking code since time
immemorial.

Expose the time we hold an incomplete ARP entry by adding
the sysctl net.link.ether.inet.wait, which defaults to 20
seconds, the value used when the new ARP code was added..

Reviewed by:	bz, rpaulo
MFC after: 3 weeks
2010-11-12 22:03:02 +00:00
..
amd64 Move identical copies of apm_bios.h to sys/x86/include, replace them with 2010-11-11 19:36:21 +00:00
arm Add a GPIO driver for the Gateworks Cambria platform. 2010-11-11 20:18:33 +00:00
boot Correct RAM size of the MPC8555CDS board. 2010-11-11 13:48:48 +00:00
bsm
cam
cddl
compat According to specs for MmAllocateContiguousMemorySpecifyCache() physically 2010-11-11 18:43:31 +00:00
conf MFamd64: (based on) r209957 2010-11-12 20:55:14 +00:00
contrib o) Recognize the Lanner MR-730. 2010-11-08 21:22:55 +00:00
crypto
ddb
dev Fix regression introduced in r215132. Caller always holds a driver 2010-11-12 19:33:13 +00:00
fs Remove unused includes of <sys/mutex.h> and <machine/mutex.h>. 2010-11-09 20:41:10 +00:00
gdb
geom Fix regression introduced in r215088: gpart(8) reports 2010-11-11 12:13:41 +00:00
gnu
i386 MFamd64: (based on) r209957 2010-11-12 20:55:14 +00:00
ia64 - Remove <machine/mutex.h>. Most of the headers were empty, and the 2010-11-09 20:46:41 +00:00
isa
kern This commit implements the SO_USER_COOKIE socket option, which lets 2010-11-12 13:02:26 +00:00
kgssapi
libkern
mips Switch to the new network driver nlge, the old rge driver is deprecated now. 2010-11-10 10:23:39 +00:00
modules Warn users that acpi.ko is deprecated and exit immediately unless the user 2010-11-12 21:11:49 +00:00
net Add a queue to hold packets while we await an ARP reply. 2010-11-12 22:03:02 +00:00
net80211
netatalk
netgraph
netinet Add a queue to hold packets while we await an ARP reply. 2010-11-12 22:03:02 +00:00
netinet6
netipsec
netipx
netnatm
netncp
netsmb
nfs
nfsclient
nfsserver
nlm
opencrypto
pc98 Move identical copies of apm_bios.h to sys/x86/include, replace them with 2010-11-11 19:36:21 +00:00
pci Remove standard PCI configuration space register definitions. 2010-11-08 22:10:51 +00:00
powerpc Partially revert r215182. There appears to be a silicon bug on the 970 2010-11-12 20:26:34 +00:00
rpc
security Fix typos. 2010-11-09 10:59:09 +00:00
sparc64 Enable reservation-based physical memory allocation. Even without the 2010-11-10 17:57:34 +00:00
sun4v Fix a few more places to use cpumask_t rather than 'u_int'. These are 2010-11-11 16:06:47 +00:00
sys Make POLL_ERR and POLL_HUP different. 2010-11-12 15:30:49 +00:00
teken
tools
ufs The softdep_setup_freeblocks() adds worklist items before 2010-11-11 11:54:01 +00:00
vm Enable reservation-based physical memory allocation. Even without the 2010-11-10 17:57:34 +00:00
x86 Move identical copies of apm_bios.h to sys/x86/include, replace them with 2010-11-11 19:36:21 +00:00
xdr
xen
Makefile