summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* In a multiprocessor, the PG_W bit in the pte must be changed atomically.alc2004-06-122-3/+4
| | | | | | | Otherwise, the setting of the PG_M bit by one processor could be lost if another processor is simultaneously changing the PG_W bit. Reviewed by: tegge@
* Switch to using the "neworder" for rotating log files, by default. Thegad2004-06-121-1/+9
| | | | | | | main advantage of this is that daemon's are only signalled once per run, instead of once for each file that is rotated. MFC after: 2 weeks
* Add an additional queue which will be "owned by the driver". This allows tomlaier2004-06-121-0/+7
| | | | | | | | | | | | | | | | | | | | rig a PREPEND macro for ALTQ as the POLL/DEQUEUE semantic is very bad in terms of locking. We make this a full functional queue to allow "bulk dequeue" which will further reduce the locking overhead (for non-altq enabled devices). Drivers will access this via the following macros, which will show up in <net/if_var.h> once we expose ALTQ to the build: IFQ_DRV_DEQUEUE(ifq, m) - takes a mbuf off the queue (driver queue first) IFQ_DRV_PREPEND(ifq, m) - pushes a mbuf back to the driver queue IFQ_DRV_PURGE(ifq) - drops all packets in both queues IFQ_DRV_IS_EMPTY(ifq) - checks for pending mbufs in either queue One has to make sure that the first three are protected by a driver mutex. At the moment most network drivers still require Giant, so this is not an issue. Even those that have thier own mutex usually hold it in if_start and the like, so this requirement is almost always satisfied. This evolved from a discussion with Andrew Gallatin.
* Whitespace-only restyling of socket reference count macros.rwatson2004-06-121-25/+25
|
* Introduce a mutex into struct sockbuf, sb_mtx, which will be used torwatson2004-06-122-0/+31
| | | | | | | | | | | | | protect fields in the socket buffer. Add accessor macros to use the mutex (SOCKBUF_*()). Initialize the mutex in soalloc(), and destroy it in sodealloc(). Add addition, add SOCK_*() access macros which will protect most remaining fields in the socket; for the time being, use the receive socket buffer mutex to implement socket level locking to reduce memory overhead. Submitted by: sam Sponosored by: FreeBSD Foundation Obtained from: BSD/OS
* Fix registration of loadable line disciplines.phk2004-06-121-1/+2
| | | | This should make watch(8)/snp(4) work again.
* Group tinderbox results by config name. Skip configs whose names startdes2004-06-121-42/+54
| | | | with "update_".
* Include the config name in the log file name.des2004-06-121-1/+8
|
* Check pending signals, if there is signal will be unblocked bydavidxu2004-06-128-44/+50
| | | | | | | | | | | | | | | | | | sigsuspend, thread shouldn't wait, in old code, it may be ignored. When a signal handler is invoked in sigsuspend, thread gets two different signal masks, one is in thread structure, sigprocmask() can retrieve it, another is in ucontext which is a third parameter of signal handler, the former is the result of sigsuspend mask ORed with sigaction's sa_mask and current signal, the later is the mask in thread structure before sigsuspend is called. After signal handler is called, the mask in ucontext should be copied into thread structure, and becomes CURRENT signal mask, then sigsuspend returns to user code. Reviewed by: deischen Tested by: Sean McNeil <sean@mcneil.com>
* Remove an unused #include.alc2004-06-121-1/+0
|
* When autosense is retrieved, tell CAM about it instead of juust pretendingscottl2004-06-121-1/+2
| | | | | | | that the command succeeded. Sheesh! This makes CDROMs no longer cause an instant panic at boot. Thanks to Jake Burkholder for providing a remote test setup. Also make device resets work, thanks to another typo.
* The references to scalbn and scalbnf should be scalb and scalbf.das2004-06-121-2/+5
| | | | | | (The former are actually useful, and ieee_test(3) only documents functions that aren't.) Add a sentence describing the domain of scalb() and scalbf().
* Correct typo from previous commit.scottl2004-06-121-1/+1
|
* Back out 1.23 until I figure out why it causes Netra t1 100 to no longermarius2004-06-121-1/+1
| | | | | | pass any traffic. Unfortunately this means no full-duplex link with auto- negotiation on hme(4) using DP83840A PHYs again. I really thought I had tested this also on a Netra t1 100...
* FreeBSD-ify ALTQ:mlaier2004-06-129-21/+164
| | | | | | | | | | | | | | | | | | - add locking - disable ALTQ3_COMPAT by default (do not remove the code to keep the diff towards KAME small) - put some more code under ALTQ3 conditional compilation as it should be - account for if_xname - some more minor compile fixes As people started wondering: The strange path layout "altq/altq" is there to avoid "-Isys/contrib" and make it "-Isys/contrib/altq" instead, as we will need at least <altq/altq.h> and <altq/if_altq.h> for kernel compilation. The "freebsd4_..." in the privious commit is just the best tag name in the KAME tree I could find to classify this in order to track its history. It does *not* mean that this will go to 4-STABLE or anything of that kind.
* This commit was generated by cvs2svn to compensate for changes in r130365,mlaier2004-06-1221-0/+14567
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import parts of the ALTQ framework from latest KAME snapshot (which is up tomlaier2004-06-1221-0/+14567
| | | | | | | | | | | | | | | | | | | HEAD at this point). This will not exactly live in a vendor branch, but have the vendor backing to make it easier to exchange diffs. This will be followed by a diff which takes most of the .c files off the vendor branch in order to: - add locking - disable ALTQ3_COMPAT code (which is outdated and "un-lockable") There is work in progress to refine the configuration API. Import this "as is" now to have more exposure time before 5-STABLE. This is only the import, it will be some more days until you will actually be able to compile ALTQ support into your kernel so don't hold your breath. HEADUPs will be posted on current@ and net@ before this is actually enabled. No-objection: re(scottl), core(rwatson)
* Use tabs instead of spaces between #define and macro name; a mergerwatson2004-06-111-2/+2
| | | | mistake as they are in rwatson_netperf.
* Modify ip fw so that whenever UID or GID constraints exist in acsjp2004-06-111-30/+77
| | | | | | | | | | | | | | | | | | | ruleset, the pcb is looked up once per ipfw_chk() activation. This is done by extracting the required information out of the PCB and caching it to the ipfw_chk() stack. This should greatly reduce PCB looking contention and speed up the processing of UID/GID based firewall rules (especially with large UID/GID rulesets). Some very basic benchmarks were taken which compares the number of in_pcblookup_hash(9) activations to the number of firewall rules containing UID/GID based contraints before and after this patch. The results can be viewed here: o http://people.freebsd.org/~csjp/ip_fw_pcb.png Reviewed by: andre, luigi, rwatson Approved by: bmilekic (mentor)
* Neither pmap_enter() nor pmap_enter_quick() should create pv entries foralc2004-06-111-4/+10
| | | | | | unmanaged pages. Tested by: marcel@
* Move uma_small_alloc() and uma_small_free() out of the pmap and into theiralc2004-06-113-46/+83
| | | | | own machine-dependent file. This makes alpha consistent with amd64, ia64, and powerpc.
* Style cleanup.schweikh2004-06-111-64/+81
|
* Fix for a problem seen only on 6xxx series controllers, where-in thevkashyap2004-06-113-8/+17
| | | | | | | | | driver tries to submit the same request repeatedly, on finding the controller cmd queue to be full. Submitted by:ps, vkashyap Reviewed by:re Approved by:re
* Gah! Plug a mbuf leak I introduced in the last commit.bmilekic2004-06-111-2/+3
| | | | | | I don the pointy-hat. Problem reported by: Peter Holm <pho@>
* * Fix typo in comment.schweikh2004-06-111-6/+4
| | | | | | * remove extraneous semicolon between function definitions. * vm_offset_t is not a pointer, so return 0, not NULL. This fixes two warnings.
* Shuffle some code around.julian2004-06-112-43/+67
|
* Document the STRIPBIN environment variable. This includes adding amarcel2004-06-111-0/+12
| | | | | | forward reference from where strip(1) is being mention (-s option). PR: bin/28620
* Sperate out the MD parts of kvm-fbsd to get rid of the #ifdef maze.obrien2004-06-115-275/+317
| | | | Also quiet some warnings by tweaking the included headers.
* Add sha1 and rmd160 checksum tools.eik2004-06-113-67/+206
| | | | | | | | Since the algorithms are already supported in libmd, the size increase is small when a dynamic root is used. Approved by: joerg, ru MFC after: 2 weeks
* Import the ttys file for arm.cognet2004-06-111-0/+309
| | | | | make TARGET_ARCH=arm world now works (but still with external patches for the toolchain bits).
* Make the XPT_CALC_GEOMETRY op dependent on the sc_extended_geometry flagscottl2004-06-113-1/+4
| | | | that is set in the bus front-end.
* COMPAT_SUNOS is gone.phk2004-06-111-5/+3
|
* Make this look less dubious :-)phk2004-06-111-3/+0
| | | | Spotted by: ru
* Cast the arguments to make_h_number() to uintmax_t before multiplyingjoerg2004-06-111-2/+2
| | | | them... Otherwise the result will be truncated anyway.
* Deorbit COMPAT_SUNOS.phk2004-06-1133-106/+84
| | | | | We inherited this from the sparc32 port of BSD4.4-Lite1. We have neither a sparc32 port nor a SunOS4.x compatibility desire these days.
* Merge boot0 and boot0sio so they behave the same.phk2004-06-111-42/+17
|
* Back out the last change as that broke some SATA devices.sos2004-06-111-9/+4
| | | | Now we are cleaing up remove a few lines of unused code.
* Reduce the number of preallocated pv entries and lpte entries inalc2004-06-111-9/+2
| | | | | | pmap_init(). Tested by: marcel@
* Remove unneeded Giant acquisition in divert_packet(), which isrwatson2004-06-111-15/+0
| | | | | | left over from debug.mpsafenet affecting only the forwarding plane. Giant is now acquired in the ithread/netisr or in the system call code.
* Constify raw_sendspace and raw_recvspace, as they're not mutable.rwatson2004-06-111-2/+2
|
* Switch to conditionally acquiring and dropping Giant around calls intorwatson2004-06-111-2/+2
| | | | | | ifp->if_output() basedd on debug.mpsafenet. That way once bpfwrite() can be called without Giant, it will acquire Giant (if desired) before entering the network stack.
* Un-staticize 'dst' sockaddr in the stack of bpfwrite() to preventrwatson2004-06-111-1/+2
| | | | | | | the need to synchronize access to the structure. I believe this should fit into the stack under the necessary circumstances, but if not we can either add synchronization or use a thread-local malloc for the duration.
* Lock down parallel router_info list for tracking multicast IGMPrwatson2004-06-111-1/+27
| | | | | | | | | | | | versions of various routers seen: - Introduce igmp_mtx. - Protect global variable 'router_info_head' and list fields in struct router_info with this mutex, as well as igmp_timers_are_running. - find_rti() asserts that the caller acquires igmp_mtx. - Annotate a failure to check the return value of MALLOC(..., M_NOWAIT).
* Change defualt time zone from GMT to UTC. This will not be MFC-ed, andkensmith2004-06-111-1/+6
| | | | was done before 5-STABLE on purpose...
* Merge from DRI CVS as of 2004-05-26. Most of the meat is new PCI IDs and a newanholt2004-06-1121-249/+609
| | | | packet for Radeon.
* Add some fenv.h regression tests.das2004-06-112-0/+535
|
* Shift the FPSR contents by the correct amount so feupdateenv() raisesdas2004-06-111-1/+1
| | | | the correct exceptions from the old environment.
* Insert a missing '~' in feholdexcept(), so that it correctly clearsdas2004-06-111-1/+1
| | | | the exception flags in the mxcsr as well as the x87 FPU.
* Make sysctl_wire_old_buffer() respect ENOMEM from vslock() by markinggreen2004-06-111-2/+5
| | | | | | | the valid length as 0. This prevents vsunlock() from removing a system wire from memory that was not successfully wired (by us). Submitted by: tegge
* Oops: gtar's --dereference should be a synonym for bsdtar's -L, not -H.kientzle2004-06-112-3/+3
| | | | | Pointed out by: devel/nspr port Thanks to: Kris Kennaway
OpenPOWER on IntegriCloud