summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sendfile doesn't modify the vnode - acquire vnode lock sharedkmacy2009-04-121-1/+1
| | | | Reviewed by: ups, jeffr
* Merge from libarchive.googlecode.com r756,r761:kientzle2009-04-122-0/+319
| | | | Document the new archive_read_disk API.
* Merge from libarchive.googlecode.com:kientzle2009-04-122-5/+11
| | | | | | | | r751: Change __archive_strncat() to use a void * source, which reduces the amount of casting needed to use this with "char", "signed char" and "unsigned char". r752: Use additions instead of multiplications when growing buffer; faster and less chance of overflow.
* Merge r881 from libarchive.googlecode.com: The "empty" formatkientzle2009-04-121-2/+3
| | | | should not be recognized if there is a read error.
* Rework the way we get the cacheline size. Instead of having a table ofnwhitehorn2009-04-123-13/+42
| | | | | | CPUs known to use 128 byte cache lines and defaulting to 32, use the dcbz instruction to measure it. Also make dcbz behave the way you would expect on PPC 970.
* Update stats in struct ipstat using four new macros, IPSTAT_ADD(),rwatson2009-04-1113-101/+106
| | | | | | | | | IPSTAT_INC(), IPSTAT_SUB(), and IPSTAT_DEC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days
* Any tar program should work here; the explicitkientzle2009-04-111-2/+2
| | | | reference to bsdtar is misleading.
* Remove execute permission from the memory allocated by sbrk().alc2009-04-111-1/+1
| | | | | | Pre-announced on: -arch (3/31/09) Discussed with: rwatson Tested by: marius (sparc64)
* Update stats in struct tcpstat using two new macros, TCPSTAT_ADD() andrwatson2009-04-1113-132/+136
| | | | | | | | TCPSTAT_INC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days
* Remove conditionally compiled time counter statistics; tools likerwatson2009-04-111-31/+0
| | | | | | | | DTrace, kernel profiling, etc, can provide this information without the overhead. MFC after: 3 days Suggested by: bde
* Fix recognition of kernel-mode traps that pass through the KDB trap handlernwhitehorn2009-04-111-4/+2
| | | | | | | | | | but do not actually invoke KDB. This includes recoverable machine checks encountered in kernel mode. This patch causes machines with Grackle host-PCI bridges to be able to correctly enumerate them again. MFC after: 3 days
* Fix v_cache_dd handling for negative entries. v_cache_dd pointer waskan2009-04-111-13/+14
| | | | | | | | | | not populated in parent directory if negative entry was being created, yet entry itself was added to the nc_neg list. It was possible for parent vnode to get discarded later, leaving negative entry pointing to now unused memory block. Reported by: dho Revewed by: kib
* Revert previous commit that commented out some bpf functions.rpaulo2009-04-115-9/+9
| | | | | | Unconstify arguments of bpf_image(), bpf_filter() and bpf_dump(). This is needed because some ports rely heavely on these arguments (some of them even roll out their own implemenentations of bpf_dump).
* GNU Pth has some fragile kludges that were broken by r189828.das2009-04-111-0/+2
| | | | | | I've discussed this with the Pth maintainer and no clear solution has emerged on the ports side of things, so for now, hack around the issue in signal.h.
* When zapping v_cache_dd for !MAKEENTRY case in cache_lookup(), we shallkib2009-04-111-0/+2
| | | | | | lock cache as writer. Reviewed by: kan
* What's the point of adjusting a checksum if we are going to toss thepiso2009-04-111-7/+4
| | | | packet? Anticipate the check/return code.
* Plug two bugs introduced with modules conversion:piso2009-04-112-7/+5
| | | | | | -UdpAliasIn(): correctly check return code after modules ran. -alias_nbt: in case of malformed packets (or some other unrecoverable error), toss the packet.
* Style fixes to the newfs_msdos manpage.ed2009-04-111-8/+9
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Remove stale comments.piso2009-04-111-3/+0
|
* Update documentation (forgotten in r190929).ed2009-04-111-4/+5
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Do not prepend /dev/ when -C is used.ed2009-04-112-5/+7
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* When using -C, do not warn when the file is not a character device, but warn ↵ed2009-04-111-2/+7
| | | | | | when it is not a regular file. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Fix a bug in r185587.ed2009-04-111-2/+3
| | | | | | | fstat(fd, &sb) was not executed unconditionally anymore so sb was read uninitialised when -C is used. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Use ftruncate() instead of lseek()+write()+lseek() to set the createded2009-04-111-5/+1
| | | | | | file (-C) to the requested size. Submitted by: Christoph Mallon <christoph mallon gmx de>
* MFi386: revision 190919nyan2009-04-111-29/+8
| | | | | | | | Simplify in/out functions. Remove a hack to generate more efficient code for port numbers below 0x100, which has been obsolete for at least ten years, because GCC has an asm constraint to specify that.
* De-static local variables in main() (which is not recursive) and const-ifyed2009-04-111-10/+10
| | | | | | others. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Show -@ and -C in usage, which were added in r185587.ed2009-04-111-0/+2
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Clean up the usage() function to use a single fprintf().ed2009-04-111-26/+25
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Simplify in/out functions (for i386 and AMD64).ed2009-04-114-216/+32
| | | | | | | | Remove a hack to generate more efficient code for port numbers below 0x100, which has been obsolete for at least ten years, because GCC has an asm constraint to specify that. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Remove 'IMPLEMENTATION NOTES' section from acl(9); it was just a copy/pastetrasz2009-04-111-60/+0
| | | | from <sys/acl.h> and it would get out-of-date pretty soon.
* Bump __FreeBSD_version to 800077 for the removal of VOP_LEASE -- thisrwatson2009-04-111-1/+1
| | | | | changes the size of the vop_vector array and therefore requires file system modules to be rebuilt.
* Fix broken case where caused by last patch whererrs2009-04-111-1/+2
| | | | | a user uses 0.0.0.0/0 as an alias for default. Obtained from: Mykola Dzham (freebsd@levsha.org.ua)
* Previously, when vm_page_free_toq() was performed on a page belonging toalc2009-04-111-4/+4
| | | | | | | | | | | | | | | a reservation, unless all of the reservation's pages were free, the reservation was moved to the head of the partially-populated reservations queue, where it would be the next reservation to be broken in case the free page queues were emptied. Now, instead, I am moving it to the tail. Very likely this reservation is in the process of being freed in its entirety, so placing it at the tail of the queue makes it more likely that the underlying physical memory will be returned to the free page queues as one contiguous chunk. If a reservation must be broken, it will, instead, be the longest unchanged reservation, which is arguably the reservation that is least likely to ever achieve promotion or be freed in its entirety. MFC after: 6 weeks
* Kill hard sentence break added in the previous revision.trhodes2009-04-111-1/+4
|
* Bump doc date for previous changes.trhodes2009-04-111-1/+1
|
* Introduce vnet module registration / initialization framework withzec2009-04-1116-28/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dependency tracking and ordering enforcement. With this change, per-vnet initialization functions introduced with r190787 are no longer directly called from traditional initialization functions (which cc in most cases inlined to pre-r190787 code), but are instead registered via the vnet framework first, and are invoked only after all prerequisite modules have been initialized. In the long run, this framework should allow us to both initialize and dismantle multiple vnet instances in a correct order. The problem this change aims to solve is how to replay the initialization sequence of various network stack components, which have been traditionally triggered via different mechanisms (SYSINIT, protosw). Note that this initialization sequence was and still can be subtly different depending on whether certain pieces of code have been statically compiled into the kernel, loaded as modules by boot loader, or kldloaded at run time. The approach is simple - we record the initialization sequence established by the traditional mechanisms whenever vnet_mod_register() is called for a particular vnet module. The vnet_mod_register_multi() variant allows a single initializer function to be registered multiple times but with different arguments - currently this is only used in kern/uipc_domain.c by net_add_domain() with different struct domain * as arguments, which allows for protosw-registered initialization routines to be invoked in a correct order by the new vnet initialization framework. For the purpose of identifying vnet modules, each vnet module has to have a unique ID, which is statically assigned in sys/vimage.h. Dynamic assignment of vnet module IDs is not supported yet. A vnet module may specify a single prerequisite module at registration time by filling in the vmi_dependson field of its vnet_modinfo struct with the ID of the module it depends on. Unless specified otherwise, all vnet modules depend on VNET_MOD_NET (container for ifnet list head, rt_tables etc.), which thus has to and will always be initialized first. The framework will panic if it detects any unresolved dependencies before completing system initialization. Detection of unresolved dependencies for vnet modules registered after boot (kldloaded modules) is not provided. Note that the fact that each module can specify only a single prerequisite may become problematic in the long run. In particular, INET6 depends on INET being already instantiated, due to TCP / UDP structures residing in INET container. IPSEC also depends on INET, which will in turn additionally complicate making INET6-only kernel configs a reality. The entire registration framework can be compiled out by turning on the VIMAGE_GLOBALS kernel config option. Reviewed by: bz Approved by: julian (mentor)
* Two refinements to the 3c1 support:imp2009-04-113-8/+17
| | | | | | | 1) Flag it and only access that command on the 3c1 2) The TX PLL appears to power down when not in use, so we have to power it back up when we've been idle. Do this at the start of ifstart. Otherwise we fall off the net.
* o Report ethernet status for at least 10BaseT media. Since I don'timp2009-04-112-1/+30
| | | | | | | | | have other media to test against, I've left that media reporting unchanged. o Enable the TX_PLL when we enable TX. This is harmless on most cards, but required to get the 3c1 CF card working. Power savings could be had by managing this better, but for now it gets my card working.
* - fix my previous commit (added missing .gz)danger2009-04-101-1/+1
| | | | Submitted by: brueffer
* Added DT_GNU_HASH entry for GNU-style hash table.kaiw2009-04-101-0/+1
|
* Follow up for r190895 It's not only the "all" group that is affected, butmlaier2009-04-101-1/+50
| | | | | | | all groups on the given interface. PR: kern/130977, kern/131310 MFC after: 3 days (%vnet)
* Don't specify a hint, since it isn't needed.imp2009-04-101-2/+2
|
* Fix commentimp2009-04-101-4/+3
| | | | Submitted by: danfe@
* Improvements for TC5299J MII support.imp2009-04-101-25/+15
|
* The D-Link DE-650 isn't tagged as a network card, so allow it toimp2009-04-101-1/+2
| | | | | | attach anyway. Add a comment about a 'common' mfg/prod pair that's used in a very large array of different cards.
* Fix some comments.imp2009-04-101-9/+12
|
* No need to check for chip type here.imp2009-04-101-1/+1
|
* Updates based on my testing of the cards.imp2009-04-101-19/+18
|
* Remove interfaces from IFG_ALL on detach. This cures a couple of pf panicsmlaier2009-04-101-0/+1
| | | | | | | | | when using the "self" keyword in tables or as ()-style host address and fixes "ifconfig -g all" output. PR: kern/130977, kern/131310 Submitted by: Mikolaj Golub MFC after: 3 days
* - VOP_LEASE.9 has been removeddanger2009-04-101-0/+2
| | | | Approved by: rwatson
OpenPOWER on IntegriCloud