summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* kill dead codesam2005-02-231-7/+1
| | | | Noticed by: Coverity Prevent analysis tool
* fix potential invalid index into ip_protox arraysam2005-02-231-2/+2
| | | | Noticed by: Coverity Prevent analysis tool
* Unbreak CARP build on 64-bit architectures.mux2005-02-231-1/+1
| | | | Tested on: sparc64
* - Only the xlock holder should be calling VOP_LOCK on a vp once VI_XLOCKjeff2005-02-231-0/+5
| | | | | | | has been set. Assert that this is the case so that we catch filesystems who are using naked VOP_LOCKs in illegal cases. Sponsored by: Isilon Systems, Inc.
* - Add a check for xlock in vop_lock_assert. Presently the xlock isjeff2005-02-221-1/+2
| | | | | | | considered to be as good as an exclusive lock, although there is still a possibility of someone acquiring a VOP LOCK while xlock is held. Sponsored by: Isilon Systems, Inc.
* - Add VOP locking asserts in several functions that have been implicated injeff2005-02-222-0/+5
| | | | recent deadlocks.
* Add endianness support to cap_mkdb(1), useful for cross builds.ru2005-02-227-10/+65
|
* MFi386: r1.17: Treat pin 0 as IRQ 0 rather than ExtINT if mixed mode is notjhb2005-02-221-2/+3
| | | | enabled by the enumerator.
* Belkin F5D5020 is an OEM'd card from RACORE based on the AX88190imp2005-02-222-1/+2
| | | | | | chipset. Add support for this card. Office Max has them on sale and I was surprised that we didn't have it in our supported list when I plugged it in...
* Add a stratigic newlineimp2005-02-221-0/+1
|
* Add a entry for the Compaq R3000Z to indicate that it has the weird MADTjhb2005-02-221-0/+7
| | | | IRQ 0 quirk.
* - Add a new quirk to indicate that pin 0 of the first I/O APIC is reallyjhb2005-02-223-7/+28
| | | | | | | | | IRQ 0 and not an ExtINT pin. The MADT enumerators ignore the PC-AT flag and ignore overrides that map IRQ 0 to pin 2 when this quirk is present. - Add a block comment above the quirks to document each quirk so that we can use more verbose descriptions quirks. MFC after: 2 weeks
* If mixed mode is not enabled by the APIC enumerator (MPTable always does,jhb2005-02-221-2/+3
| | | | | | ACPI MADT only does if the PC-AT flag is set), then don't assume that pin 0 on the first I/O APIC is an ExtINT pin. Instead, assume that it is ISA IRQ 0.
* remove dead codesam2005-02-221-3/+0
| | | | Submitted by: Coverity Prevent analysis tool
* Minor style nits missed in earlier passesimp2005-02-222-5/+4
|
* remove dead code (inside a DEBUG ifdef)sam2005-02-221-6/+2
| | | | Submitted by: Coverity Prevent analysis tool
* Zero the v_un container field to make sure everything is gone.phk2005-02-221-1/+1
|
* Group the fields in struct vnode by their function and stick commentsphk2005-02-221-26/+59
| | | | there to tell what the function is.
* We may not have an actual cdev at this point.phk2005-02-221-0/+3
|
* Connect memguard(9) to the build.brueffer2005-02-221-0/+1
|
* Bring back the full packet destination manipulation for 'ipfw fwd'andre2005-02-225-2/+38
| | | | | | | | | | | | | | | | | | | | with the kernel compile time option: options IPFIREWALL_FORWARD_EXTENDED This option has to be specified in addition to IPFIRWALL_FORWARD. With this option even packets targeted for an IP address local to the host can be redirected. All restrictions to ensure proper behaviour for locally generated packets are turned off. Firewall rules have to be carefully crafted to make sure that things like PMTU discovery do not break. Document the two kernel options. PR: kern/71910 PR: kern/73129 MFC after: 1 week
* Use &man.memguard.9; entity.hrs2005-02-222-2/+2
|
* Xref memguard(9)brueffer2005-02-222-1/+3
|
* First cut at a manpage for the MemGuard debugging allocator.brueffer2005-02-221-0/+116
| | | | | most content from: bmilekic mdoc lessons by: ru
* Remove promisc counter from parent interface in carp_clone_destroy(),glebius2005-02-221-0/+1
| | | | | | | | | | | | so that parent interface is not left in promiscous mode after carp interface is destroyed. This is not perfect, since promisc counter is added when carp interface is assigned an IP address. However, when address is removed parent interface is still in promiscuous mode. Only removal of carp interface removes promisc from parent. Same way in OpenBSD. Sponsored by: Rambler
* Reap more benefits from DEVFS:phk2005-02-226-39/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | List devfs_dirents rather than vnodes off their shared struct cdev, this saves a pointer field in the vnode at the expense of a field in the devfs_dirent. There are often 100 times more vnodes so this is bargain. In addition it makes it harder for people to try to do stypid things like "finding the vnode from cdev". Since DEVFS handles all VCHR nodes now, we can do the vnode related cleanup in devfs_reclaim() instead of in dev_rel() and vgonel(). Similarly, we can do the struct cdev related cleanup in dev_rel() instead of devfs_reclaim(). rename idestroy_dev() to destroy_devl() for consistency. Add LIST_ENTRY de_alias to struct devfs_dirent. Remove v_specnext from struct vnode. Change si_hlist to si_alist in struct cdev. String new devfs vnodes' devfs_dirent on si_alist when we create them and take them off in devfs_reclaim(). Fix devfs_revoke() accordingly. Also don't clear fields devfs_reclaim() will clear when called from vgone(); Let devfs_reclaim() call dev_rel() instead of vgonel(). Move the usecount tracking from dev_rel() to devfs_reclaim(), and let dev_rel() take a struct cdev argument instead of vnode. Destroy SI_CHEAPCLONE devices in dev_rel() (instead of devfs_reclaim()) when they are no longer used. (This should maybe happen in devfs_close() instead.)
* Typo in comment.glebius2005-02-221-1/+1
|
* Follow v_id changes in NFSv[23]phk2005-02-221-13/+9
|
* vp->v_id is a private field for the vfs namecache and it is a big mistakephk2005-02-222-36/+34
| | | | | | | that NFS ever started using it and an even bigger that it got copied&pasted to nwfs and smbfs. Replace with use of vhold()/vdrop().
* When prepending an LCC SNAP header to an atalk outgoing ethernet packet,rwatson2005-02-221-1/+1
| | | | | | | allocate the additional mbuf (if needed) using a non-sleeping memory allocation. MFC after: 7 days
* Fix wrong wording.hrs2005-02-222-8/+8
| | | | Submitted by: ceri
* Use vn_printf() instead of home-rolling.phk2005-02-221-10/+2
|
* vp->v_id is a private field for the vfs namecache and it is a big mistakephk2005-02-221-13/+9
| | | | | | | that NFS ever started using it. Long time ago I added the necessary vhold()/vdrop() calls to replace it, but forgot to remove the v_id code. Do it now.
* Make dev_ref() require the dev_lock() to be held and use it fromphk2005-02-222-3/+2
| | | | devfs instead of directly frobbing the si_refcount.
* When generating a phase II ARP lookup from aarpwhohas(), use arwatson2005-02-221-1/+1
| | | | | | non-sleeping mbuf allocation. MFC after: 1 week
* In the ddp_output() path, which can be called in a variety of threadingrwatson2005-02-221-2/+2
| | | | | | and locking contexts, use a non-sleeping allocation for mbufs. MFC after: 1 week
* - In if_link_state_change() extract function body from if-block, to improveglebius2005-02-221-19/+25
| | | | | | | | readability. - Call carp_carpdev_state() from if_link_state_change() if interface has associated CARP interface. Sponsored by: Rambler
* Convert the aa_ifaddr timeout to a callout, and run the aarprobe calloutrwatson2005-02-224-14/+24
| | | | | | | MPSAFE. Acquire the aarptab_mtx to make sure that the callout and msleep in the ioctl thread don't race. MFC after: 1 week
* Remove vfinddev(), it is generally bogus when faced with jails andphk2005-02-222-21/+0
| | | | chroot and has no legitimate use(r)s in the tree.
* Use afswch->af_other_status for carp_status() and pfsync_status().glebius2005-02-222-6/+6
| | | | Sponsored by: Rambler
* Neuter DRM(mapbufs) until somebody finds time to try to fix it.phk2005-02-221-0/+4
| | | | | | It is _never_ OK to find a vnode from a struct cdev because you have no way of telling if you get the right one. You might be in jail or chroot for instance.
* Add CARP to kernel build.glebius2005-02-221-0/+1
|
* Neuter linux_ustat() until somebody finds time to try to fix it.phk2005-02-221-4/+9
| | | | | | | | | | | | | | | The fundamental problem is that we get only the lower 8 bits of the minor device number so there is no guarantee that we can actually find the disk device in question at all. This was probably a bigger issue pre-GEOM where the upper bits signaled which slice were in use. The secondary problem is how we get from (partial) dev_t to vnode. The correct implementation will involve traversing the mount list looking for a perfect match or a possible match (for truncated minor).
* New release notes:hrs2005-02-222-0/+10
| | | | CARP from OpenBSD.
* When invoking callout_init(), spell '1' as "CALLOUT_MPSAFE".rwatson2005-02-221-1/+1
| | | | MFC after: 3 days
* Add CARP (Common Address Redundancy Protocol), which allows multipleglebius2005-02-2228-12/+2796
| | | | | | | | | | | | | hosts to share an IP address, providing high availability and load balancing. Original work on CARP done by Michael Shalayeff, with many additions by Marco Pfatschbacher and Ryan McBride. FreeBSD port done solely by Max Laier. Patch by: mlaier Obtained from: OpenBSD (mickey, mcbride)
* New release notes:hrs2005-02-222-6/+36
| | | | | | | | | 32MB memory allocation for legacy PCI bridges, pbio(4), and vge(4) polling support. MFC: IPv6 MTU feedback disabled.
* We can make code simplier after last change.glebius2005-02-221-2/+2
| | | | Noticed by: Andrew Thompson
* Fix the prototypes by addings some constness. This should have beenharti2005-02-221-2/+2
| | | | committed together with the commit to dir.c:1.48.
* Do not print kernel debugging on console. In case of serial consoleglebius2005-02-221-1/+1
| | | | | | | | | | | | | | this can cause a really heavy load on system. Several kernel debugging messages can be triggered even remotely (e.g. bad ARP replies). Use kern.warning instead, so that really significant messages still will be printed on console. Reviewed by: current@ MFC after: 1 week Security: this change fixes a DoS condition, when default system console is serial, and box is flooded with bogus ARP packets
OpenPOWER on IntegriCloud