summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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 :)
* Consistently use capital letters.yongari2010-04-091-2/+2
|
* Add preliminary support for 8168E/8111E PCIe controller.yongari2010-04-092-2/+15
| | | | | | | While I'm here simplify device description string. Tested by: Michael Beckmann < michael <> apfel dot de > MFC after: 5 days
* DUH, must be tired, I missed the second instance...jfv2010-04-091-1/+1
| | | | time for the weekend :)
* Thanks to Michael Tuexen for catching this, bit set thatjfv2010-04-091-1/+1
| | | | | keeps the clock from being reset when writing to EITR was incorrect, also there is a shared code #define for it anyway.
* Incorporate suggested improvements from yongari.jfv2010-04-092-48/+54
| | | | | | Also, from feedback, make the multiqueue code an option (EM_MULTIQUEUE) that is off by default. Problems have been seen with UDP when its on.
* This commit enables partial operation of dummynet with kernelsluigi2010-04-093-31/+57
| | | | | | | | | | | | | | | | | | | compiled with "options VIMAGE". As it is now, there is still a single instance of the pipes, and it is only usable from vnet0 (the main instance). Trying to use a pipe from a different vimage does not crash the system as it did before, but the traffic coming out from the pipe goes to the wrong place, and i still need to figure out where. Support for per-vimage pipes is almost there (just a matter of uncommenting the VNET_* definitions for dn_cfg, plus putting into the structure the remaining static variables), however i need first to figure out how init/uninit work, and also to understand where packets are ending up on exit from a pipe. In summary: vimage support for dummynet is not complete yet, but we are getting there.
* Add rc.d/ubthidhci. This small script calls usbconfig(1) to change a USBrpaulo2010-04-093-1/+67
| | | | | | Bluetooth controller from HID mode to HCI mode. MFC after: 1 week
* Building wlan_amrr is now mandatory. This is an interim fix.rpaulo2010-04-091-1/+1
|
* no need to pass an argument to dn_compat_calc_size()luigi2010-04-093-3/+3
| | | | MFC after: 3 days
* Rename the ALIGN macro to LINT_ALIGN so it does not clash with machine/param.hrdivacky2010-04-093-7/+7
| | | | | | | | | Bump the alignment to 16bytes because lint1 memory allocator is used for objects that require 16bytes alignment on amd64 (ie. val_t). This makes lint1 work when compiled with compiler(s) that use SSE for memcpy on amd64. (e.g. clang). Approved by: ed (mentor)
* Shift the version of perl used by the release build process over tokensmith2010-04-092-2/+2
| | | | | | | | | perl-5.10. This aligns the release build process with the current default version of perl in the ports tree. I'll MFC this to all active branches. MFC after: 3 days
* Pass the HTTP_PROXY and FTP_PROXY environment variables through in additionkensmith2010-04-091-1/+1
| | | | | | | | | to FTP_PASSIVE_MODE so release building works for a machine that needs to use a proxy. PR: misc/137688 Submitted by: Michael Leun MFC after: 2 weeks
* Default the machdep.lapic_allclocks to be enabled in order to cope withattilio2010-04-092-2/+2
| | | | | | | | | | broken atrtc. Now if you want more correct stats on profhz and stathz it may be disabled by setting to 0. Reported by: A. Akephalos <akephalos dot akephalos at gmail dot com>, Jakub Lach <jakub_lach at mailplus dot pl> MFC: 1 week
OpenPOWER on IntegriCloud