summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Setup the correct RX/TX chainmask when we play with the antennarpaulo2010-04-091-2/+2
| | | | | | | settings. MFC after: 1 week Sponsored by: iXsystems, inc
* Use M_NOWAIT instead of M_WAITOK to avoid race conditions.rpaulo2010-04-092-13/+28
| | | | MFC after: 1 month
* Add ieee80211_{amrr,rssadapt}.c.rpaulo2010-04-091-2/+2
| | | | MFC after: 1 month
* Remove previously added if 0's.rpaulo2010-04-091-12/+0
| | | | MFC after: 1 month
* Fix recent breakage: wpi_newassoc() wasn't supposed to be removed andrpaulo2010-04-091-0/+10
| | | | | | | it needs to call ieee80211_ratectl_node_init(). Submitted by: bschmidt MFC after: 1 month
* Swap IEEE80211_RATECTL_TX_SUCCESS/IEEE80211_RATECTL_TX_FAILURE.rpaulo2010-04-091-2/+2
| | | | | Submitted by: PseudoCylon Furukoshi <moonlightakkiy at yahoo.ca> MFC after: 1 month
* Introduce the function kmem_alloc_attr(), which allocates kernel virtualalc2010-04-092-19/+100
| | | | | | | | | | | | | | | | memory with the specified physical attributes. In particular, like kmem_alloc_contig(), the caller can specify the physical address range from which the physical pages are allocated and the memory attributes (i.e., cache behavior) for these physical pages. However, in contrast to kmem_alloc_contig() or contigmalloc(), the physical pages that are allocated by kmem_alloc_attr() are not necessarily physically contiguous. This function is needed by DRM and VirtualBox. Correct an error in the prototype for kmem_malloc(). The third argument had the wrong type. Tested by: rnoland MFC after: 3 days
* Improve the handling of IPv6 configuration in rc.d. The ipv6_enabledougb2010-04-096-182/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and ipv6_ifconfig_<interface> options have already been deprecated, these changes do not alter that. With these changes any value set for ipv6_enable will emit a warning. In order to avoid a POLA violation for the deprecation of the option ipv6_enable=NO will still disable configuration for all interfaces other than lo0. ipv6_enable=YES will not have any effect, but will emit an additional warning. Support and warnings for this option will be removed in FreeBSD 10.x. Consistent with the current code, in order for IPv6 to be configured on an interface (other than lo0) an ifconfig_<interface>_ipv6 option will have to be added to /etc/rc.conf[.local]. 1. Clean up and minor optimizations for the following functions: ifconfig_up (the ipv6 elements) ipv6if ipv6_autoconfif get_if_var _ifconfig_getargs The cleanups generally were to move the "easy" tests earlier in the functions, and consolidate duplicate code. 2. Stop overloading ipv6_prefer with the ability to disable IPv6 configuration. 3. Remove noafif() which was only ever called from ipv6_autoconfif. Instead, simplify and integrate the tests into that function, and convert the test to use is_wired_interface() instead of listing wireless interfaces explicitly. 4. Integrate backwards compatibility for ipv6_ifconfig_<interface> into _ifconfig_getargs. This dramatically simplifies the code in all of the callers, and avoids a lot of other code duplication. 5. In rc.d/netoptions, add code for an ipv6_privacy option to use RFC 4193 style pseudo-random addresses (this is what windows does by default, FYI). 6. Add support for the [NO]RTADV options in ifconfig_getargs() and ipv6_autoconfif(). In the latter, include support for the explicit addition of [-]accept_rtadv in ifconfig_<interface>_ipv6 as is done in the current code. 7. In rc.d/netif add a warning if $ipv6_enable is set, and remove the set_rcvar_obsolete for it. Also remove the latter from rc.d/ip6addrctl. 8. In /etc/defaults/rc.conf: Add an example for RTADV configuration. Set ipv6_network_interfaces to AUTO. Switch ipv6_prefer to YES. If ipv6_enable is not set this will have no effect. Add a default for ipv6_privacy (NO). 9. Document all of this in rc.conf.5.
* Fix a bug where bus_dma_load_xxx() would not bounce misaligned buffersnwhitehorn2010-04-091-3/+8
| | | | | | | | | due to rounding the buffer's physical address to the beginning of its page. This fixes a panic in arge(4) when using PPPoE. Reported by: Jakob van Santen <vansanten at wisc dot edu> Reviewed by: gonzo Obtained from: amd64
* Add BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all theimp2010-04-082-0/+4
| | | | other platforms.
* Three changes:jfv2010-04-081-10/+17
| | | | | | | | | | - add CRC stripping to the RX side, this was handled by some obscure code in rxeof previously, its easier to simply have the hardware strip it now. - Add back an ALTQ change that slipped between the cracks - Add an update to the watchdog_time in the xmit code, not doing this in ixgbe caused problems, think its needed here as well.
* - Fix mutex type for miibus_mtx: it's not spinlock, it's def lockgonzo2010-04-081-1/+1
|
* Disambiguate `IPs' to a more specific term.ume2010-04-081-6/+8
| | | | | Submitted by: Garrett Cooper <yanefbsd__at__gmail.com> MFC after: 3 days
* Prevent foot-shooting in ieee80211_ratectl_node_deinit().rpaulo2010-04-081-0/+2
| | | | MFC after: 1 month
* Enhance r199804 by marking the daemonised child as immune to OOM insteadkib2010-04-081-4/+4
| | | | | | | | | of short-living parent. Only mark the master process that accepts connections, do not protect connection handlers spawned from inetd. Submitted by: Mykola Dzham <i levsha me> Reviewed by: attilio MFC after: 1 week
* People working on sysinstall are encouraged to contact randi tocperciva2010-04-081-0/+2
| | | | coordinate major changes.
* Do not leak master pty or ptmx vnode.kib2010-04-081-0/+9
| | | | | | Report and test case by: Petr Salinger <Petr.Salinger seznam cz> Reviewed by: ed MFC after: 1 week
* Important fix got clobbered in the em driver, keepingjfv2010-04-082-9/+67
| | | | | | | | | VLAN HWFILTER from being used by default, this breaks stacked pseudo devices, and as it turns out, also breaks virtual machines that happen to use VLANS (didn't know that before :). Put the fix back into the em driver, and for good measure add the same code to the igb driver where it should have been anyway.
* Diff reduction against NetBSD and add myself to AUTHORS section of thedelphij2010-04-073-13/+14
| | | | | manual page as I wrote the unpack functionality. No actual executable code change verified with md5(1).
* Allocate memory for VBE info block with malloc(9), not as static local.jkim2010-04-071-22/+28
|
* Remove extraneous '>'.emaste2010-04-071-1/+1
|
* Add EFI boot info fields.rpaulo2010-04-071-0/+7
|
* Correct beastie_saver module name.jkim2010-04-072-0/+6
|
OpenPOWER on IntegriCloud