1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/etc
Kenneth D. Merry 98cb733c67 At long last, commit the zero copy sockets code.
MAKEDEV:	Add MAKEDEV glue for the ti(4) device nodes.

ti.4:		Update the ti(4) man page to include information on the
		TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS kernel options,
		and also include information about the new character
		device interface and the associated ioctls.

man9/Makefile:	Add jumbo.9 and zero_copy.9 man pages and associated
		links.

jumbo.9:	New man page describing the jumbo buffer allocator
		interface and operation.

zero_copy.9:	New man page describing the general characteristics of
		the zero copy send and receive code, and what an
		application author should do to take advantage of the
		zero copy functionality.

NOTES:		Add entries for ZERO_COPY_SOCKETS, TI_PRIVATE_JUMBOS,
		TI_JUMBO_HDRSPLIT, MSIZE, and MCLSHIFT.

conf/files:	Add uipc_jumbo.c and uipc_cow.c.

conf/options:	Add the 5 options mentioned above.

kern_subr.c:	Receive side zero copy implementation.  This takes
		"disposable" pages attached to an mbuf, gives them to
		a user process, and then recycles the user's page.
		This is only active when ZERO_COPY_SOCKETS is turned on
		and the kern.ipc.zero_copy.receive sysctl variable is
		set to 1.

uipc_cow.c:	Send side zero copy functions.  Takes a page written
		by the user and maps it copy on write and assigns it
		kernel virtual address space.  Removes copy on write
		mapping once the buffer has been freed by the network
		stack.

uipc_jumbo.c:	Jumbo disposable page allocator code.  This allocates
		(optionally) disposable pages for network drivers that
		want to give the user the option of doing zero copy
		receive.

uipc_socket.c:	Add kern.ipc.zero_copy.{send,receive} sysctls that are
		enabled if ZERO_COPY_SOCKETS is turned on.

		Add zero copy send support to sosend() -- pages get
		mapped into the kernel instead of getting copied if
		they meet size and alignment restrictions.

uipc_syscalls.c:Un-staticize some of the sf* functions so that they
		can be used elsewhere.  (uipc_cow.c)

if_media.c:	In the SIOCGIFMEDIA ioctl in ifmedia_ioctl(), avoid
		calling malloc() with M_WAITOK.  Return an error if
		the M_NOWAIT malloc fails.

		The ti(4) driver and the wi(4) driver, at least, call
		this with a mutex held.  This causes witness warnings
		for 'ifconfig -a' with a wi(4) or ti(4) board in the
		system.  (I've only verified for ti(4)).

ip_output.c:	Fragment large datagrams so that each segment contains
		a multiple of PAGE_SIZE amount of data plus headers.
		This allows the receiver to potentially do page
		flipping on receives.

if_ti.c:	Add zero copy receive support to the ti(4) driver.  If
		TI_PRIVATE_JUMBOS is not defined, it now uses the
		jumbo(9) buffer allocator for jumbo receive buffers.

		Add a new character device interface for the ti(4)
		driver for the new debugging interface.  This allows
		(a patched version of) gdb to talk to the Tigon board
		and debug the firmware.  There are also a few additional
		debugging ioctls available through this interface.

		Add header splitting support to the ti(4) driver.

		Tweak some of the default interrupt coalescing
		parameters to more useful defaults.

		Add hooks for supporting transmit flow control, but
		leave it turned off with a comment describing why it
		is turned off.

if_tireg.h:	Change the firmware rev to 12.4.11, since we're really
		at 12.4.11 plus fixes from 12.4.13.

		Add defines needed for debugging.

		Remove the ti_stats structure, it is now defined in
		sys/tiio.h.

ti_fw.h:	12.4.11 firmware.

ti_fw2.h:	12.4.11 firmware, plus selected fixes from 12.4.13,
		and my header splitting patches.  Revision 12.4.13
		doesn't handle 10/100 negotiation properly.  (This
		firmware is the same as what was in the tree previously,
		with the addition of header splitting support.)

