summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Make "struct tcp_timer" visible only to the kernel, and unbreak world.ru2007-04-111-12/+13
|
* Fix m_freem_vec() to actually traverse the mbuf chain. This avoidsjhb2007-04-111-0/+1
| | | | | | | double free's and an infinite loop. CID: 1834 Found by: Coverity Prevent (tm)
* Group the loop to acquire/release Giant with the WITNESS_SAVE/RESTORE underjhb2007-04-111-8/+10
| | | | | | | | | | a single conditional. The two operations are linked, but since the link is not very direct, Coverity can't see it. Humans might also miss the link as well. So, this isn't fixing any actual bugs, just improving readability. CID: 1787 (likely others as well) Found by: Coverity Prevent (tm)
* This commit was generated by cvs2svn to compensate for changes in r168616,ru2007-04-111-0/+2
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Unbreak world build.ru2007-04-111-0/+2
| |
* | Change the TCP timer system from using the callout system five timesandre2007-04-1111-315/+427
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directly to a merged model where only one callout, the next to fire, is registered. Instead of callout_reset(9) and callout_stop(9) the new function tcp_timer_activate() is used which then internally manages the callout. The single new callout is a mutex callout on inpcb simplifying the locking a bit. tcp_timer() is the called function which handles all race conditions in one place and then dispatches the individual timer functions. Reviewed by: rwatson (earlier version)
* | This commit was generated by cvs2svn to compensate for changes in r168609,njl2007-04-111-0/+3
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Put some overly verbose prints under bootverbose. This is on the vendornjl2007-04-111-0/+3
| | | | | | | | branch but we need to work out a different interface with the vendor.
* | Add work around for hardware Tx checksum offload bug in Yukon II.yongari2007-04-111-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Yukon II generated corrupted TCP checksum for short TCP packets that's less than 60 bytes in size(e.g. window probe packet, pure ACK packet etc). Padding the frame with zeros to make the frame minimum ethernet frame size didn't work at all. Instead of dropping Tx checksum offload support we calculate TCP checksum with S/W method when we encounter short TCP frames. Fortunately it seems that short UDP datagrams appear to be handled correctly by Yukon II. While I'm here simplify ethernet/VLAN header size calculation logic. PR: 111384
* | Move rpc/types.h under sys/, as this is used by ZFS kernel module.pjd2007-04-101-0/+2
| | | | | | | | Repo-copied by: simon
* | strchr() and strrchr() are already present in the kernel, but with lesswkoszek2007-04-107-66/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | popular names. Hence: - comment current index() and rindex() functions, as these serve the same functionality as, respectively, strchr() and strrchr() from userland; - add inlined version of strchr() and strrchr(), as we tend to use them more often; - remove str[r]chr() definitions from ZFS code; Reviewed by: pjd Approved by: cognet (mentor)
* | Remove trailing '.' for consistency!pjd2007-04-107-7/+7
| |
* | Whitespace fixesscottl2007-04-101-28/+28
| |
* | Let brgphy(4) attach for the Broadcom BCM5755 ASIC based chipsetsmarius2007-04-102-0/+2
| | | | | | | | | | | | | | as well. Obtained from: OpenBSD MFC after: 1 week
* | On i386 compile the back-end with EISA support as well as the EISAmarius2007-04-101-3/+23
| | | | | | | | | | | | | | | | | | | | front-end if the dpt(4) module is built along with a kernel that includes eisa(4) or when compiling it stand-alone (logic based on the corresponding ISA logic in sys/modules/sound/sound/Makefile). As as side-effect this fixes the stand-alone build of the dpt(4) module after dpt.h 1.17, dpt_eisa.c 1.22 and dpt_scsi.c 1.55. Breakage reported by: n_hibma
* | A fix for the SG_GET_TIMEOUT function slipped into a previous commit byscottl2007-04-102-8/+22
| | | | | | | | | | accident. Remove the text describing the problem as it is no longer relevant. Also give real implementations for the GET and SET ioctls.
* | Add UFS_GJOURNAL options to the GENERIC kernel.pjd2007-04-107-0/+7
| | | | | | | | Approved by: re (kensmith)
* | Update comment regarding how we check privilege on FreeBSD: we now userwatson2007-04-101-1/+2
| | | | | | | | priv_check().
* | Allow PRIV_NETINET_REUSEPORT in jail.rwatson2007-04-101-1/+3
| |
* | Add a new privilege, PRIV_NETINET_REUSEPORT, which will replace superuserrwatson2007-04-102-1/+3
| | | | | | | | | | checks to see whether bind() can reuse a port/address combination while it's already in use (for some definition of use).
* | Remove unnecessary suser() check in the sysctl to set up ath_halrwatson2007-04-101-10/+7
| | | | | | | | | | | | | | logging: the sysctl framework will already have checked for privilege if a sysctl value is being set. Discussed a long time ago with: sam
* | Do allow POSIX mqueue unlink privilege inside a jail, as we all allrwatson2007-04-101-1/+2
| | | | | | | | other POSIX mqueue privileges inside a jail.
* | Minor style cleanups (mostly removal of trailing whitespaces).pjd2007-04-101-22/+22
| |
* | Correct typos.pjd2007-04-101-1/+1
| |
* | MFp4: Allow to set zfs_recover via vfs.zfs.recover from /boot/loader.conf.pjd2007-04-102-0/+8
| |
* | MFp4: Hide under '#ifdef _KERNEL' only what's really needed.pjd2007-04-102-12/+4
| |
* | Minor typo fix, noticed while I was going through *_pager.c files.keramida2007-04-101-1/+1
| |
* | Fix the NAMEI zone leak when snapshot was successfully created.kib2007-04-101-0/+1
| | | | | | | | | | Reported and tested by: Peter Holm MFC after: 2 weeks
* | Recalculate the NEWBLOCK flag for pagedep structure after the softdepkib2007-04-101-5/+26
| | | | | | | | | | | | | | lock is dropped, since pagedep may be already processed and deallocated. Found and tested by: kris MFC after: 2 weeks
* | When LK_NOWAIT is passed as argument to process_worklist_item(), thiskib2007-04-101-1/+4
| | | | | | | | | | | | | | | | | | | | does not prevent handle_workitem_remove() from recursing into a blocking version. Add the dirrem to worklist instead of processing it now if this is the case. Reported and tested by: kris Submitted by: tegge MFC after: 2 weeks
* | Fix an uninitialized variable warning.thompsa2007-04-101-1/+1
| |
* | Fix build, trunk is a device not an option.thompsa2007-04-101-1/+1
| |
* | Try to stabilize ZFS with regard to memory consumption:pjd2007-04-108-48/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Allow to shrink ARC down to 16MB (instead of 64MB). - Set arc_max to 1/2 of kmem_map by default. - Start freeing things earlier when low memory situation is detected. - Serialize execution of arc_lowmem(). I decided to setup minimum ZFS memory requirements to 512MB of RAM and 256MB of kmem_map size. If there is less RAM or kmem_map, a warning will be printed. World is cruel, be no better. In other words: modern file system requires modern hardware:) From ZFS administration guide: "Currently the minimum amount of memory recommended to install a Solaris system is 512 Mbytes. However, for good ZFS performance, at least one Gbyte or more of memory is recommended."
* | Reduce diff against vendor - we have now stronger check for "mutex alreadypjd2007-04-102-4/+4
| | | | | | | | initialized", so we can go back to kmem_alloc().
* | Add trunk(4) module.thompsa2007-04-102-0/+20
| |
* | Hook trunk(4) up to the build.thompsa2007-04-102-0/+3
| |
* | Add the trunk(4) driver for providing link aggregation, failover and faultthompsa2007-04-108-0/+3873
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tolerance. This driver allows aggregation of multiple network interfaces as one virtual interface using a number of different protocols/algorithms. failover - Sends traffic through the secondary port if the master becomes inactive. fec - Supports Cisco Fast EtherChannel. lacp - Supports the IEEE 802.3ad Link Aggregation Control Protocol (LACP) and the Marker Protocol. loadbalance - Static loadbalancing using an outgoing hash. roundrobin - Distributes outgoing traffic using a round-robin scheduler through all active ports. This code was obtained from OpenBSD and this also includes 802.3ad LACP support from agr(4) in NetBSD.
* | Remove unused #define.pjd2007-04-092-4/+0
| |
* | Fix a compiler warning so hash.h can be included in the kernel. This changesthompsa2007-04-091-4/+5
| | | | | | | | | | | | | | the args for hash32_stre and hash32_strne but there are no consumers in the base system and openbgpd does not use it which the initial import was for. Silence on: hackers
* | Fix build breakage.pjd2007-04-091-1/+1
| |
* | Add zfs_load here.pjd2007-04-091-0/+1
| | | | | | | | Reminded by: bmah
* | Restore the locking for the sleep/wakeup to avoid waiting an extra 1 secnjl2007-04-091-5/+11
| | | | | | | | | | if a race was lost. We're still single-threaded at this point, but just be safe for the future.
* | Clean up the root mount and mount wait code. No mutexes are needed herenjl2007-04-091-15/+10
| | | | | | | | | | since a spurious wakeup() is the only possible outcome and this is fine in the BSD programming model.
* | Add kern.hostuuid sysctl, which will be used to keep host's UUID.pjd2007-04-093-1/+7
| | | | | | | | Reviewed by: mlaier, rink, brooks, rwatson
* | The old PacketAlias* API is not exported whenpiso2007-04-092-2/+1
| | | | | | | | libalias run in kernel land.
* | throw sun4v into the check while we're at itkmacy2007-04-091-1/+1
| |
* | busdma tags are opaque on all architectures except sparc64kmacy2007-04-091-1/+2
| | | | | | | | for now simply don't compile/use on sparc64
* | LINT on ia64 requires memset symbol too. Make fire it is present by addingkan2007-04-091-0/+1
| | | | | | | | it to libkern on this architecture.
* | Sort sctp_*.c files.andre2007-04-091-8/+8
| |
* | Make use of M_ZERO in various malloc calls.scottl2007-04-091-5/+4
| |
OpenPOWER on IntegriCloud