summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Abstract "is a particular SLIP unit free" check behind slisunitfree(),rwatson2004-03-311-12/+18
| | | | and use that instead of manual list searches in a couple of places.
* Fix a bug with preloaded image -- for some reason [that i don'tluigi2004-03-311-14/+3
| | | | | | | | | completely understand], md_takeroot() runs before md_preloaded(), rendering both useless. As a fix, move the body (effectively one line!) of md_takeroot() into md_preloaded(), and get rid of the stuff that has become useless. Bug and fix reported 10 days ago on -current, no reply.
* Raise WARNS level to 2.des2004-03-311-0/+1
|
* Deal with aliasing warnings.des2004-03-314-181/+63
| | | | | Reviewed by: ru Approved by: silence on the lists
* Under a heavy RX load, at least with D-Link DFE-550TX adapters,ru2004-03-311-1/+18
| | | | | | | | | | | | | | | | | | | the driver's RX ring head may fall behind the chip, causing the stuck traffic, disordered packets, etc. Work around this by adopting the technique of resyncing RX head used in dc(4) and xl(4) drivers, but do it in a slightly different place to reduce the number of resyncs needed. Also, set the NIC's RX polling period to a more meaningful value, to stop overloading the PCI bus (this also reduces the number of resyncs by a factor of 3 or more in a long run; the actual number is very dependent on a nature of the traffic). Maintain the statistics counter as the hw.ste_rxsyncs sysctl. In cooperation with: Vsevolod Lobko OK'ed by: ambrisko MFC after: 5 days
* Added polling(4) support for ste(4).ru2004-03-312-3/+80
| | | | MFC after: 5 days
* Moved comments on 3ware 9000 series RAID controller driver options fromvkashyap2004-03-312-3/+10
| | | | options to NOTES.
* Staticize pnp methods, style fixes. Remove unused variable to unbreaknjl2004-03-312-23/+17
| | | | kernel build.
* Add ACPI path in location string for ACPI namespace aware PCI device.takawata2004-03-311-1/+20
|
* Add an interface to pass an argument to the resource parsing functions.njl2004-03-313-7/+9
| | | | | | | | | | | This is just groundwork for changing sysresource behavior. PR: Submitted by: Reviewed by: Approved by: Obtained from: MFC after:
* Style fix.takawata2004-03-311-39/+49
| | | | Pointed out by: njl
* Add more DLT types required by libpcap 0.8.3.bms2004-03-311-0/+52
| | | | Maintain numeric sort order.
* Update system bpf headers for libpcap 0.8.3.bms2004-03-311-1/+58
| | | | Maintain listing of DLT link types in numeric order.
* Support the D-Link DGE-530T. Mine appears to have a blank eeprom, so assumemckay2004-03-314-2/+56
| | | | | | | | | | they all do and handle that without alarming the user. Also pull in a bit of defensive code from OpenBSD that triggers when a card is recognised but not properly classified as either Genesis or Yukon. Not that I could ever have needed this. :-) Obtained from: OpenBSD/NetBSD (partially) MFC after: 2 weeks
* Give in to the oblique nagging and move AAC and AHC/AHD comments out ofscottl2004-03-312-42/+34
| | | | /sys/conf/options and into /sys/conf/NOTES
* Remove unused variable.julian2004-03-311-2/+0
|
* The end argument to bus_alloc_resource() should have been ~0 andgrehan2004-03-311-2/+1
| | | | | | | not ~1, but the call has been switched over to bus_alloc_resource_any() which has the same effect. Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
* In sofree(), avoid nested declaration and initialization inrwatson2004-03-311-1/+2
| | | | | | | | declaration. Observe that initialization in declaration is frequently incompatible with locking, not just a bad idea due to style(9). Submitted by: bde
* - Add an optimized page copy function for use by pmap_copy_page(). It isalc2004-03-313-3/+30
| | | | | roughly four times faster than bcopy() for uncached pages. - Sort the function prototypes in md_var.h.
* Export uipc_connect2() from uipc_usrreq.c instead of unp_connect2(),rwatson2004-03-314-5/+6
| | | | | | | | | | and consume that interface in portalfs and fifofs instead. In the new world order, unp_connect2() assumes that the unpcb mutex is held, whereas uipc_connect2() validates that the passed sockets are UNIX domain sockets, then grabs the mutex. NB: the portalfs and fifofs code gets down and dirty with UNIX domain sockets. Maybe this is a bad thing.
* By default, ich4 has NAMBAR and NABMBAR i/o spaces asmatk2004-03-311-1/+12
| | | | | | | | read-only. Need to enable "legacy support", by poking into pci config space. (comment from the patch) Submited by: Autrijus Tang <autrijus@autrijus.org> Approved by: tanimura (mentor)
* o add support for controlling the power of transmitted framessam2004-03-305-0/+54
| | | | | | | o add support for controlling the 11g protection mechanism used to protect OFDM frames in a mixed 11b/g network Reviewed by: imp
* Only call if_init when doing SIOCSIFADDR if the interface is not markedsam2004-03-301-0/+60
| | | | | | up (IFF_UP). This eliminates extraneous AP scanning. Reviewed by: imp
* Switch ste_encap() over to using m_defrag().ru2004-03-301-14/+2
| | | | | | | | No functional change, the previous ste_encap() was correct WRT long mbuf chains; this just reduces code duplication. MFC after: 3 days Prodded by: ambrisko
* Added options for 3ware 9000 series RAID controller driver (twa).vkashyap2004-03-301-0/+4
|
* Shut up a couple of annoying gcc warnings. Do not enclose the fixes withmlaier2004-03-301-14/+16
| | | | | | | | #ifdefs in order to loop it back to OpenBSD after the next import. There are a some implicit asserts involved which might be better spelled out explicitly (af == AF_INET ...) Approved by: bms(mentor)
* Replace td2 with td on the assumption that this was a typo. This should atbenno2004-03-302-2/+2
| | | | | | | least unbreak the build. Pointy hat to: peter Not tested either by: benno
* The VLAN TCI field should be operated in network byte order.ru2004-03-301-2/+2
| | | | | | | This fixes the VLAN support for nge(4). Reported by: Jacob S. Barrett MFC after: 3 days
* White space and wording changes to init_param3().alc2004-03-301-5/+3
| | | | Mostly submitted by: bde
* Disable serialize_methods and enable _OSI support by default. The formernjl2004-03-301-5/+14
| | | | | | is necessary because some IBMs use recursive methods (pointed out by Robert Moore from Intel). The latter was a typo on my part. It was disabled by default when it should have been enabled.
* Fixed a style bug in previous commit (misformatted comment). Fixedbde2004-03-301-3/+4
| | | | | some nearby bugs (rotted and missing comments). Use similar wording for describing broken options.
* Catch all cases where bread() returns an error and a valid *bp, and releasescottl2004-03-302-6/+11
| | | | | | the *bp. Obtained from: DragonFlyBSD
* Initial check-in of the device driver for 3ware's 9000 seriesvkashyap2004-03-3013-0/+29298
| | | | | PATA/SATA RAID controllers. This driver is a SIM under CAM, and so, behaves like a driver for a SCSI controller.
* Prefer NULL to 0 when testing and assigning pointer values.rwatson2004-03-301-56/+57
|
* Shorten some XXXKSE commentrypeter2004-03-291-4/+2
|
* Kill some XXXKSE's. vnlru/syncer are single threaded.peter2004-03-291-3/+2
|
* Clean up the stub fake vnode locking implemenations. The main reason thispeter2004-03-295-166/+11
| | | | | | | | | | | | stuff was here (NFS) was fixed by Alfred in November. The only remaining consumer of the stub functions was umapfs, which is horribly horribly broken. It has missed out on about the last 5 years worth of maintenence that was done on nullfs (from which umapfs is derived). It needs major work to bring it up to date with the vnode locking protocol. umapfs really needs to find a caretaker to bring it into the 21st century. Functions GC'ed: vop_noislocked, vop_nolock, vop_nounlock, vop_sharedlock.
* Add per-softc locking to if_tun:rwatson2004-03-291-6/+66
| | | | | | | | | | | | | | - Add tun_mtx to tun_softc. Annotate what is (and isn't) locked by it. - Lock down tun_flags, tun_pid. - In the output path, cache the value of tun_flags so it's consistent when processing a particular packet rather than re-reading the field. - In general, use unlocked reads for debugging. - Annotate a couple of places where additional unlocked reads may be possible. - Annotate that tun_pid is used as a bug in tunopen(). if_tun is now largely MPSAFE, although questions remain about some of the cdevsw fields and how they are synchronized.
* Bring these files closer to style(9) conformance by comparing arobert2004-03-292-2/+2
| | | | dereferenced character pointer to '\0' instead of using the ! operator.
* Eliminate support for FreeBSD 3.x and earlier now that we're in theimp2004-03-291-203/+0
| | | | glide path for the 5.x branch.
* Finish tidying up a couple of leftovers from the KSTACK_PAGES stuff. Somepeter2004-03-294-12/+6
| | | | files still #included the opt_ file. powerpc hadn't been updated yet.
* Lock down if_tun global variables using a new mutex, tunmtx. As withrwatson2004-03-291-11/+31
| | | | | | other pseudo-interfaces, break out tear-down of a softc into a separate tun_destroy() function, and invoke that from the module unloader. Hold tunmtx across manipulations of the global softc list.
* Use a common return path for filt_soread() and filt_sowrite() torwatson2004-03-291-16/+20
| | | | | | | simplify the impact of locking on these functions. Submitted by: sam Sponsored by: FreeBSD Foundation
* In sofree(), moving caching of 'head' from 'so->so_head' to later inrwatson2004-03-291-2/+2
| | | | | the function once it has been determined to be non-NULL to simplify locking on an earlier return.
* If debug.mpsafenet, initialize UNIX domain socket timeouts as MPSAFE;rwatson2004-03-291-2/+11
| | | | otherwise, assert Giant in the callouts.
* Add a comment about time stamper.nyan2004-03-293-3/+3
| | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* This commit was generated by cvs2svn to compensate for changes in r127563,des2004-03-291-5/+5
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Synch with NetBSD: avoid "unused parameter" warning.des2004-03-291-5/+5
| |
* | Conditionally acquire Giant when entering the sockets layer via therwatson2004-03-291-31/+31
| | | | | | | | | | socket-specific system calls based on debug.mpsafenet, rather than acquiring Giant unconditionally.
* | MFi386: Use the BSD madvise() syscall implementation for Linux binarybms2004-03-295-8/+3
| | | | | | | | | | | | emulation, instead of treating it as an unimplemented syscall. Requested by: marcel
OpenPOWER on IntegriCloud