Commit Graph

122627 Commits

Author SHA1 Message Date
jcamou
44dc71d01c Sync with actual code.
PR:		docs/87681
Noticed by:	Andreas Kohn <andreas@syndrom23.de>
Reviewed by:	brooks
Approved by:	trhodes (mentor)
MFC after:	3 days
2006-03-03 13:58:43 +00:00
glebius
8e5a8ec53b Correctly switch IFCAP_VLAN_HWTAGGING on and off.
Reported & tested by:	Peter Blok <pblok bsd4all.org>
2006-03-03 12:32:51 +00:00
glebius
3c6ea150e2 - Do not leak read lock in IP_FW_TABLE_GETSIZE case of ipfw_ctl().
- Acquire read (not write) lock in case of IP_FW_TABLE_LIST.

In collaboration with:	ru
2006-03-03 12:10:59 +00:00
thompsa
9665ebce69 Document the monitor mode and explain how it can be used. 2006-03-03 09:32:25 +00:00
thompsa
9bd7f368e0 Since we are using random ethernet addresses for the bridge, it is possible
that we might have address collisions, so make sure that this hardware address
isn't already in use on another bridge.

Submitted by:	csjp
MFC after:	1 month
2006-03-03 09:12:21 +00:00
ps
8c627962e7 Don't truncate f_mntfromname & f_mntonname to 16 characters when
translating statfs into ostatfs.  This allows 4.x binaries making
statfs calls to work on 6.x.
2006-03-03 07:20:54 +00:00
mjacob
e694002eaf micro fix from justin 2006-03-03 07:04:43 +00:00
csjp
f9751f5138 Slightly re-worked bpf(4) code associated with bridging: if we have a
destination interface as a member of our bridge or this is a unicast packet,
push it through the bpf(4) machinery.

For broadcast or multicast packets, don't bother with the bpf(4) because it will
be re-injected into ether_input. We do this before we pass the packets through
the pfil(9) framework, as it is possible that pfil(9) will drop the packet or
possibly modify it, making it very difficult to debug firewall issues on the
bridge.

Further, implemented IFF_MONITOR for bridge interfaces. This does much the same
thing that it does for regular network interfaces: it pushes the packet to any
bpf(4) peers and then returns. This bypasses all of the bridge machinery,
saving mutex acquisitions, list traversals, and other operations performed by
the bridging code.

This change to the bridging code is useful in situations where individuals use a
bridge to multiplex RX/TX signals from two interfaces, as is required by some
network taps for de-multiplexing links and transmitting the RX/TX signals
out through two separate interfaces. This behaviour is quite common for network
taps monitoring links, especially for certain manufacturers.

Reviewed by:	thompsa
MFC after:	1 month
Sponsored by:	Seccuris Labs
2006-03-03 05:58:18 +00:00
scottl
d849f4e1ca iir works on PAE now. 2006-03-03 04:30:18 +00:00
mux
4c2fa60a64 Add make glue for building csup. Not yet connected to the build. 2006-03-03 04:28:13 +00:00
mux
f574897c5e This commit was generated by cvs2svn to compensate for changes in r156230,
which included commits to RCS files with non-trunk default branches.
2006-03-03 04:11:29 +00:00
mux
eee3ac1bf0 Initial import of csup. 2006-03-03 04:11:29 +00:00
keramida
80106a837d When there are no mount options, an implicit "rw" should be printed in
the output of ``mount -p''.

Approved by:	rodrigc
2006-03-03 02:46:15 +00:00
mnag
f24ee2a85a - Print message about cpufreq and timecounter TSC
Approved by:	njl
MFC after:	1 day
2006-03-03 02:06:04 +00:00
mnag
e002770955 - Add entry about using timecounter TSC and cpu frequency changing.
Approved by:	njl
MFC after:	1 day
2006-03-03 02:04:52 +00:00
emax
17ff680bcc Fix endian bugs accessing ioctl arguments that are passed by value.
Pointed out by:	marius
MFC after:	1 day
2006-03-03 00:46:28 +00:00
tegge
774f51ad2c Eliminate a deadlock when creating snapshots. Blocking vn_start_write() must
be called without any vnode locks held.  Remove calls to vn_start_write() and
vn_finished_write() in vnode_pager_putpages() and add these calls before the
vnode lock is obtained to most of the callers that don't already have them.
2006-03-02 22:13:28 +00:00
tegge
29fc266ddd Hold extra reference to vm object while cleaning pages. 2006-03-02 21:38:38 +00:00
tegge
0c56ddfb5d Don't try to show marker nodes. 2006-03-02 21:31:15 +00:00
thompsa
dcd7416f76 Document which version of 802.1D STP we implement. 2006-03-02 20:50:33 +00:00
ru
13e223a46c Fix types of time_second and time_uptime variables. 2006-03-02 19:47:41 +00:00
thompsa
76911ad4c8 The altq(4) code already handles SMP so clarify what ALTQ_NOPCC is needed for. 2006-03-02 19:45:59 +00:00
glebius
7544382389 Update URL at cisco.com. 2006-03-02 15:11:05 +00:00
brueffer
0accf57cde Actually bump the date to the commit-date for the last commit. 2006-03-02 14:55:07 +00:00
brueffer
25d95773b2 Document the graid3(8), gstripe(8) and gconcat(8) periodic scripts. 2006-03-02 14:48:17 +00:00
brueffer
9044ef15cd Add the graid3(8), gstripe(8) and gconcat(8) status scripts, default is "off".
Approved by:	rwatson (mentor)
2006-03-02 14:46:00 +00:00
brueffer
04a5ecea57 Add periodic scripts that check the status of graid3(8), gstripe(8)
and gconcat(8) devices, respectively.

