summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Teach DDB how to print sockets, socket buffers, protosw's, and domainrwatson2007-02-152-0/+531
| | | | structures given pointers to them.
* Fix accidental removal of an empty line from the previous commit.jkim2007-02-151-0/+1
|
* Regen.jkim2007-02-153-4/+10
|
* MFP4: 113033jkim2007-02-152-2/+20
| | | | Port iopl(2) from i386. This fixes LTP iopl01 and iopl02 on amd64.
* Regen.jkim2007-02-153-5/+12
|
* MFP4: 113025, 113146, 113177, 113203, 113500, 113546, 113570jkim2007-02-155-115/+119
| | | | | | | | - PROT_READ, PROT_WRITE, or PROT_EXEC implies PROT_READ and PROT_EXEC. Linux/ia64's i386 emulation layer does this and it complies with Linux header files. This fixes mmap05 LTP test case on amd64. - Do not adjust stack size when failure has occurred. - Synchronize i386 mmap/mprotect with amd64.
* Adjust the global MSI blacklisting strategy so we don't have to explicitlyjhb2007-02-141-0/+26
| | | | | | | | | blacklist a bunch of old chipsets. If a system contains a PCI-PCI bridge that supports PCI-X, assume the chipset supports PCI-X. If a system contains a PCI-express root port, assume the chipset supports PCI-express. If the chipset doesn't support either PCI-X or PCI-express, then blacklist it by default. We should now only need to explicitly blacklist PCI-X or PCI-express chipsets that don't properly handle MSI.
* - Fix an off by one error in pci_remap_msix_method() that effectivelyjhb2007-02-141-2/+10
| | | | | | broke the method as all the MSI-X table indices were off by one in the backend MD code. - Fix a cosmetic nit in the bootverbose printf in pci_alloc_msix_method().
* Catch up to MSI-X API changes. Tested with both MSI and MSI-X.jhb2007-02-141-8/+23
|
* Use bge_writereg_ind() to do global reset as we did before 1.159 for certainjkim2007-02-141-1/+1
| | | | | | | chipsets. It was causing 'firmware handshake timed out' errors for some chips. Discussed with: scottl
* Fix two typos in comments.jkim2007-02-141-2/+2
|
* Fix a typo from the previous commit.jkim2007-02-141-1/+1
| | | | Pointed out by: brad@openbsd.org
* Add missing 'break' that in this case is harmless.jhb2007-02-141-0/+1
|
* Fix compilation for statically linked snd_envy24{ht}/spicds. Use explicitariff2007-02-143-3/+3
| | | | | | struct mtx rather than void pointer. PR: kern/109147
* Minor rearrangement of global variables, comments, etc, in UNIX domainrwatson2007-02-141-37/+34
| | | | sockets.
* Change unp_mtx to supporting recursion, and do not drop the unp_mtx overrwatson2007-02-141-13/+5
| | | | | | | | | | | | | | | | | | sonewconn() in unp_connect(). This avoids a race that occurs due to v_socket being an uncounted reference, as the lock was being released in order to call sonewconn(), which otherwise recurses into the UNIX domain socket code via pru_attach, as well as holding the lock over a sleeping memory allocation in uipc_attach(). Switch to a non-sleeping memory allocation during UNIX domain socket attach. This fix non-ideal in that it requires enabling recursion, but is a much smaller change than moving to using true references for v_socket. The reported panic occurs in unp_connect() following the return of sonewconn(). Update copyright year. Panic reported by: jhb
* The return value of aac_alloc_command() was misinterpreted in aac_ioctl_event().luoqi2007-02-141-1/+1
| | | | | | | Once triggered this would leak away all available commands and starve the rest of the driver. Reviewed by: scottl
* Avoid the unnecessary acquisition of the free page queues lock when a pagealc2007-02-141-4/+5
| | | | | | | is actually being added to the hold queue, not the free queue. At the same time, avoid unnecessary tests to wake up threads waiting for free memory and the idle thread that zeroes free pages. (These tests will be performed later when the page finally moves from the hold queue to the free queue.)
* Optimize bitcount32 by replacing 6 logical operations with 2. The keycperciva2007-02-141-3/+3
| | | | | | | | | observation here is that it doesn't matter what garbage accumulates in bits which we're going to end up masking away anyway, as long as the garbage doesn't overflow into bits which we care about. This improved version may not be the fastest possible on all systems, but it's certainly going to be better than what was here before.
* Add KTR tracingkevlo2007-02-141-0/+4
|
* style(9) cleanup.kevlo2007-02-142-9/+6
|
* In sendsig:kevlo2007-02-141-24/+46
| | | | | | | | - Add sigacts locking. - Add a mutex to struct sigacts that protects all the members of the struct. - Create and log events via the CTRx macros. Reviewed by: cognet
* Set UNP_CONNECTING when committing to moving ahead in unp_connect().rwatson2007-02-131-0/+1
| | | | | This logic was lost when merging the remainder of these changes in 1.178.
* Make sure the address is valid before mapping it.cognet2007-02-131-0/+13
| | | | MFC after: 1 week
* Fix typo: MacPPC -> ARMkevlo2007-02-131-1/+1
|
* Get the vfs giant lock before calling nfs_access.mpp2007-02-131-3/+9
| | | | Reviewed by: mohan
* Repocopied from src/sys/isofs/cd9660 to src/sys/fs/cd9660.rodrigc2007-02-1315-4332/+0
|
* Make vfs_getopts() set *error to ENOENT if the option wasn't found, so thatcognet2007-02-131-0/+1
| | | | | | | consumers don't have to check for both error and the return value (some of them actually don't do it). MFC After: 1 week
* Fix typos in comments while I am here.jkim2007-02-132-28/+29
|
* Do not do a vn_close for all references to the ktraced file if we arempp2007-02-131-10/+13
| | | | | | | | doing a CLEARFILE option. Do a vrele instead. This prevents a panic later due to v_writecount being negative when the vnode is taken off the freelist. Submitted by: jhb
* Add BCM5701 A0/B0 CRC bug workaround. Magic values taken from Linux driver.jkim2007-02-123-0/+26
|
* Fix style(9).jkim2007-02-124-1845/+1848
| | | | Pointed out by: many
* - Copyright updates (aka 2007)rrs2007-02-1220-1537/+1181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - ZONE get now also take a type cast so it does the cast like mtod does. - New macro SCTP_LIST_EMPTY, which in bsd is just LIST_EMPTY - Removal of const in some of the static hmac functions (not needed) - Store length changes to allow for new fields in auth - Auth code updated to current draft (this should be the RFC version we think). - use uint8_t instead of u_char in LOOPBACK address comparison - Some u_int32_t converted to uint32_t (in crc code) - A bug was found in the mib counts for ordered/unordered count, this was fixed (was referencing a freed mbuf). - SCTP_ASOCLOG_OF_TSNS added (code will probably disappear after my testing completes. It allows us to keep a small log on each assoc of the last 40 TSN's in/out and stream assignment. It is NOT in options and so is only good for private builds. - Some CMT changes in prep for Jana fixing his problem with reneging when CMT is enabled (Concurrent Multipath Transfer = CMT). - Some missing mib stats added. - Correction to number of open assoc's count in mib - Correction to os_bsd.h to get right sha2 macros - Add of special AUTH_04 flags so you can compile the code with the old format (in case the peer does not yet support the latest auth code). - Nonce sum was incorrectly being set in when ecn_nonce was NOT on. - LOR in listen with implicit bind found and fixed. - Moved away from using mbuf's for socket options to using just data pointers. The mbufs were used to harmonize NetBSD code since both Net and Open used this method. We have decided to move away from that and more conform to FreeBSD style (which makes more sense). - Very very nasty bug found in some of my "debug" code. The cookie_how collision case tracking had an endless loop in it if you got a second retransmission of a cookie collision case. This would lock up a CPU .. ugly.. - auth function goes to using size_t instead of int which conforms to socketapi better - Found the nasty bug that happens after 9 days of testing.. you get the data chunk, deliver it and due to the reference to a ch-> that every now and then has been deleted (depending on the postion in the mbuf) you have an invalid ch->ch.flags.. and thus you don't advance the stream sequence number.. so you block the stream permanently. The fix is to make local variables of these guys and set them up before you have any chance of trimming the mbuf. - style fix in sctp_util.h, not sure how this got bad maybe in the last patch? (aka it may not be in the real source). - Found interesting bug when using the extended snd/rcv info where we would get an error on receiving with this. Thats because it was NOT padded to the same size as the snd_rcv info. We increase (add the pad) so the two structs are the same size in sctp_uio.h - In sctp_usrreq.c one of the most common things we did for socket options was to cast the pointer and validate the size. This as been macro-ized to help make the code more readable. - in sctputil.c two things, the socketapi class found a missing flag type (the next msg is a notification) and a missing scope recovery was also fixed. Reviewed by: gnn
* Add a VNASSERT to vn_close to detect if v_writecount is goingmpp2007-02-121-1/+4
| | | | | | | to become negative. This will detect the underflow when it happens, instead of having it discovered when the vnode is taken off the freelist, long after the offending process is long gone.
* Add PHY DSP code for BCM5755M.jkim2007-02-124-1/+32
| | | | Obtained from: OpenBSD
* BCM5701 PHY cannot read-modify-write. Just re-use the magic number from DSPjkim2007-02-121-4/+9
| | | | init code.
* Replace magic numbers with corresponding definitions.jkim2007-02-121-8/+8
|
* Rearrange the SATA connect logic so that we so that we pickup ATAPI devices.sos2007-02-121-12/+4
| | | | The rest of the logic should be in place for most supporting chipsets.
* Remove the cast to caddr_t for sfp, they're not needed.kevlo2007-02-122-4/+4
| | | | Reviewed by: marcel
* Use uma_set_align().cognet2007-02-111-13/+17
|
* Add uma_set_align() interface, which will be called at most once duringrwatson2007-02-112-2/+26
| | | | | | | | | | | | | | | | | boot by MD code to indicated detected alignment preference. Rather than cache alignment being encoded in UMA consumers by defining a global alignment value of (16 - 1) in UMA_ALIGN_CACHE, UMA_ALIGN_CACHE is now a special value (-1) that causes UMA to look at registered alignment. If no preferred alignment has been selected by MD code, a default alignment of (16 - 1) will be used. Currently, no hardware platforms specify alignment; architecture maintainers will need to modify MD startup code to specify an alignment if desired. This must occur before initialization of UMA so that all UMA zones pick up the requested alignment. Reviewed by: jeff, alc Submitted by: attilio
* Makefile changes to reflect moving sys/isofs/cd9660 to sys/fs/cd9660.rodrigc2007-02-114-11/+11
| | | | | Continue to install userland include files in /usr/include/isofs/cd9660 so as not to break userland applications such as libstand.
* Forced commit and #include changes for repo copy fromrodrigc2007-02-117-21/+21
| | | | | | sys/isofs/cd9660 to sys/fs/cd9660. Discussed on freebsd-current.
* Use the free page queue mutex instead of the page queue mutex toalc2007-02-112-7/+6
| | | | synchronize sleeping and waking of the zero idle thread.
* Add missing MNT_ILOCK around some mnt_kern_flag accesses.mohans2007-02-111-0/+6
|
* Now that the free page queue mutex is a sleep mutex, we cannot callmarcel2007-02-111-7/+0
| | | | | | | | vm_page_alloc() from within a critical section in pmap_growkernel(). Since the need for a critical section may never have existed in the first place, simply get rid of it. Discussed with: alc@
* Use MAXTTL.bms2007-02-101-1/+1
| | | | Obtained from: NetBSD
* Fix small altq related copy and paste error.mlaier2007-02-102-2/+2
|
* If the rendezvous point for a group is not specified, do not sendbms2007-02-101-0/+15
| | | | | | | | | | | | | | IGMPMSG_WHOLEPKT notifications to the userland PIM routing daemon, as an optimization to mitigate the effects of high multicast forwarding load. This is an experimental change, therefore it must be explicitly enabled by setting the sysctl/tunable net.inet.pim.squelch_wholepkt to a non-zero value. The tunable may be set from the loader or from within the kernel environment when loading ip_mroute.ko as a module. Submitted by: edrt <edrt at citiz.net> See also: http://mailman.icsi.berkeley.edu/pipermail/xorp-users/2005-June/000639.html
* Build PIM by default as part of the IPv4 multicast forwarding path.bms2007-02-104-45/+55
| | | | | | | | Make PIM dynamically loadable by using encap_attach_func(). PIM may now be loaded into a GENERIC kernel. Tested with: ports/net/pimdd && tcpreplay && wireshark Reviewed by: Pavlin Radoslavov
OpenPOWER on IntegriCloud