summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add a compatibility macro for FreeBSD-4.simokawa2003-10-311-0/+1
|
* Make TUNDEBUG use if_printf instead of printf.brooks2003-10-311-24/+17
|
* Replace a couple printfs with if_printfs.brooks2003-10-311-4/+3
|
* Initialize if_softc and use it in favor of &ipr_softc[ifp->if_unit] tobrooks2003-10-311-3/+4
| | | | get the softc.
* Remove unused lp_unit member from softc.brooks2003-10-301-3/+0
|
* Remove unused FXP_UNIT() macro.brooks2003-10-301-2/+0
|
* ifp->if_name can't be null when we just assigned a static string to it.brooks2003-10-301-5/+0
|
* Overhaul routing table entry cleanup by introducing a new rtexpungesam2003-10-308-74/+134
| | | | | | | | | | | | routine that takes a locked routing table reference and removes all references to the entry in the various data structures. This eliminates instances of recursive locking and also closes races where the lock on the entry had to be dropped prior to calling rtrequest(RTM_DELETE). This also cleans up confusion where the caller held a reference to an entry that might have been reclaimed (and in some cases used that reference). Supported by: FreeBSD Foundation
* style: strcmp() does not return a bool.brooks2003-10-301-1/+1
|
* use a local variable to avoid holding a lock across a call out of viewsam2003-10-301-4/+6
| | | | Supported by: FreeBSD Foundation
* Change the pmap_invalidate_xxx() functions so they test againstpeter2003-10-301-3/+3
| | | | | pmap == kernel_pmap rather than pmap->pm_active == -1. gcc's inliner can remove more code that way. Only kernel_pmap has a pm_active of -1.
* Fixup the sorting of some of the options. DISABLE_P* are still out ofjhb2003-10-301-8/+8
| | | | order to keep all of the opt_pmap.h options together.
* Ensure that mp_ncpus is set to 1 if mp_cpu_probe() fails.jhb2003-10-301-1/+3
|
* Include "opt_pmap.h" so that the DISABLE_P* options are honored.jhb2003-10-302-0/+4
|
* Always export r_gdt and r_idt and give them extern declarations injhb2003-10-308-26/+2
| | | | machine/segments.h.
* There is no way to enter the attach routine twice with the same softcbrooks2003-10-306-185/+173
| | | | | | | without a detach call in between so don't try to deal with that possiability. This is a diff-reduction commit for the upcoming if_xname conversion.
* MFi386: thread specific fpu state optimizationspeter2003-10-301-1/+3
|
* - unlock on error.ume2003-10-301-4/+10
| | | | - don't call malloc with M_WAITOK within lock context.
* Relock mntvnode_mtx if vget fails in vfs_stdsync. The loop iskan2003-10-301-0/+1
| | | | always shoould entered with mutex locked.
* Explain why the lock-free allocation algorithm is safe in our caseharti2003-10-301-0/+18
| | | | | while beeing not safe in the general case. Thanks to David Schultz <das@freebsd.org> for help.
* Add sysctl MIB and loader tunable `hw.acpi.no_reset_video' asiwasaki2003-10-303-0/+17
| | | | the same effect as ACPI_NO_RESET_VIDEO kernel option.
* add management part of address selection policy described inume2003-10-305-0/+227
| | | | | | RFC3484. Obtained from: KAME
* Add support for the VIA 8237 (both PATA and SATA part).sos2003-10-302-80/+104
| | | | Cleanup the SATA support a bit now we are here anyways.
* Reinvent the used-flag for external mbufs. This and the on-card flagharti2003-10-303-19/+56
| | | | | | | | are now in the header of the external buffer itself which allows us to manipulate them in the free routine without having to lock the softc structure or the free list. To get space for these flags the chunk number is reduced to 8 bit which amounts to a maximum of 256 chunks per allocated page. This restriction is now enforced by a CTASSERT.
* - Synchronize access to the swdevt's sw_blist with sw_dev_mtx.alc2003-10-301-20/+20
| | | | - Remove several instances of GIANT_REQUIRED.
* - Synchronize access to swdevhd using sw_dev_mtx.alc2003-10-301-7/+7
| | | | | - Use swp_sizecheck() rather than assignment to swap_pager_full in swaponsomething().
* MFi386: rev 1.451 (jhb): call pmap_kremove() rather than duplicate itpeter2003-10-301-5/+2
|
* MFi386: trap.c rev 1.259: fetch thread mailbox address in page fault trappeter2003-10-301-0/+2
|
* Try to fetch thread mailbox address in page fault trap, so when threaddavidxu2003-10-302-1/+5
| | | | | blocks in page fault hanlder, and upcall thread can be scheduled. It is useful if process is doing lots of mmap based I/O.
* Oops, forgot to save these in the editor. Add CTASSERTS for signal andpeter2003-10-301-0/+10
| | | | context related things.
* Add CTASSERT()'s to check that the sizes of our replicas of the 32 bitpeter2003-10-303-5/+26
| | | | | | | | | | structures come out the right size. Fix the ones that broke. stat32 had some missing fields from the end and statfs32 was broken due to the strange definition of MNAMELEN (which is dependent on sizeof(long)) I'm not sure if this fixes any actual problems or not.
* avoid recursive lock panic by unlocking before calling rtrequest;sam2003-10-291-1/+2
| | | | | | | | this is consistent with other places but will be replaced shortly by a "proper fix" Supported by: FreeBSD Foundation Pain felt by: Jiri Mikulas
* correct LOR by using a local variable to hold resultsam2003-10-291-3/+5
| | | | | | instead of holding a lock while calling out of view Supported by: FreeBSD Foundation
* Don't attempt to destroy the driver mutex when it hasn't yetdeischen2003-10-291-1/+1
| | | | | | been created. This has been sitting in my local tree for far too long; I can't believe noone else has come across this yet.
* Fix a panic that occurs when resuming. For some reason, sc->cur_scp isnjl2003-10-292-0/+7
| | | | | | NULL. Submitted by: Andrew Thompson <andy@fud.org.nz>
* Potential fix for races shutting down callouts when unloadingsam2003-10-291-2/+6
| | | | | | | | | | the module. Previously we grabbed the mutex used by the callouts, then stopped the callout with callout_stop, but if the callout was already active and blocked by the mutex then it would continue later and reference the mutex after it was destroyed. Instead stop the callout first then lock. Supported by: FreeBSD Foundation
* o add locking to protect routing table refcnt manipulationssam2003-10-291-16/+18
| | | | | | | | | | o add some more debugging help for figuring out why folks are getting complaints about releasing routing table entries with a zero refcnt o fix comment that talked about spl's o remove duplicate define of DUMMYNET_DEBUG Supported by: FreeBSD Foundation
* Always queue looped back packets (rather than potentially usingsam2003-10-291-1/+1
| | | | | | | direct dispatch) to avoid extensive kernel stack usage and to avoid directly re-entering the network stack. The latter causes locking problems when, for example, a complete TCP handshake` happens w/o a context switch.
* mark interrupt handlers MPSAFEsam2003-10-293-3/+3
|
* Add a temporary mechanism to disble INTR_MPSAFE from network interfacesam2003-10-291-0/+13
| | | | | drivers. This is prepatory to running more parts of the network system w/o Giant.
* Removed mostly-dead code for setting switchtime after the idle loopbde2003-10-292-11/+2
| | | | | | | | | | | | | | | | | | | | | | clobbers this variable. Long ago, when the idle loop wasn't in a process, it set switchtime.tv_sec to zero to indicate that the time needs to be read after the idle loop finishes. The special case for this isn't needed now that there is an idle process (for each CPU). The time is read in the normal way when the idle process is switched away from. The seconds component of the time is only zero for the first second after the uptime is set, and the mostly-dead code was only executed during this time. (This was slightly broken by using uptimes instead of times relative to the Epoch -- in the original version the seconds component of the time was only 0 for the first second after the Epoch.) In mi_switch(), moved the setting of switchticks to just after the first (and now only) setting of switchtime. This setting used to be delayed since a late setting was needed for the idle case and an early setting was not needed. Now the early setting is needed so that fork_exit() doesn't need to set either switchtime or switchticks. Removed now-completely-rotted comment attached to this. Most of the code described by the comment had already moved to sched_switch().
* Allow sending of more than one raw cell from a single mbuf. Only theharti2003-10-291-8/+11
| | | | | | | | | | | | very first cell in the mbuf should have a cell header word (of which everything except the payload type and the CLP bit is ignored). All other cells should be 48 byte and get the same header as the first cell. This fixes a problem with sending more than 120000 raw cells/sec through an HE155. The card seems to need 2 cell times to DMA the transmit buffer ready queue entry and the transmit buffer descriptor so at 1/3 the link rate the transmit buffer ready queue starts to fill up. Even with this patch it's obviously impossible to send raw cells at link rate.
* Remove a superfluous ) from the previous commit. This was obviouslyharti2003-10-291-1/+1
| | | | a result of the current solar storm.
* Make the maximum number of pages for external mbufs configurable inharti2003-10-293-2/+7
| | | | | | | the kernel environment and accessible as a RO sysctl. Explain that the HE155 will not work in 64-bit/66MHz slots, but may work in 64-bit/33MHz slots.
* add ECN support in layer-3.ume2003-10-2910-54/+186
| | | | | | | | | - implement the tunnel egress rule in ip_ecn_egress() in ip_ecn.c. make ip{,6}_ecn_egress() return integer to tell the caller that this packet should be dropped. - handle ECN at fragment reassembly in ip_input.c and frag6.c. Obtained from: KAME
* Removed sched_nest variable in sched_switch(). Context switches alwaysbde2003-10-293-7/+1
| | | | | | | | | | | | | | | | | begin with sched_lock held but not recursed, so this variable was always 0. Removed fixup of sched_lock.mtx_recurse after context switches in sched_switch(). Context switches always end with this variable in the same state that it began in, so there is no need to fix it up. Only sched_lock.mtx_lock really needs a fixup. Replaced fixup of sched_lock.mtx_recurse in fork_exit() by an assertion that sched_lock is owned and not recursed after it is fixed up. This assertion much match the one in mi_switch(), and if sched_lock were recursed then a non-null fixup of sched_lock.mtx_recurse would probably be needed again, unlike in sched_switch(), since fork_exit() doesn't return to its caller in the normal way.
* Make the value of the HATM_DEBUG symbol the default for the debuggingharti2003-10-293-13/+15
| | | | flags. Introduce a new debugging flag to dump received packets.
* Inline a function that was called only in one place directly into that place.harti2003-10-292-72/+72
| | | | | | Correct a bug when the number of pages for external mbufs was very large. In this case the page number could overflow into the large buffer flag. Make this more unlikley by move that flag further away.
* Alphabetical order for ACPI options broken by adding ACPI_NO_RESET_VIDEO.iwasaki2003-10-292-2/+5
| | | | | | Add short comment about ACPI_NO_RESET_VIDEO into NOTES. Pointed-out by: njl
* We have some space in the external mbufs so use this space forharti2003-10-292-2/+5
| | | | | the external buffer reference count. This saves us a malloc() + free() per small receive mbuf.
OpenPOWER on IntegriCloud