summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make the in-kernel logic for the SIOCSIFVNET, SIOCSIFRVNET ioctlsbz2009-07-263-58/+90
| | | | | | | | | | | | | | | | | | | | (ifconfig ifN (-)vnet <jname|jid>) work correctly. Move vi_if_move to if.c and split it up into two functions(*), one for each ioctl. In the reclaim case, correctly set the vnet before calling if_vmove. Instead of silently allowing a move of an interface from the current vnet to the current vnet, return an error. (*) There is some duplicate interface name checking before actually moving the interface between network stacks without locking and thus race prone. Ideally if_vmove will correctly and automagically handle these in the future. Suggested by: rwatson (*) Approved by: re (kib)
* Make ifconfig ifN -vnet <jname|jid> actually work:bz2009-07-261-7/+20
| | | | | | | | | | - fix ifconfig to ignore the non-existent interface in the current network stack in case of '-vnet'. - in ifconfig: actually use the local variables defined for the vnet functions rather than modifying the global. Reviewed by: rwatson Approved by: re (kib)
* Eliminate a stale paragraph from the BUGS section. This "bug" wasalc2009-07-261-8/+1
| | | | | | eliminated in r195693. Approved by: re (kensmith)
* Fix syntax error, makefile comments start with #.kib2009-07-251-1/+1
| | | | | Submitted by: bde Approved by: re (kensmith)
* Add note, that ahci(4) and siis(4) supersede ata(4) drivers.mav2009-07-251-0/+3
| | | | Approved by: re (implicitly)
* PMP provides 16 targets (15 drives + itself).mav2009-07-251-1/+1
| | | | Approved by: re (implicitly)
* Libarchive recognizes hardlinked files on ISO images,kientzle2009-07-251-0/+1
| | | | | | | | | | | but returned them incorrectly, causing tar to actually erase the resulting file while trying to restore the link. This one-line fix corrects the hardlink descriptions to avoid this problem. Thanks to Jung-uk Kim for pointing this out. Approved by: re (kib)
* Add ahci and siis drivers to NOTES.mav2009-07-251-0/+9
| | | | Approved by: re (implicitly)
* Some jail parameters (in particular, "ip4" and "ip6" for IP addressjamie2009-07-257-165/+277
| | | | | | | | | restrictions) were found to be inadequately described by a boolean. Define a new parameter type with three values (disable, new, inherit) to handle these and future cases. Approved by: re (kib), bz (mentor) Discussed with: rwatson
* Change the name displayed in sysinstall(8) from 'Wizard Mode'trasz2009-07-253-4/+4
| | | | | | | to 'Expert Mode', to make it less confusing to new users, to whom a 'wizard' is a set of simple dialogs with the 'next >>>' button. Approved by: re (kensmith)
* Catch ipfw up to the rest of the vimage code.julian2009-07-251-109/+163
| | | | | | It got left behind when it moved to its new location. Approved by: re (kensmith)
* Improvement on the last change, this gives a precisejfv2009-07-243-18/+18
| | | | | | | way to tell the one and only interface that a vlan event is for. Thanks to John Baldwin for the patch. Approved by: re
* Introduce a new sysctl process mib, kern.proc.groups which adds thebrooks2009-07-243-2/+81
| | | | | | | | | | | | ability to retrieve the group list of each process. Modify procstat's -s option to query this mib when the kinfo_proc reports that the field has been truncated. If the mib does not exist, fall back to the truncated list. Reviewed by: rwatson Approved by: re (kib) MFC after: 2 weeks
* Bump __FreeBSD_version for the introduction of OBJT_SG.jhb2009-07-241-1/+1
| | | | Approved by: re (kensmith)
* This delta fixes two bugs:jfv2009-07-243-7/+25
| | | | | | | | | | | - When a vlan event occurs a check was not made that the event was actually for the interface, thus resulting in a panic. All three drivers have this vulnerability. Add a check for this condition. - Secondly, there was a duplicate buf_ring free in the em driver resulting in a panic on unload. Remove. Approved by: re
* A small number of systems in the ICH9/10 family have a flashjfv2009-07-241-22/+2
| | | | | | | | | part that is made up of 8K banks rather than 4K, if these systems are using bank 1 then the last change in this code breaks the bank read, resulting in an invalid checksum of the eeprom during driver load. This change fixes this. Approved by: re
* revert OACTIVE part of r195845; instead fix the comment so it does not refersam2009-07-241-1/+13
| | | | | | to the old hack removed in r193312 Approved by: re (implicit)
* Update for vaps:sam2009-07-249-114/+32
| | | | | | | | | o do not force monitor mode; the wlanX ifnet must be an ahdemo mode vap o move channel change work before marking ifnet up to avoid churning the state machine o change default ifnet name to "wlan0" Approved by: re (kensmith)
* correct handling of IFF_PROMISC; this should not be pushed to the parentsam2009-07-241-1/+2
| | | | | | | device except for monitor and ahdemo mode vaps Reviewed by: rpaulo Approved by: re (kensmith)
* monitor mode vaps are meant to be read-only so they can operate on anysam2009-07-241-5/+18
| | | | | | | | frequency w/o regulatory issues, do this by hooking if_transmit and if_output with routines that discard all transmits Reviewed by: thompsa, cbzimmer (intent) Approved by: re (kensmith)
* o kill old code no longer needed after r193312sam2009-07-241-14/+3
| | | | | | o count output packets+errors for frames sent through ieee80211_output Approved by: re (kensmith)
* Remove debugging that crept in with previous commit.jhb2009-07-241-5/+1
| | | | | Reported by: nwhitehorn Approved by: re (kib)
* Revert the changes to struct kinfo_proc in r194498. Instead, fillbrooks2009-07-243-8/+26
| | | | | | | | | | in up to 16 (KI_NGROUPS) values and steal a bit from ki_cr_flags (all bits currently unused) to indicate overflow with the new flag KI_CRF_GRP_OVERFLOW. This fixes procstat -s. Approved by: re (kib)
* Add a new type of VM object: OBJT_SG. An OBJT_SG object is very similar tojhb2009-07-2424-19/+313
| | | | | | | | | | | a device pager (OBJT_DEVICE) object in that it uses fictitious pages to provide aliases to other memory addresses. The primary difference is that it uses an sglist(9) to determine the physical addresses for a given offset into the object instead of invoking the d_mmap() method in a device driver. Reviewed by: alc Approved by: re (kensmith) MFC after: 2 weeks
* Move the check to ensure the locate database has the minimum required sizejhb2009-07-242-3/+2
| | | | | | | | | | when using mmap() before invoking mmap(). This avoids a confusing error message when locate is invoked against a zero-size database after the recent change to make mmap() fail requests to map 0 bytes. Submitted by: Jaakko Heinonen jh of saunalahti dot fi Approved by: re (kensmith) MFC after: 1 week
* Make libkvm work on live systems and crashdumps with andbz2009-07-234-9/+412
| | | | | | | | | | | | | | | | | | without VIMAGE virtualization in the kernel. If we cannot resolve a symbol try to see if we can find it with prefix of the virtualized subsystem, currently only "vnet_entry" by identifying either the vnet of the current process for a live system or the vnet of proc0 (or of dumptid if compiled in a non-default way). The way this is done currently allows us to only touch libkvm but no single application. Once we are going to virtualize more subsystems we will have to review this decision for better scaling. Submitted by: rwatson (initial version of kvm_vnet.c, lots of ideas) Reviewed by: rwatson Approved by: re (kib)
* Introduce and use a sysinit-based initialization scheme for virtualrwatson2009-07-2328-721/+397
| | | | | | | | | | | | | | | | | | | | | | | | | | | | network stacks, VNET_SYSINIT: - Add VNET_SYSINIT and VNET_SYSUNINIT macros to declare events that will occur each time a network stack is instantiated and destroyed. In the !VIMAGE case, these are simply mapped into regular SYSINIT/SYSUNINIT. For the VIMAGE case, we instead use SYSINIT's to track their order and properties on registration, using them for each vnet when created/ destroyed, or immediately on module load for already-started vnets. - Remove vnet_modinfo mechanism that existed to serve this purpose previously, as well as its dependency scheme: we now just use the SYSINIT ordering scheme. - Implement VNET_DOMAIN_SET() to allow protocol domains to declare that they want init functions to be called for each virtual network stack rather than just once at boot, compiling down to DOMAIN_SET() in the non-VIMAGE case. - Walk all virtualized kernel subsystems and make use of these instead of modinfo or DOMAIN_SET() for init/uninit events. In some cases, convert modular components from using modevent to using sysinit (where appropriate). In some cases, do minor rejuggling of SYSINIT ordering to make room for or better manage events. Portions submitted by: jhb (VNET_SYSINIT), bz (cleanup) Discussed with: jhb, bz, julian, zec Reviewed by: bz Approved by: re (VIMAGE blanket)
* Eliminate unnecessary cache and TLB flushes by pmap_change_attr(). (Thisalc2009-07-231-4/+11
| | | | | | optimization was implemented in the amd64 version roughly 1 year ago.) Approved by: re (kensmith)
* Fix serial console on Apple Xserve G5 by falling back to input-device-1nwhitehorn2009-07-231-9/+32
| | | | | | | | | | if input-device is unavailable. The Xserve G5 defaults to using screen/keyboard for output-device/input-device even if these are not installed, and then falls back to serial ports at boot time. Reviewed by: marcel Hardware from: grehan Approved by: re (kib)
* Add the -d switch to the usage message.brian2009-07-231-1/+1
| | | | | | Submitted by: Emil Mikulic - emil at dmr dot ath dot cx Approved by: re (kib) MFC after: 1 week
* It is believed the last of the base system that could have an issue withkensmith2009-07-221-10/+10
| | | | | | | IDs larger than 16-bits has been updated so adjust sysinstall to allow IDs up to the current system-wide size of 32-bits. Approved by: re (kib)
* It is believed the last subsystem that limited ID sizes to somethingkensmith2009-07-221-7/+18
| | | | | | | | | | other than the current system-wide size (32-bits) has been updated so for now just cautiously turn the check off. While here fix the check for IDs being too large which doesn't work due to type mis-matches. Reviewed by: jhb (previous version) Approved by: re (kib) MFC after: 1 month (type mis-match fixes only)
* When vfs.newnfs.callback_addr is set to an IPv4 address, thermacklem2009-07-221-1/+1
| | | | | | | | experimental NFSv4 client might try and use it as an IPv6 address, breaking callbacks. The fix simply initializes the isinet6 variable for this case. Approved by: re (kensmith), kib (mentor)
* Fix extattr_list_file(2) on ZFS in case the attribute directorytrasz2009-07-221-3/+3
| | | | | | | | | | doesn't exist and user doesn't have write access to the file. Without this fix, it returns bogus value instead of 0. For some reason this didn't manifest on my kernel compiled with -O0. PR: kern/136601 Submitted by: Jaakko Heinonen <jh at saunalahti dot fi> Approved by: re (kib)
* Add changes to the experimental nfs client to use the PBDRY flag forrmacklem2009-07-223-7/+14
| | | | | | | | msleep(9) when a vnode lock or similar may be held. The changes are just a clone of the changes applied to the regular nfs client by r195703. Approved by: re (kensmith), kib (mentor)
* When the page caching attributes are changed, after new mapping iskib2009-07-224-14/+66
| | | | | | | | | | | | | | | established, OS shall flush the caches on all processors that may have used the mapping previously. This operation is not needed if processors support self-snooping. If not, but clflush instruction is implemented on the CPU, series of the clflush can be used on the mapping region. Otherwise, we have to flush the whole cache. The later operation is very expensive, and AMD-made CPUs do not have self-snooping. Implement cache flush for remapped region by using clflush for amd64, when supported by CPU. Proposed and reviewed by: alc Approved by: re (kensmith)
* When using an NFSv4 mount in the experimental nfs client with delegationsrmacklem2009-07-221-1/+1
| | | | | | | | | | | being issued from the server, there was a case where an Open issued locally based on the delegation would be released before the associated vnode became inactive. If the delegation was recalled after the open was released, an Open against the server would not have been acquired and subsequent I/O operations would need to use the special stateid of all zeros. This patch fixes that case. Approved by: re (kensmith), kib (mentor)
* mxge's tunable hw.mxge.rss_hash_type cannot be set from thegallatin2009-07-222-2/+3
| | | | | | | | | | | | loader, because it uses a reserved suffix (_type). Fix this by removing the "_" and renaming the tunable to hw.mxge.rss_hashtype. The old (rss_hash_type) tunable is still fetched, in case people load the driver via scripts. When both are present in the kernel environment, the new value (hw.mxge.rss_hashtype) overrides the old value. Approved by: re (kib)
* Remove the "dedicated disk mode" partitioning option from sysinstall, incperciva2009-07-221-16/+2
| | | | | | | | | | both the disk partitioning screen (the 'F' key) and via install.cfg (the VAR_DEDICATED_DISK option). This functionality is currently broken in 8.x due to libdisk and geom generating different partition names; this commit merely acts to help steer users away from the breakage. Submitted by: randi Approved by: re (kensmith)
* Output DWARF debug information for global 'using' declarations, insteadbms2009-07-221-1/+1
| | | | | | | | | | | of just blowing up. A very similar change to this exists which is GPLv3 licensed, this is my own change. This problem was triggered by running the Boost regression tests. See also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31899 Reviewed by: luigi Approved by: re (kib)
* sysctl_msec_to_ticks is used with both virtualized andbz2009-07-214-16/+17
| | | | | | | | | | | | | | | non-vrtiualized sysctls so we cannot used one common function. Add a macro to convert the arg1 in the virtualized case to vnet.h to not expose the maths to all over the code. Add a wrapper for the single virtualized call, properly handling arg1 and call the default implementation from there. Convert the two over places to use the new macro. Reviewed by: rwatson Approved by: re (kib)
* store mesh timers as ticks and sysctls for changing the defaultssam2009-07-213-39/+43
| | | | | Reviewed by: rpaulo Approved by: re (kib)
* Correct handling of keys that already have a hardware/device key index:sam2009-07-212-6/+8
| | | | | | | | | | | | this was broken in r183248 when the check of wk_keyix was replaced by a check of IEEE80211_KEY_DEVKEY (because the flag was clobbered). Define IEEE80211_KEY_DEVICE to specify flags that are owned by net80211/driver and use this to preserve IEEE80211_KEY_DEVKEY so we don't ask the driver for another key index when we already have one. Testing by: Daniel Thiele, Wes Morgan Reviewed by: rpaulo Approved by: re (kib)
* update for recent mesh additionssam2009-07-211-1/+17
| | | | Approved by: re (kib)
* correct setup of opt_ddb.hsam2009-07-211-1/+1
| | | | | Submitted by: jkim Approved by: re (kib)
* Fix handling of AR_RX_FILTER_BSSID: write the shadow value for AR_MISC_MODEsam2009-07-211-5/+5
| | | | | | | so other register writes preserve the setting of AR_MISC_MODE_BSSID_MATCH_FORCE. Reviewed by: rpaulo Approved by: re (kib)
* Add a MD __PCI_BAR_ZERO_VALID which denotes that BARs containing 0marius2009-07-212-8/+17
| | | | | | | | | | | | | actually specify valid bases that should be treated just as normal. The PCI specifications have no indication that 0 would be a magic value indicating a disabled BAR as commonly used on at least amd64 and i386 but not sparc64. It's unclear what to do in pci_delete_resource() instead of writing 0 to a BAR though as there's no (other) way do disable individual BARs so its decoding is left enabled in case of __PCI_BAR_ZERO_VALID for now. Approved by: re (kib), jhb MFC after: 1 week
* track whether any mesh vaps are present to correctly setup the rx filtersam2009-07-212-1/+6
| | | | | | | when, for example, an ap vap is created first Reviewed by: rpaulo Approved by: re (kib)
* Catch up with r195249, "Improve the handling of cpuset with interrupts."alc2009-07-211-2/+3
| | | | | | | Specifically, update the return type of xenpic_assign_cpu() so that this file compiles again. Approved by: re (kib)
* Fix the logic to count the number of "live interfaces". With this changesam2009-07-211-9/+11
| | | | | | | | dhclient now terminates when the underlying ifnet is destroyed (e.g. on card eject). Reviewed by: brooks Approved by: re (kib)
OpenPOWER on IntegriCloud