summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bring in geom_sched, support for scheduling disk I/O requestsluigi2010-04-1215-0/+3664
| | | | | | | | | | | | in a device independent manner. Also include an example anticipatory scheduler, gsched_rr, which gives very nice performance improvements in presence of competing random access patterns. This is joint work with Fabio Checconi, developed last year and presented at BSDCan 2009. You can find details in the README file or at http://info.iet.unipi.it/~luigi/geom_sched/
* Remove svn:executable prop.rpaulo2010-04-121-0/+0
|
* - Add myself to the ports committers graphfluffy2010-04-121-0/+3
| | | | Forgot to do it when gain my commit bit :)
* fix a buffer overflow with large (100k+) number of input lines.luigi2010-04-121-2/+2
| | | | MFC after: 3 days
* Add #endif missed in r206490.marius2010-04-111-0/+1
|
* sh: Test that bogus values of PWD are not imported from the environment.jilles2010-04-111-0/+11
| | | | | | Current versions pass this test trivially by never importing PWD, but I plan to change sh to import PWD if it is an absolute pathname for the current directory, possibly containing symlinks.
* While SPARC V9 allows tininess to be detected either before or aftermarius2010-04-111-0/+3
| | | | | | | | | | | rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and UltraSPARC processors defines that in all cases tininess is detected before rounding therefore rounding up to the smallest normalized number should set the underflow flag. This change is needed for using SoftFloat on sparc64 for reference purposes. PR: 144900 Submitted by: Peter Jeremy
* Add myself to the ports committers graphrene2010-04-111-0/+2
| | | | Approved by: tabthorpe (mentor, implicit)
* Take a reference to make sure that the interface cannot go away duringbz2010-04-111-3/+8
| | | | | | | | if_clone_destroy() in case parallel threads try to. PR: kern/116837 Submitted by: Mikolaj Golub (to.my.trociny gmail.com) MFC after: 10 days
* If a file is specifically both included and excluded, then:kientzle2010-04-111-25/+26
| | | | | | | | | | | | | | | * It is not extracted (because it is excluded) * If it's not present in the archive, then an error is reported (because the file was requested and not found) * If it is present in the archive, no error is reported. Previously, this would always report an error because the exclusion prevented the entry from matching the inclusion. Also, tar is now more reluctant to report unmatched inclusions. Previously, "tar x file1 'file*'" against an archive that contained a single entry "file1" would match file1 and then report an error for the second pattern because it wasn't matched. It now considers both inclusions to be matched and reports no error.
* Check that the interface is on the list of cloned interfaces before tryingbz2010-04-111-1/+11
| | | | | | | | | to remove it to avoid panics in case of two threads trying to remove it in parallel. PR: kern/116837 Submitted by: Takahiro Kurosawa (takahiro.kurosawa gmail.com) (orig version) MFC after: 10 days
* Diff reduction against bsdtar 2.8.3kientzle2010-04-111-11/+25
|
* Diff reduction against bsdtar 2.8.3kientzle2010-04-111-1/+2
|
* Initialize the virtual memory-related resource limits in a single place.alc2010-04-113-47/+18
| | | | | | | | | | | | | Previously, one of these limits was initialized in two places to a different value in each place. Moreover, because an unsigned int was used to represent the amount of pageable physical memory, some of these limits were incorrectly initialized on 64-bit architectures. (Currently, this error is masked by login.conf's default settings.) Make vm_thread_swapin() and vm_thread_swapout() static. Submitted by: bde (an earlier version) Reviewed by: kib
* - Introduce a blessed list for sxlocks that prevents the deadlkres toattilio2010-04-111-1/+31
| | | | | | | | | | panic on those ones. [0] - Fix ticks counter wrap-up Sponsored by: Sandvine Incorporated [0] Reported by: jilles [0] Tested by: jilles MFC: 1 week
* Plug reference leaks in the link-layer code ("new-arp") that previouslybz2010-04-115-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | prevented the link-layer entry from being freed. In both in.c and in6.c (though that code path seems to be basically dead) plug a reference leak in case of a pending callout being drained. In if_ether.c consistently add a reference before resetting the callout and in case we canceled a pending one remove the reference for that. In the final case in arptimer, before freeing the expired entry, remove the reference again and explicitly call callout_stop() to clear the active flag. In nd6.c:nd6_free() we are only ever called from the callout function and thus need to remove the reference there as well before calling into llentry_free(). In if_llatbl.c when freeing entire tables make sure that in case we cancel a pending callout to remove the reference as well. Reviewed by: qingli (earlier version) MFC after: 10 days Problem observed, patch tested by: simon on ipv6gw.f.o, Christian Kratzer (ck cksoft.de), Evgenii Davidov (dado korolev-net.ru) PR: kern/144564 Configurations still affected: with options FLOWTABLE
* Update for UltraSPARC-IV{,+} and SPARC64 V, VI, VII and VIIIfx CPUs.marius2010-04-111-2/+20
|
* Fix grammar in comment.ume2010-04-111-3/+3
| | | | | Submitted by: "b. f." <bf1783__at__googlemail.com> MFC after: 3 days
* Declare all functions as static.bschmidt2010-04-111-218/+218
| | | | | Approved by: rpaulo (mentor) MFC after: 2 weeks
* Hook ieee80211_media_change() to ieee80211_vap_attach().bschmidt2010-04-111-2/+1
| | | | | Approved by: rpaulo (mentor) MFC after: 2 weeks
* iwn5000_reset_sched() is not used; #ifdef it.bschmidt2010-04-111-0/+4
| | | | | Approved by: rpaulo (mentor) MFC after: 2 weeks
* Add some missing protoypes.bschmidt2010-04-111-1/+26
| | | | | Approved by: rpaulo (mentor) MFC after: 2 weeks
* sh: Partially revert r206146, allowing double-quotes in arithmetic.jilles2010-04-112-1/+5
| | | | | | | | These do pretty much nothing (except that parentheses are ignored), but people seem to use them and allowing them does not hurt much. Single-quotes seem not to be used and cause silently different behaviour with ksh93 character constants.
* Don't forget to catch realloc() errors.ed2010-04-111-1/+4
|
* Alphabetically sort the output of lastlogin(8).ed2010-04-112-4/+22
| | | | | | | | | According to the manpage, the entries have to be sorted by uid. This is no longer possible, since our utmpx implementation is completely unaware of user IDs. You can safely add entries for multiple users sharing the same uid. Make the output less random by sorting everything by name.
* In if_detach_internal() we cannot hold the af_data lock over thebz2010-04-111-3/+9
| | | | | | | | | dom_ifdetach() calls as they might sleep for callout_drain(). Do as we do in if_attachdomain1() [r121470] and handle if_afdata_initialized earlier and call dom_ifdetach() unlocked. Discussed with: rwatson MFC after: 10 days
* In if_detach_internal() only try to do the detach run if if_attachdomain1()bz2010-04-111-1/+1
| | | | | | | | | has actually succeeded to initialize and attach. There is a theoretical possibility to drop out early in if_attachdomain1() leaving the array uninitialized if we cannot get the lock. Discussed with: rwatson MFC after: 10 days
* Fix -X.kientzle2010-04-111-1/+1
|
* Consistently specify O_BINARY when opening files.kientzle2010-04-111-5/+9
|
* Remove an unnecessary include and conditionalize some code.kientzle2010-04-112-1/+6
|
* Correct the markup for the -s option,kientzle2010-04-111-7/+30
| | | | document the iso9660:rockridge and mtree:indent options
* Try to help with a virtualized dummynet after r206428.bz2010-04-101-1/+4
| | | | | | This adds the explicit include (so far probably included through one of the few "hidden" includes in other header files) for vnet.h and adds a cast to unbreak LINT-VIMAGE.
* The lock move in rxeof necessitated a couplejfv2010-04-101-0/+5
| | | | more places to do the locking, fixes a panic.
* Handle a case when non-canonical address is loaded into the fsbase orkib2010-04-103-2/+40
| | | | | | gsbase MSR. MFC after: 3 days
* Add WPA-None support:bschmidt2010-04-106-67/+164
| | | | | | | | | | | | | | | | | | * WPA-None requires ap_scan=2: The major difference between ap_scan=1 (default) and 2 is, that no IEEE80211_IOC_SCAN* ioctls/functions are called, though, there is a dependency on those. For example the call to wpa_driver_bsd_scan() sets the interface UP, this never happens, therefore the interface must be marked up in wpa_driver_bsd_associate(). IEEE80211_IOC_SSID also is not called, which means that the SSID has not been set prior to the IEEE80211_MLME_ASSOC call. * WPA-None has no support for sequence number updates, it doesn't make sense to check for replay violations.. * I had some crashes right after the switch to RUN state, issue is that sc->sc_lastrs was not yet defined. Approved by: rpaulo (mentor) MFC after: 3 weeks
* Honor the CE bit even when the CWR bit is set.rpaulo2010-04-101-4/+2
| | | | | | PR: 145600 Submitted by: Richard Scheffenegger <rs at netapp.com> MFC after: 1 week
* Add a comment to MAINTAINERS indicating that sbin/routed is in factbms2010-04-101-0/+1
| | | | | | vendor branch code from before contrib existed in FreeBSD's history. Changes should be run by Vernon Schryver at Rhyolite first.
* When embedding the scope ID in MLDv1 output, check if the scope of the addressbms2010-04-101-2/+4
| | | | | | | | | | | being embedded is in fact link-local, before attempting to embed it. Note that this operation is a side-effect of trying to avoid recursion on the IN6 scope lock. PR: 144560 Submitted by: Petr Lampa MFC after: 3 days
* Add missing copyright shebang.marius2010-04-101-1/+1
|
* Fix a few issues related to the legacy 4.4 BSD multicast APIs.bms2010-04-101-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IPv4 addresses can and do change during normal operation. Testing by pfSense developers exposed an issue where OpenOSPFD was using the IPv4 address to leave the OSPF link-scope multicast groups on a dynamic OpenVPN tun interface, rather than using RFC 3678 with the interface index, which won't be raced when the interface's addresses change. In inp_join_group(): If we are already a member of an ASM group, and IP_ADD_MEMBERSHIP or MCAST_JOIN_GROUP ioctls are re-issued, return EADDRINUSE as per the legacy 4.4BSD multicast API. This bends RFC 3678 slightly, but does not violate POLA for apps using the old API. It also stops us falling through to kicking IGMP state transactions in what is otherwise a no-op case. [This has already been dealt with in HEAD, but make it explicit before we MFC the change to 8.] In inp_leave_group(): Fix a bogus conditional. Move the ifp null check to ioctls MCAST_LEAVE* in the switch..case where it actually belongs. If an interface was specified, by primary IPv4 address, for ioctl IP_DROP_MEMBERSHIP or MCAST_LEAVE_GROUP (an ASM full leave operation), then and only then should we look up the ifp from the IPv4 address in mreqs.imr_interface. If not, we fall through to imo_match_group() as before, but only in the IP_DROP_MEMBERSHIP case. With these changes, the legacy 4.4BSD multicast API idempotence should be mostly preserved in the SSM enabled IPv4 stack. Found by: ermal (with pfSense) MFC after: 3 days
* Add sbbc(4), a driver for the BootBus controller found in Serengeti andmarius2010-04-106-0/+1091
| | | | | | | | | | StarCat systems which provides time-of-day services for both as well as console service for Serengeti, i.e. Sun Fire V1280. While the latter is described with a device type of serial in the OFW device tree, it isn't actually an UART. Nevertheless the console service is handled by uart(4) as this allowed to re-use quite a bit of MD and MI code. Actually, this idea is stolen from Linux which interfaces the sun4v hypervisor console with the Linux counterpart of uart(4).
* Correct the DCR_IPE macro to refer to the right bit. Also improve themarius2010-04-101-2/+2
| | | | | associated comment as besides US-IV+ these bits are only available with US-III++, i.e. the 1.2GHz version of the US-III+.
* Unlike the sun4v variant, the sun4u version of SUNW,set-trap-tablemarius2010-04-101-1/+2
| | | | actually only takes one argument.
* Do as the comment suggests and determine the bus space based on the lastmarius2010-04-101-8/+5
| | | | | | | bus we actually mapped at rather than always based on the last bus we encountered while moving upward in the tree. Otherwise we might use the wrong bus space in case the bridge directly underneath the nexus doesn't require mapping, i.e. was skipped as it's the case for ssm(4) nodes.
* Correct broken build.jfv2010-04-101-1/+1
|
* Update firmware for the 6000 series Intel cards to version 9.193.4.1.bschmidt2010-04-105-8144/+8184
| | | | | Approved by: rpaulo (mentor) MFC after: 2 weeks
* iwn4965_set_txpower() uses maxpwr from EEPROM to calculate the power tobschmidt2010-04-101-0/+4
| | | | | | | | | | | set, it make sense to actually initialize that array. This fixes some issues with 4965 adapters where the TX power is crucial. This got lost somewhere while merging with the OpenBSD code. Approved by: rpaulo (mentor) Obtained from: OpenBSD MFC after: 2 weeks
* * Rename bluetooth coexistence flags, no binary change.bschmidt2010-04-103-24/+57
| | | | | | | | | | | | | | | | | | | | * Enable DC calibration and crystal calibration on Centrino Advanced-N 6250 parts. * Workaround for a HW bug (does not affect 4965AGN) that may sporadically affect latency under some rare circumstances. From a similar commit to iwlwifi. * Update sensitivity settings for 5000 series to workaround a performance bug in the DSP (1000 is not affected so we keep the old values for 5000). * Update sensitivity settings for 6000 series. * Set differential gains on 6250 too (but use a 1.0 factor, not 1.5). * Init OFDM sensitivity with min value (which depends on the chip) instead of hardcoding it to 90. * Read calibration version from ROM and set IWN_GP_DRIVER_CALIB_VER6 bit on 6x50 if version >= 6. Approved by: rpaulo (mentor) Obtained from: OpenBSD MFC after: 2 weeks
* Small whitespace cleanup.bschmidt2010-04-101-10/+8
| | | | | Approved by: rpaulo (mentor) MFC after: 2 weeks
* A few more changes from yongari:jfv2010-04-092-7/+13
| | | | | | | | | - code flow in handler could let interrupt be reenabled when not wanted. - change where the RX lock is taken to improve performance. - adapter->msix is true for MSI systems also, it needs to explicitly test for 82574, good one :)
OpenPOWER on IntegriCloud