summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Zero terminate empty sting in kdb_sysctl_available.ups2004-10-211-0/+2
| | | | | Approved by: sam (mentor) MFC after: 1 week
* Bump the document date, s/filesystem/file system/ and add missing word.keramida2004-10-201-3/+3
| | | | Noticed by: ru
* Modify the vm object locking in do_sendfile() so that the containing objectalc2004-10-201-2/+3
| | | | | | | | | | is locked when vm_page_io_finish() is called on a page. This is to satisfy a new, post-RELENG_5 assertion in vm_page_io_finish(). (I am in the process of transitioning the responsibility for synchronizing access to various fields/flags on the page from the global page queues lock to the per-object lock.) Tripped over by: obrien@
* Introduce root_rw_mount as a new variable in defaults/rc.conf tokeramida2004-10-202-0/+14
| | | | | | | | | unbreak /etc/rc.d/root for diskless systems that get their root filesystem from a read-only NFS mount. PR: conf/72927 Submitted by: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de> Reviewed by: brooks
* Fix a typo so that this compiles.jhb2004-10-201-1/+1
|
* Fix a typo so that this compiles again.jhb2004-10-201-1/+1
|
* -c flag (cache stats) was killed in rev. 1.68. Fix getopt(3) andmaxim2004-10-201-2/+2
| | | | | | usage() accordingly. Submitted by: Pawel Worach
* Fix typo.simon2004-10-201-1/+1
| | | | | | Submitted by: Patrick Oonk <patrick@cookie.monster.org> PR: docs/72912 MFC after: 1 week
* Do not retry on requests that has lost thier device during reinit.sos2004-10-201-8/+5
| | | | | | | Should fix hangs on IBM's etc with the fake slave problem. MFC: asap
* Explicitly break out NETA license from Berkeley license to clearlyrwatson2004-10-205-0/+105
| | | | | | | indicate license grant, as well as to indicate that NETA is asserting only two clauses, not four clauses. Requested by: imp
* Don't prepend "/dev" if an argument given is an absolute pathname.ru2004-10-201-1/+1
| | | | Reviewed by: jhb
* Rumor has it that ACCTON EN2216 is also an ne2000 compatible. Make it so.imp2004-10-201-0/+1
|
* Add missing bus_dmamap_sync() calls. If you are using an architecturemux2004-10-191-2/+12
| | | | | | | | | | | with a weak memory model or x86 + PAE (or more specifically, your driver is using bounce pages) and you have had problems with em(4), this may fix it. At least this is needed to have em(4) work properly on FreeBSD/arm. Original version by: cognet Reviewed by: tackerman Tested by: cognet
* Destroy the UMA zone on unload.andre2004-10-191-0/+1
|
* Slightly extend the locking during unload to fully cover the protocolandre2004-10-191-5/+6
| | | | | deregistration. This does not entirely close the race but narrows the even previously extremely small chance of a race some more.
* Annotate a newly introduced race present due to the unloading ofrwatson2004-10-191-0/+4
| | | | | | | | protocols: it is possible for sockets to be created and attached to the divert protocol between the test for sockets present and successful unload of the registration handler. We will need to explore more mature APIs for unregistering the protocol and then draining consumers, or an atomic test-and-unregister mechanism.
* Convert IPDIVERT into a loadable module. This makes use of the dynamic ↵andre2004-10-196-37/+100
| | | | | | | | | | | loadability of protocols. The call to divert_packet() is done through a function pointer. All semantics of IPDIVERT remain intact. If IPDIVERT is not loaded ipfw will refuse to install divert rules and natd will complain about 'protocol not supported'. Once it is loaded both will work and accept rules and open the divert socket. The module can only be unloaded if no divert sockets are open. It does not close any divert sockets when an unload is requested but will return EBUSY instead.
* Properly declare the "net.inet" sysctl subtree.andre2004-10-191-0/+1
|
* Pre-emptively define IPPROTO_SPACER to 32767, the same value as PROTO_SPACERandre2004-10-191-0/+6
| | | | | to document that this value is globally assigned for a special purpose and may not be reused within the IPPROTO number space.
* aic7xxx.h:gibbs2004-10-192-14/+91
| | | | | | | | | | | | | | | Add constants for SPI protocol delays that are needed for target mode. aic7xxx.c: Correct a target mode issue that caused an occassional spurious REQ to be seen on the bus when performing manual message processing (e.g. transfer rate negotiation). Enforce phase change bus settle rules with explicit delays when performing manual message processing in target mode. The sequencer already did this for "fast-path", target mode message processing.
* - Removed the .CURDIR/.OBJDIR magic, it is not necessary here.ru2004-10-191-12/+2
| | | | | | - Let the built-in sys.mk rule produce the "yearistype" script. - Install zone files with mode 444 (now that the -m option of zic(8) has been fixed).
* Make the -m option actually work.ru2004-10-191-1/+1
|
* Idle the channel earlier in reinit().sos2004-10-191-10/+10
| | | | Cosmetic change to suspend, dont call tsleep an extra time at exit.
* Cosmeticssos2004-10-191-6/+2
|
* Really really fix typo this time.bms2004-10-192-2/+0
|
* Define IFF_LOCKGIANT() and IFF_UNLOCKGIANT() macros, which conditionallyrwatson2004-10-192-2/+40
| | | | | | | | | acquire Giant if the passed interface has IFF_NEEDSGIANT set on it. Modify calls into (ifp)->if_ioctl() in if.c to use these macros in order to ensure that Giant is held. MFC after: 3 days Bumped into by: jmg
* This is now WARNS 6 clean on 64-bit platforms.obrien2004-10-191-1/+1
|
* libsmb is now WARNS 2 clean on 64-bit platforms.obrien2004-10-191-0/+1
|
* style.Makefile(5)obrien2004-10-191-5/+4
|
* + Get prototypes for libc functions.obrien2004-10-194-2/+11
| | | | + Use the correct printf format for size_t.
* Size matters. Correctly use a size_t so 64-bit hosts can mount SMB FS'sobrien2004-10-191-5/+8
| | | | | | | | | | when using character set conversions. Also include POSIX <string.h> vs. BSD <strings.h> now that we've broken traditional BSD behavior [and compatibility with our BSD brethren]. PR: 72445 Submitted by: Vladimir Nechitailo <nechit@lpi.ru> Patch by: Stasys Smailys <ssmailys@komvista.lt>
* Apply README guidelines (no tabs).ru2004-10-191-2/+2
|
* Define "I386_CPU" if CPUTYPE is 'i386'. Userland bits can check for "I386_CPU"obrien2004-10-191-0/+3
| | | | | | to determine if they should select code paths suitable for the 80386 CPU. Suggested by: ru
* Fix typo sc -> dev.bms2004-10-192-2/+2
|
* Make use of the PROTO_SPACER functionality for dynamically loadableandre2004-10-191-2/+19
| | | | | | | protocols in inetsw[] and define initially eight spacer slots. Remove conflicting declaration 'struct pr_usrreqs nousrreqs'. It is now declared and initialized in kern/uipc_domain.c.
* Support for dynamically loadable and unloadable IP protocols in the ipmux.andre2004-10-192-1/+64
| | | | | | | | | | | | | | | With pr_proto_register() it has become possible to dynamically load protocols within the PF_INET domain. However the PF_INET domain has a second important structure called ip_protox[] that is derived from the 'struct protosw inetsw[]' and takes care of the de-multiplexing of the various protocols that ride on top of IP packets. The functions ipproto_[un]register() allow to dynamically adjust the ip_protox[] array mux in a consistent and easy way. To register a protocol within ip_protox[] the existence of a corresponding and matching protocol definition in inetsw[] is required. The function does not allow to overwrite an already registered protocol. The unregister function simply replaces the mux slot with the default index pointer to IPPROTO_RAW as it was previously.
* Detach the Rhine completely on shutdown, rather than merely stopping itbms2004-10-192-6/+2
| | | | | | | | as the original logic did. This fixes a race with vr_intr() which was masked on UP systems and manifested on SMP systems. PR: kern/62889 MFC after: 1 day
* Support for dynamically loadable and unloadable protocols within existing ↵andre2004-10-194-4/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | protocol families. The protosw[] array of any particular protocol family ("domain") is of fixed size defined at compile time. This made it impossible to dynamically add or remove any protocols to or from it. We work around this by introducing so called SPACER's which are embedded into the protosw[] array at compile time. The SPACER's have a special protocol number (32767) to indicate the fact that they are SPACER's but are otherwise NULL. Only as many protocols can be dynamically loaded as SPACER's are provided in the protosw[] structure. The pr_usrreqs structure is treated more special and contains pointers to dummy functions only returning EOPNOTSUPP. This is needed because the use of those functions pointers is usually not checked within the kernel because until now it was assumed to be a valid function pointer. Instead of fixing all potential callers we just return a proper error code. Two new functions provide a clean API to register and unregister a protocol. The register function expects a pointer to a valid and complete struct protosw including a pointer to struct pru_usrreqs provided by the caller. Upon successful registration the pr_init() function will be called to finish initialization of the protocol. The unregister function restores the SPACER in place of the protocol again. It is the responseability of the caller to ensure proper closing of all sockets and freeing of memory allocation by the unloading protocol. sys/protosw.h o Define generic PROTO_SPACER to be 32767 o Prototypes for all pru_*_notsupp() functions o Prototypes for pf_proto_[un]register() functions kern/uipc_domain.c o Global struct pr_usrreqs nousrreqs containing valid pointers to the pru_*_notsupp() functions o New functions pf_proto_[un]register() kern/uipc_socket2.c o New functions bodies for all pru_*_notsupp() functions
* Add a macro for the destruction of INP_INFO_LOCK's used by loadable modules.andre2004-10-191-0/+1
|
* Make comments more clear. Change the order of one if() statement to check theandre2004-10-191-3/+8
| | | | more likely variable first.
* Be more careful to only index valid IP protocols and be more verbose withandre2004-10-191-2/+11
| | | | comments.
* Return the unit number of a channel instead of a hardcoded '1' fromle2004-10-191-1/+1
| | | | | | | | | the ATA pccard locking function. This makes pccard devices like Compact Flash cards work again. PR: kern/72805 Submitted by: James E. Flemer <jflemer@alum.rpi.edu> MFC in: 2 days
* Forced commit to note that the previous change also elimates calls toscottl2004-10-190-0/+0
| | | | | | bus_dmamap_create|destroy for the rx and tx descriptor buffers. Since these buffers are created with bus_dmamem_alloc(), there is no reason to also create a map, and doing so just wastes memory.
* Use and alignment of 1 instead of ETHER_ALIGN for rx and tx buffers and jumboscottl2004-10-191-2/+2
| | | | | | | frames. BGE hardware with the rx alignment bug will still be handled by the calls to m_adj() that already exist. m_adj() is probably better suited for this task anyways. Just as with if_em, this saves a malloc + several locks per packet and prevents unneeded data copying within busdma.
* Use an alignment of 1 instead of PAGE_SIZE for the rx and tx buffer tags.scottl2004-10-191-12/+2
| | | | | | | | | | Since the e1000 DMA engines hava no constraints on the alignment of buffer transfers, there is no reason to tell busdma that there is. This save a minimum of 1 malloc call per packet, which translates to eliminating 4 locks. It also means that buffers are not needlessly bounced when transfered. The end result is a 38% improvement in pps in a 4 way bridging environment. Obtained from: Sandvine, Inc.
* When dumpdev is set to 'auto', and a suitable swap device is found,thomas2004-10-182-3/+11
| | | | | create a symbolic link /dev/dumpdev designating that device so savecore can find and save a previous kernel dump.
* fix (for me) the problems where if_de gets really slow after timejmg2004-10-182-42/+0
| | | | | | | (usually taking 20 seconds to transmit a packet).. no longer fall back to only transmitting one packet (instead of the entire queue) after we have processed the entire send queue... I have no idea why we didn't start seeing this problem ~6 years ago when this code was introduced...
* Push acquisition of the accept mutex out of sofree() into the callerrwatson2004-10-1819-5/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (sorele()/sotryfree()): - This permits the caller to acquire the accept mutex before the socket mutex, avoiding sofree() having to drop the socket mutex and re-order, which could lead to races permitting more than one thread to enter sofree() after a socket is ready to be free'd. - This also covers clearing of the so_pcb weak socket reference from the protocol to the socket, preventing races in clearing and evaluation of the reference such that sofree() might be called more than once on the same socket. This appears to close a race I was able to easily trigger by repeatedly opening and resetting TCP connections to a host, in which the tcp_close() code called as a result of the RST raced with the close() of the accepted socket in the user process resulting in simultaneous attempts to de-allocate the same socket. The new locking increases the overhead for operations that may potentially free the socket, so we will want to revise the synchronization strategy here as we normalize the reference counting model for sockets. The use of the accept mutex in freeing of sockets that are not listen sockets is primarily motivated by the potential need to remove the socket from the incomplete connection queue on its parent (listen) socket, so cleaning up the reference model here may allow us to substantially weaken the synchronization requirements. RELENG_5_3 candidate. MFC after: 3 days Reviewed by: dwhite Discussed with: gnn, dwhite, green Reported by: Marc UBM Bocklet <ubm at u-boot-man dot de> Reported by: Vlad <marchenko at gmail dot com>
* uniq(1) is not an install tool, and using it was causingru2004-10-181-2/+2
| | | | | | "uniq: not found" during the installworld. Spotted by: Roman Neuhauser
* Add new function ttyinitmode() which sets our systemwide defaultphk2004-10-1814-118/+62
| | | | | | | | | | | | | | modes on a tty structure. Both the ".init" and the current settings are initialized allowing the function to be used both at attach and open time. The function takes an argument to decide if echoing should be enabled. Echoing should not be enabled for regular physical serial ports unless they are consoles, in which case they should be configured by ttyconsolemode() instead. Use the new function throughout.
OpenPOWER on IntegriCloud