sys/jumbo.h:	Jumbo buffer allocator interface.

sys/mbuf.h:	Add a new external mbuf type, EXT_DISPOSABLE, to
		indicate that the payload buffer can be thrown away /
		flipped to a userland process.

socketvar.h:	Add prototype for socow_setup.

tiio.h:		ioctl interface to the character portion of the ti(4)
		driver, plus associated structure/type definitions.

uio.h:		Change prototype for uiomoveco() so that we'll know
		whether the source page is disposable.

ufs_readwrite.c:Update for new prototype of uiomoveco().

vm_fault.c:	In vm_fault(), check to see whether we need to do a page
		based copy on write fault.

vm_object.c:	Add a new function, vm_object_allocate_wait().  This
		does the same thing that vm_object allocate does, except
		that it gives the caller the opportunity to specify whether
		it should wait on the uma_zalloc() of the object structre.

		This allows vm objects to be allocated while holding a
		mutex.  (Without generating WITNESS warnings.)

		vm_object_allocate() is implemented as a call to
		vm_object_allocate_wait() with the malloc flag set to
		M_WAITOK.

vm_object.h:	Add prototype for vm_object_allocate_wait().

vm_page.c:	Add page-based copy on write setup, clear and fault
		routines.

vm_page.h:	Add page based COW function prototypes and variable in
		the vm_page structure.