Approved by:	rwatson (mentor)
2006-03-02 14:44:19 +00:00
maxim
fadd1c87d9 o Fix an URL to the "The BSD Family Tree" article.
Spotted by:	Marcin Jessa
2006-03-02 14:38:45 +00:00
davidxu
f9daf29b84 Add signal set sq_kill to sigqueue structure, the member saves all
signals sent by kill() syscall, without this, a signal sent by
sigqueue() can cause a signal sent by kill() to be lost.
2006-03-02 14:06:40 +00:00
cognet
98462ee055 Use BUS_DMA_COHERENT. 2006-03-02 14:06:38 +00:00
des
e4adab401b Update copyright years and remove third clause. 2006-03-02 14:00:40 +00:00
des
1cd6b779ce Read site.rc after default.rc. 2006-03-02 13:58:04 +00:00
des
dec8ea3d4a Ignore generated files. 2006-03-02 13:54:01 +00:00
phk
076b74732f Add nested include of <wchar.h> 2006-03-02 10:01:52 +00:00
phk
0ef226b65a Fix the %Q printf extension to behave as expected 2006-03-02 08:53:45 +00:00
jeff
d250185c5c - Acquire lk in softdep_slowdown so that it's owned when we call
softdep_speedup().
 - Assert that lk is held in softdep_speedup() rather than acquiring it.
   This avoids a potential lock recursion.
2006-03-02 08:52:53 +00:00
phk
8f424c3e93 Suffer a little bit of math every 16 second and tighten calibration of
cpu_ticks to the low side of PPM.
2006-03-02 08:09:46 +00:00
jeff
0951f797b2 - Move softdep from using a global worklist to per-mount worklists. This
has many positive effects including improved smp locking, reducing
   interdependencies between mounts that can lead to deadlocks, etc.
 - Add the softdep worklist and various counters to the ufsmnt structure.
 - Add a mount pointer to the workitem and remove mount pointers from the
   various structures derived from the workitem as they are now redundant.
 - Remove the poor-man's semaphore protecting softdep_process_worklist and
   softdep_flushworklist.  Several threads may now process the list
   simultaneously.
 - Add softdep_waitidle() to block the thread until all pending
   dependencies being operated on by other threads have been flushed.
 - Use softdep_waitidle() in unmount and snapshots to block either
   operation until the fs is stable.
 - Remove softdep worklist processing from the syncer and move it into the
   softdep_flush() thread.  This thread processes all softdep mounts
   once each second and when it is called via the new softdep_speedup()
   when there is a resource shortage.  This removes the softdep hook
   from the kernel and various hacks in header files to support it.

Reviewed by/Discussed with:	tegge, truckman, mckusick
Tested by:	kris
2006-03-02 05:50:23 +00:00
jeff
8e6862e21e - Lock Giant if needed around the call to vnode_create_vobject(). This is
only important if devfs is not mpsafe.

Sponsored by:	Isilon Systems, Inc.
Found by:	kris
2006-03-02 05:37:44 +00:00
thompsa
02a394bf85 Do not use the TSC where its known to be broken, this will cause the queue
speeds to perform below the desired bitrate and throughput will be erratic.

This makes queueing work on the Geode SC1100, K5 model 0 and IDT WinChip C6
processors.

MFC after:	3 days
2006-03-02 00:51:39 +00:00
cognet
f8b9a9739d Use 8 * sizeof(int) instead of hardcoding 32, for the unlikely case this
code ever get used on a plateform where sizeof(int) != 4.

Suggested by:	jmg
2006-03-02 00:37:40 +00:00
cognet
cab8c26101 Note that BUS_DMA_COHERENT currently only affects sparc64 and arm.
Suggested by:	scottl
2006-03-01 23:56:18 +00:00
davidxu
a8886a11b7 1. Fix a race in aio_return.
2. Save and restore syscall errno correctly.
3. Style fix.
2006-03-01 23:41:47 +00:00
davidxu
5d292c8fb4 Style fix. 2006-03-01 23:40:00 +00:00
davidxu
c468432d46 Fix a mutex lock/unlock mismatch. 2006-03-01 23:38:53 +00:00
cognet
dc462dee1c Try to honor BUS_DMA_COHERENT : if the flag is set, normally allocate memory
with malloc() or contigmalloc() as usual, but try to re-map the allocated
memory into a VA outside the KVA, non-cached, thus making the calls to
bus_dmamap_sync() for these buffers useless.
2006-03-01 23:04:25 +00:00
ru
64dd56c81d Remove NO_OBJ now that this makefile builds something.
Noticed by:	Andrzej Tobola
2006-03-01 22:59:00 +00:00
cognet
51d4ab1575 Use a better panic message than lol. 2006-03-01 20:43:51 +00:00
cognet
6ea36e7106 Make sure we decrement p_lock before leaving prefetch_abort_handler() 2006-03-01 20:42:47 +00:00
ceri
15a5b0ca2d Add a note explaining what the rescue/ directory is for.
PR:		docs/93990
Submitted by:	Ulf Lilleengen
MFC after:	3 days
2006-03-01 20:14:55 +00:00