summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate usb_thread_t.imp2007-06-1214-38/+37
|
* Remove USBDEV() macro. We do not need a macro that is defined as itsimp2007-06-1212-55/+46
| | | | only argument. It was used inconsistently in the tree, so remove it.
* clalloc and clfree are useles. Remove them. Remove dead code that'simp2007-06-122-9/+2
| | | | always been dead for years, but has been obfuscated by these macros.
* Add regression test for SSM code.bms2007-06-122-0/+798
|
* Import rewrite of IPv4 socket multicast layer to support source-specificbms2007-06-1226-726/+2311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and protocol-independent host mode multicast. The code is written to accomodate IPv6, IGMPv3 and MLDv2 with only a little additional work. This change only pertains to FreeBSD's use as a multicast end-station and does not concern multicast routing; for an IGMPv3/MLDv2 router implementation, consider the XORP project. The work is based on Wilbert de Graaf's IGMPv3 code drop for FreeBSD 4.6, which is available at: http://www.kloosterhof.com/wilbert/igmpv3.html Summary * IPv4 multicast socket processing is now moved out of ip_output.c into a new module, in_mcast.c. * The in_mcast.c module implements the IPv4 legacy any-source API in terms of the protocol-independent source-specific API. * Source filters are lazy allocated as the common case does not use them. They are part of per inpcb state and are covered by the inpcb lock. * struct ip_mreqn is now supported to allow applications to specify multicast joins by interface index in the legacy IPv4 any-source API. * In UDP, an incoming multicast datagram only requires that the source port matches the 4-tuple if the socket was already bound by source port. An unbound socket SHOULD be able to receive multicasts sent from an ephemeral source port. * The UDP socket multicast filter mode defaults to exclusive, that is, sources present in the per-socket list will be blocked from delivery. * The RFC 3678 userland functions have been added to libc: setsourcefilter, getsourcefilter, setipv4sourcefilter, getipv4sourcefilter. * Definitions for IGMPv3 are merged but not yet used. * struct sockaddr_storage is now referenced from <netinet/in.h>. It is therefore defined there if not already declared in the same way as for the C99 types. * The RFC 1724 hack (specify 0.0.0.0/8 addresses to IP_MULTICAST_IF which are then interpreted as interface indexes) is now deprecated. * A patch for the Rhyolite.com routed in the FreeBSD base system is available in the -net archives. This only affects individuals running RIPv1 or RIPv2 via point-to-point and/or unnumbered interfaces. * Make IPv6 detach path similar to IPv4's in code flow; functionally same. * Bump __FreeBSD_version to 700048; see UPDATING. This work was financially supported by another FreeBSD committer. Obtained from: p4://bms_netdev Submitted by: Wilbert de Graaf (original work) Reviewed by: rwatson (locking), silence from fenner, net@ (but with encouragement)
* Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate fromimp2007-06-1233-137/+130
| | | | usb_port.h. They aren't needed, and are a legacy of this code's past.
* - Document support for Realtek ALC660 and Analog Devices AD1988B.joel2007-06-121-5/+9
| | | | - Fix minor typos.
* Delete description of non-existent options: "-4" and "-6".motoyuki2007-06-121-5/+1
| | | | | | | | | | ntpd's "-4" and "-6" options are described in the original documentation (contrib/ntp/html/ntpd.html). It may be original's doc bug. PR: docs/112642 Submitted by: Seth Hieronymus<shieronymus@speakeasy.net> Discussed with: ume MFC after: 1 week
* Drop the argument to the OUT macro because it can't emityar2007-06-121-7/+7
| | | | | | | anything but the pattern space anyway. Apply style(9) to the macro. Tested with: md5(1)
* Don't forget to clear out the hold space for each subsequent fileyar2007-06-124-5/+20
| | | | | | | | when in -i mode so that each file gets a clean context of its own. Add a regression test for the bug. Tested with: regression tests
* Add cust_pkg() which iteratively tries to install packages.phk2007-06-121-2/+59
| | | | | | Move /usr/local/etc to /etc/local so that installed packages can be frobbed. Use a more compatible 512MB card geometry.
* - Restructure so bindx functions are not done inline to socket optionrrs2007-06-1210-240/+296
| | | | | | | but are a seperate call that can be re-used if needed. - 64 bit issues o re-arrange cookie so it is better 64 bit aligned o For wire level things we need the packed attribute.
* There is a symbolic antonym for REPLACE as a flag to cspace()yar2007-06-121-6/+6
| | | | | | | and mf_fgets(): APPEND. So use it instead of a 0 constant for clarity. Tested with: md5(1)
* The maximum size of the sum of all segment lengths in a given DMA mappingyongari2007-06-122-2/+2
| | | | | | should be 65535 + link layer headers. Pointed out by: gallatin
* Catch up with variable name changes in struct lagg_protos.thompsa2007-06-121-10/+10
|
* Remove duplicate. Was that a bug? :-)philip2007-06-121-5/+0
|
* - add myselfchinsan2007-06-121-0/+3
| | | | Approved by: rafan (mentor)
* - Move some common code out of sched_fork_exit() and back into fork_exit().jeff2007-06-123-30/+20
|
* non-functional cleanupthompsa2007-06-124-142/+108
| | | | | | | - remove dead code - use consistent variable names - gc unused defines - whitespace cleanup
* Solve a complex exit race introduced with thread_lock:jeff2007-06-122-15/+34
| | | | | | | | | | | | | | - Add a count of exiting threads, p_exitthreads, to struct proc. - Increment p_exithreads when we set the deadthread in thread_exit(). - When we thread_stash() a deadthread use an atomic to drop the count. - Spin until the p_exithreads count reaches 0 in thread_wait(). - Lock the last exiting thread momentarily to be certain that it has exited cpu_throw(). - Restructure thread_wait(). It does not need a loop as there will only ever be one thread. Tested by: moose@opera.com Reported by: kris, moose@opera.com
* Nuke duplicated __FBSDID.yongari2007-06-121-4/+0
|
* Add checks for contigmalloc(9) failure.yongari2007-06-121-0/+10
|
* Increase a maximum segment size of DMA to 4096. Previously it usedyongari2007-06-122-2/+4
| | | | | | | | MCLBYTES for the segment size but it used too many Tx descriptors in TSO case. While I'm here adjust maximum size of the sum of all segment lengths in a given DMA mapping to 65535, the maximum size, in bytes, of a IP packet.
* Add nfe(4) to the list of drivers supported by GENERIC kernel.yongari2007-06-122-2/+4
| | | | | | While I'm here comment out nve(4) as nfe(4) will take over. Approved by: re
* Allow nfe(4) override nve(4).yongari2007-06-121-1/+1
|
* Xref altq(4).yongari2007-06-121-1/+2
|
* nfe(4) supports altq(4).yongari2007-06-121-1/+2
|
* Add nfe(4) to the list of device drivers use the miibus interface.yongari2007-06-121-1/+4
|
* Bring overhauled nfe(4) into tree.yongari2007-06-123-909/+2103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o s/printf/device_printf/g o Nuke OpenBSDism. o Nuke NetBSD/OpenBSD specific DMA sync operations.(we don't have a way to sync a single descriptor within a DMA map.) o Remove recursive mutex. o bus_dma(9) clean up. o 40bit DMA address support. o Add protection for Rx map load failure. o Fix a long standing bug for watchdog timeout. [1] o Add additional protections, missing Tx completion interrupt, losing start Tx command, for watchdog timeout. o Switch to taskqueue(9) API to handle interrupts. o Use our own timer for watchdog instead of if_watchdog/if_timer interface. o Advertise VLAN header length/capability correctly to upper layer. o Remove excessive kernel stack consumption in nfe_encap(). o Handle highly fragmented mbuf chains correctly. o Enable etherenet address reprogramming with ifconfig(8). o Add ALTQ/TSO, MSI/MSIX support. o Increased Rx ring to 256 descriptors from 128. o Align Tx/Rx descriptor ring on sizeof(struct nfe_desc64) boundary. o Remove alignment restrictions on Tx/Rx buffers. o Rewritten jumbo frame support code. o Add support for hardware assistend VLAN tag insertion/stripping. o Add support for Tx/Rx flow control based on patches from Peer Chen. [2] o Add a routine that detects whether ethernet address swap routines is required. [3] o Add a workaround that take MAC/PHY out of power down mode. o Add suspend/resume support. o style(9) and code clean up. Special thanks to Shigeaki Tagashira, the original porter of nfe(4), who submitted lots of patches, performed uncountable number of regression tests and maintained nfe(4) for a long time. Without his enthusiastic help and support I could never have completed this overhauling task. The only weak point of nfe(4) compared to nve(4) is instability of manual half-duplex media selection on certain hardwares(auto sensing media type should work for all cases, though). This was a long standing bug of nfe(4) and I still have no idea why it doesn't work on some hardwares. Obtained from: OpenBSD [1] Submitted by: Peer Chen < pchen at nvidia dot com > [2], [3] Reviewed by: Shigeaki Tagashira < shigeaki AT se DOT hiroshima-u DOT ac DOT jp > Tested by: Shigeaki Tagashira, current Discussed with: current Silence from: obrien
* Reset the pointer to the ioctl buffer after it gets changed.thompsa2007-06-121-0/+2
|
* Eliminate now-unused SUSER_ALLOWJAIL arguments to priv_check_cred(); inrwatson2007-06-1244-258/+144
| | | | | | | | | | | | | | | some cases, move to priv_check() if it was an operation on a thread and no other flags were present. Eliminate caller-side jail exception checking (also now-unused); jail privilege exception code now goes solely in kern_jail.c. We can't yet eliminate suser() due to some cases in the KAME code where a privilege check is performed and then used in many different deferred paths. Do, however, move those prototypes to priv.h. Reviewed by: csjp Obtained from: TrustedBSD Project
* - Add a missing PROC_SUNLOCK() in tdsignal()jeff2007-06-111-1/+3
|
* Clean up, and sometimes remove, a number of audit-related implementationrwatson2007-06-113-32/+3
| | | | | | comments. Obtained from: TrutstedBSD Project
* - Move p_ru to the zero'd section of the proc to keep stats accurate.jeff2007-06-111-1/+1
|
* Add CPU_XSCALE_81342 before I forget again.cognet2007-06-111-1/+2
|
* Introduce pmap_kenter_supersection(), which maps 16MB super-sections intocognet2007-06-113-2/+97
| | | | | the kernel pmap. Document a bit more the behavior of the xscale core 3.
* Re-acquire the PROC_SLOCK before calling calcru(), and release it after,cognet2007-06-111-0/+2
| | | | | | since calcru() expects it to be locked. Reviewed by: attilio
* - Validate incoming addresses and sizes for connectx and bindx.rrs2007-06-111-5/+16
| | | | - For non-sys call version pass the msg_flags.
* Bump __FreeBSD_version for TCP LRO support.andre2007-06-111-1/+1
|
* Add reporting and toggling of TCP LRO (large receive offload) support toandre2007-06-112-1/+11
| | | | ifconfig(8).
* Correct corrupt read when the read starts at a non-aligned offset.remko2007-06-111-4/+6
| | | | | | | | PR: kern/77234 MFC After: 1 week Approved by: imp (mentor) Requested by: many many people Submitted by: Andriy Gapon <avg at icyb dot net dot ua>
* Add IFCAP_LRO flag for drivers to announce their TCP Large Receive Offloadandre2007-06-111-0/+1
| | | | capabilities.
* Exclude inet_addr.c from the build.cognet2007-06-111-1/+1
| | | | | | | It only provides inet_aton(), which is already provided by the libc. This causes multiple symbol definitions when linking statically. Reviewed by: darrenr
* Fix a spacing nit.imp2007-06-111-1/+0
|
* Prefer __packed to __attribute__((__packed__)).imp2007-06-111-1/+1
| | | | OK'd by sam@ months ago...
* Exclude wlan_scan_* from PAE like the rest of wlan.thompsa2007-06-111-0/+2
|
* Remove some ioctls that were ill-thought out. There is no usermjacob2007-06-112-128/+14
| | | | | | impact as no softwware using these ioctls was ever committed. Redo locking for ispioctl.
* Move the oversize ethernet frame size check into DIAGNOSTIC,gallatin2007-06-111-0/+2
| | | | | | | | as was proposed when it was originally added. This allows LRO to work on non-DIAGNOSTIC kernels without consuming any mbuf flags. Discussed with: sam
* Create group ftp by default. This is gid 14 as this is the historicalceri2007-06-112-3/+4
| | | | | | | | | | | | id used by sysinstall when enabling anonymous FTP. Change the default group used by sysinstall for setting up anonymous FTP from operator to ftp; there is no reason to use operator and there are potential security issues when doing so. PR: 93284 Approved by: ru (mentor) Reviewed by: simon
* Back out the previous commit which added an M_LRO mbuf flaggallatin2007-06-113-5/+2
| | | | | to defeat the mtu check in ether_input. Mbuf flags are too scarce. Discussed with: sam
OpenPOWER on IntegriCloud