Many thanks to Drew Gallatin, who wrote the zero copy send and receive
code, and to all the other folks who have tested and reviewed this code
over the years.
2002-06-26 03:37:47 +00:00
..
defaults Add a couple of variables for rc.d 2002-06-13 22:27:31 +00:00
etc.alpha Mention that terminal type vt220 will work better if one needs 2002-04-17 10:42:41 +00:00
etc.amd64 Mention that terminal type vt220 will work better if one needs 2002-04-17 10:42:41 +00:00
etc.i386 Mention that terminal type vt220 will work better if one needs 2002-04-17 10:42:41 +00:00
etc.ia64 Mention that terminal type vt220 will work better if one needs 2002-04-17 10:42:41 +00:00
etc.sparc64 Mention that terminal type vt220 will work better if one needs 2002-04-17 10:42:41 +00:00
isdn update german national holidays file for 2002, 2003 and 2004 2002-04-13 12:23:38 +00:00
kerberosIV
mail Add a new make.conf knob, SENDMAIL_MAP_PERMS, which specifies the 2002-05-24 01:46:39 +00:00
mtree The previous delta introduced /var/empty, for use by openssh-portable, 2002-06-24 18:31:47 +00:00
namedb Install PROTO.localhost-v6.rev. 2002-02-06 04:46:07 +00:00
pam.d We don't use this any more. 2002-06-19 20:01:25 +00:00
periodic Temporarily change our umask to 066 so that the potential creation 2002-05-17 14:05:08 +00:00
ppp Put a complete set of pppd(8) sample configuration files in 2002-01-29 01:10:47 +00:00
rc.d Fix the amd invocation to honor the amd_flags setting. 2002-06-24 19:50:56 +00:00
root
sendmail Change the default permissions for the sendmail statistics file to 0640 2002-05-24 01:44:53 +00:00
amd.map Time to enter modern age and default to NFS version 3. 2002-05-15 22:24:29 +00:00
apmd.conf
auth.conf
crontab
csh.cshrc
csh.login
csh.logout
dhclient.conf
disktab
dm.conf
fbtab
ftpusers Include 'www' in the list of forbidden ftp users. 2002-05-07 11:07:39 +00:00
gettytab
group Add an sshd user and group for the OpenSSH privilege separation code. 2002-06-23 20:41:06 +00:00
hosts
hosts.allow Enable TCP_WRAPPERs for the NIS server. The protection afforded is 2002-02-06 20:39:36 +00:00
hosts.equiv
hosts.lpd
inetd.conf Add an IPv6 sample line for tftpd. 2002-04-11 17:17:28 +00:00
locale.alias Actually make aliases for ru_SU locales. 2002-01-08 15:30:56 +00:00
locale.deprecated MF4: sync with RELENG_4 version as much as possible. 2002-05-16 08:06:07 +00:00
login.access
login.conf Fix typo. '|' looks a lot like 'l' in my xterm font. 2002-03-01 15:42:27 +00:00
MAKEDEV At long last, commit the zero copy sockets code. 2002-06-26 03:37:47 +00:00
MAKEDEV.local
Makefile Make NO_OPENSSL actually imply NO_OPENSSH, as documented in make.conf(5). 2002-06-21 08:54:03 +00:00
man.alias
master.passwd Previous commit was just a tad too hasty, the sshd peudo-user's home 2002-06-23 20:46:44 +00:00
minfree
modems
moduli Import OpenBSD's moduli file. 2002-03-21 21:43:25 +00:00
motd
netconfig
netstart
network.subr Cosmetic changes to the previous commit, bringing it closer to what I 2002-04-11 22:06:27 +00:00
networks
newsyslog.conf Change the default permissions for the sendmail statistics file to 0640 2002-05-24 01:44:53 +00:00
nls.alias Add forgotten alias for ru_SU.ISO8859-5 2002-01-08 19:07:03 +00:00
nsmb.conf Bring in changes from smbfs-1.4.4. 2002-04-22 16:18:36 +00:00
opieaccess
pccard_ether
phones
printcap
profile
protocols Consistancy, file system > filesystem 2002-05-16 02:10:03 +00:00
rc Add the final bits that allow the use of rc.d. Note that you can toggle 2002-06-13 22:30:02 +00:00
rc.atm
rc.devfs Another good suggestion from Bruce, only create links if the 2002-06-19 05:35:16 +00:00
rc.diskless1 Utilize dhcp information in the kernel environment if we don't have 2002-04-22 21:42:18 +00:00
rc.diskless2 Create sendmail required directories if sendmail is enabled. 2002-06-22 19:44:25 +00:00
rc.firewall Bring rc.firewall{,6} more in line with the word and spirit of 2002-02-21 13:14:19 +00:00
rc.firewall6 Bring rc.firewall{,6} more in line with the word and spirit of 2002-02-21 13:14:19 +00:00
rc.initdiskless Utilize dhcp information in the kernel environment if we don't have 2002-04-22 21:42:18 +00:00
rc.isdn
rc.network Cosmetic changes to the previous commit, bringing it closer to what I 2002-04-11 22:06:27 +00:00
rc.network6 Now, you can specify "" or "NONE" for ipv6_network_interfaces to 2002-04-06 15:15:43 +00:00
rc.pccard
rc.resume
rc.sendmail Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
rc.serial Correct default value of drainwait: it should be 300 seconds, not forever. 2002-04-23 08:26:50 +00:00
rc.shutdown Add the final bits that allow the use of rc.d. Note that you can toggle 2002-06-13 22:30:02 +00:00
rc.subr Bring this up to date with the latest NetBSD bits. Also add some bits of 2002-06-13 22:19:42 +00:00
rc.suspend
rc.syscons Try handling lack of syscons (for diskless boot, or other) by 2002-06-16 20:59:16 +00:00
rc.sysctl Distinguish between first and last passes of rc.sysctl, and only set 2002-03-17 20:14:11 +00:00
remote
rpc
services After getting IANA to fix a typo in their port assignments, add 2002-02-26 02:36:49 +00:00
shells
sysctl.conf
syslog.conf Per discussion on current: Don't spam root with syslog messages. 2002-04-06 11:22:01 +00:00
termcap.small
usbd.conf Do vidcontrol -m on after starting moused for a usb mouse. 2002-06-18 07:50:16 +00:00