Simon Schubert [Sat, 24 Dec 2005 14:27:47 +0000 (14:27 +0000)]
MFFreeBSD rev 1.155 and 1.156:
revision 1.156
date: 2004-08-28 00:58:02 -0700; author: yar; state: Exp; lines: +4 -3;
Avoid double appearing of cloned interfaces in the output
from list_net_interfaces() when network_interfaces=auto.
Rationale: Since the auto case is special, the lesser evil
had to be chosen among not adding cloned interfaces to
_tmplist or removing duplicates from _tmplist after adding
cloned interfaces. Since list_net_interfaces() must not use
/usr/bin tools, the former "evil" appeared clearer and much
more efficient. (See the PR audit trail for discussion.)
PR: conf/63700
Reviewed by: brooks
MFC after: 5 days
----------------------------
revision 1.155
date: 2004-08-27 05:11:47 -0700; author: yar; state: Exp; lines: +1 -1;
Fix a typo in a variable name.
Sascha Wildner [Fri, 23 Dec 2005 22:17:39 +0000 (22:17 +0000)]
Fix parameter order in livelock message.
Sascha Wildner [Fri, 23 Dec 2005 21:35:44 +0000 (21:35 +0000)]
* Ansify function definitions.
* Remove (void) casts for discarded return values.
Matthew Dillon [Fri, 23 Dec 2005 20:29:57 +0000 (20:29 +0000)]
Fix the installer_quickrel target. Also fix the pkgsrc bootstrap, not
enough data was being copied into ISOROOT to run the bootstrap.
Matthew Dillon [Fri, 23 Dec 2005 19:10:54 +0000 (19:10 +0000)]
1.4 Release branched, HEAD is now 1.5.
Matthew Dillon [Fri, 23 Dec 2005 17:42:59 +0000 (17:42 +0000)]
By the time list_net_interfaces() is called in /etc/rc.d/netif, clone_up()
has already created each of $cloned_interface and they will show up in
the ifconfig -l. There is no need to add $cloned_interfaces to the list
(it will result in the cloned interfaces being configured twice).
Submitted-by: Chris Csanady <cc@137.org>
Simon Schubert [Fri, 23 Dec 2005 17:41:36 +0000 (17:41 +0000)]
Account for packets sent out via the bridge interface
Submitted-by: Chris Csanady <cc@137.org>
Simon Schubert [Fri, 23 Dec 2005 17:38:23 +0000 (17:38 +0000)]
BPF_MTAP at the right place so packets to the bridge iface are tapped as well
Submitted-by: Chris Csanady <cc@137.org>
Matthew Dillon [Fri, 23 Dec 2005 10:11:48 +0000 (10:11 +0000)]
Bump us to 1.3.8 in preparation for pre-release tagging.
Matthew Dillon [Fri, 23 Dec 2005 10:08:14 +0000 (10:08 +0000)]
Cleanup minor typeos.
Submitted-by: Michal Belczyk <belczyk@bsd.krakow.pl>
Matthew Dillon [Thu, 22 Dec 2005 23:23:34 +0000 (23:23 +0000)]
run ./bootstrap in a chroot so it configures the correct paths in the
pkgsrc binaries (there does not appear to be a way to specify a target
install location different from the one used to locate pkgsrc binaries).
Set the default working directory to /usr/obj/pkgsrc rather then creating
working directories inside /usr/pkgsrc. This will save annoyances for
people who mount /usr/pkgsrc via NFS.
Install a default /etc/mk.conf as part of the root skeleton.
Simon Schubert [Thu, 22 Dec 2005 15:16:13 +0000 (15:16 +0000)]
Aquire serializer before calling ioctl
Submitted-by: Chris Csanady <cc@137.org>
Matthew Dillon [Thu, 22 Dec 2005 06:32:11 +0000 (06:32 +0000)]
Fix numerous nrelease build issues related to the pkgsrc conversion.
* Place packages on pkgbox.dragonflybsd.org in a release-specific
directory. Adjust the fetch URLs to point to this box.
* Add sophisticated checks for required distributions and distribution
sets, output exact and easy to follow instructions on how to install
required pieces.
* Add make targets to install required pieces that are missing.
* Install specific package versions.
* Include a /usr/local/share/dfuibe_installer/sources.conf file to override
the copy list and add additional directories that must be copied
(/usr/freebsd_pkg and /usr/pkg).
Sascha Wildner [Wed, 21 Dec 2005 19:50:54 +0000 (19:50 +0000)]
Add documentation for the pfil interface. This is NetBSD's rev. 1.24
of the manpage with bits and pieces taken from later revisions.
Joerg Sonnenberger [Wed, 21 Dec 2005 17:07:33 +0000 (17:07 +0000)]
Add a simple library for the default g77 linkage, providing main.
Joerg Sonnenberger [Wed, 21 Dec 2005 16:48:06 +0000 (16:48 +0000)]
Add g77 here as well.
Joerg Sonnenberger [Wed, 21 Dec 2005 16:43:17 +0000 (16:43 +0000)]
Add g77 link.
Simon Schubert [Wed, 21 Dec 2005 16:40:25 +0000 (16:40 +0000)]
Bring in if_bridge from Open-/Net-/FreeBSD
Based-on-patch-by: Andrew Atrens
Reviewed-and-locking-corrected-by: dillon and sephe
Simon Schubert [Wed, 21 Dec 2005 16:37:15 +0000 (16:37 +0000)]
Bring in if_bridge from Open-/Net-/FreeBSD
Based-on-patch-by: Andrew Atrens
Reviewed-and-locking-corrected-by: dillon and sephe
Simon Schubert [Wed, 21 Dec 2005 16:33:20 +0000 (16:33 +0000)]
Bring in if_bridge from Open-/Net-/FreeBSD
Based-on-patch-by: Andrew Atrens
Reviewed-and-locking-corrected-by: dillon and sephe
Simon Schubert [Wed, 21 Dec 2005 11:18:30 +0000 (11:18 +0000)]
Create usr/include/net/oldbridge
Sascha Wildner [Wed, 21 Dec 2005 01:28:00 +0000 (01:28 +0000)]
Fix installworld until new bridge is fully committed.
Matthew Dillon [Tue, 20 Dec 2005 19:09:35 +0000 (19:09 +0000)]
Clean up some minor typos in comments.
Submitted-by: Michal Belczyk <belczyk@bsd.krakow.pl>
Sascha Wildner [Tue, 20 Dec 2005 16:09:31 +0000 (16:09 +0000)]
Add some better mdoc markup.
Sascha Wildner [Tue, 20 Dec 2005 15:25:45 +0000 (15:25 +0000)]
OS is no longer needed.
Sascha Wildner [Tue, 20 Dec 2005 13:16:14 +0000 (13:16 +0000)]
Add documentation about the interrupt flags and the serializer argument.
Docs-written-by: dillon
mdoc-bells-and-whistles: swildner
Sascha Wildner [Tue, 20 Dec 2005 13:05:15 +0000 (13:05 +0000)]
Fix xrefs.
Simon Schubert [Tue, 20 Dec 2005 11:57:48 +0000 (11:57 +0000)]
Remove use of keywords in rc.d/*
Simon Schubert [Tue, 20 Dec 2005 01:54:09 +0000 (01:54 +0000)]
Don't try to install bridge.4, install oldbridge.4
David Xu [Tue, 20 Dec 2005 00:21:53 +0000 (00:21 +0000)]
MFBSD:
Split fread into MT-safe and none MT-safe versions, let __vfscanf
call none MT-safe version, so that sscanf does not leak memory.
David Xu [Tue, 20 Dec 2005 00:19:41 +0000 (00:19 +0000)]
Clear return code to zero if joiner sucessfully waited joinee.
Matthew Dillon [Mon, 19 Dec 2005 17:09:58 +0000 (17:09 +0000)]
Add a feature that allows a correction factor to be applied to attempt
to remove the overhead of the KTR logging call itself.
Matthew Dillon [Mon, 19 Dec 2005 01:18:58 +0000 (01:18 +0000)]
Fix a number of panic conditions for network cardbus devices by implementing
the now mandatory interrupt serialization.
Reported-by: Steve Mynott <steve.mynott@gmail.com>
Patches-by: Matthew Dillon and Sepherosa Ziehau <sepherosa@gmail.com>
Simon Schubert [Mon, 19 Dec 2005 00:07:02 +0000 (00:07 +0000)]
Adjust sources to accomodate for repo copy of our bridging code
sys/net/bridge was copied to sys/net/oldbridge
Sepherosa Ziehau [Sun, 18 Dec 2005 12:02:15 +0000 (12:02 +0000)]
After bus/pci/pcivar.h rev1.10, pcib_get_bus() should be called with device's
parent not device itself
David Xu [Sun, 18 Dec 2005 11:02:05 +0000 (11:02 +0000)]
Remove unneeded tls_get_curthread() call.
Matthew Dillon [Sun, 18 Dec 2005 08:16:14 +0000 (08:16 +0000)]
Add KTR logging to the core tcp protocol loop.
Sepherosa Ziehau [Sun, 18 Dec 2005 02:47:34 +0000 (02:47 +0000)]
- serialize iwi(4)
- iwi(4) relys on working interrupt to perform various operations (e.g. loading
firmware), so serializer is released before tsleep() and extra code is added
to promise MPSAFE
Reported-by: Joe Talbott <josepht at cstone.net>
Tested-by: Joe Talbott <josepht at cstone.net>
Based-on-patch-from: dillon
Reviewed-by: dillon
Sepherosa Ziehau [Sat, 17 Dec 2005 09:09:21 +0000 (09:09 +0000)]
1) Add support for NIC found in Sony FS570 laptops
2) Add support for NIC found in Sony Vaio VGN-TX1XP laptops
Obtained-from: FreeBSD dev/fxp/if_fxp.c rev 1.226, 1.252
# 1) was submitted to FreeBSD by:
# Gavin Atkinson <gavin.atkinson at ury.york.ac.uk>
# 2) was submitted to FreeBSD by:
# Thomas Hurst <tom at hur.st>
Matthew Dillon [Fri, 16 Dec 2005 21:05:48 +0000 (21:05 +0000)]
Properly integrate the now mandatory serializer into the WI network driver.
Reported-by: Steve Mynott <steve.mynott@gmail.com>
Patch-supplied-by: Sepherosa Ziehau <sepherosa@gmail.com>
Simon Schubert [Thu, 15 Dec 2005 22:20:49 +0000 (22:20 +0000)]
Do not try to write sparse files when using zlib.
Noticed-by: Joe Talbott <josepht@cstone.net>
Obtained-from: FreeBSD
Sascha Wildner [Thu, 15 Dec 2005 09:04:59 +0000 (09:04 +0000)]
Update for axe(4), nv(4), re(4) and rue(4). Add missing xref to bfe(4).
Matthew Dillon [Wed, 14 Dec 2005 17:04:29 +0000 (17:04 +0000)]
pfnStop() seems to take a flags argument which as far as I can tell from
the header file needs specific flags rather then 0.
Move the calls to nv_setmulti() and nv_ifmedia_upd() to just before
the pfnStart() call. Note that FreeBSD moved the calls even further
back, to before the pfnInit(), but that is probably not correct.
Simon Schubert [Wed, 14 Dec 2005 07:35:32 +0000 (07:35 +0000)]
GC old cvs source
Sascha Wildner [Tue, 13 Dec 2005 08:38:55 +0000 (08:38 +0000)]
Fix reference.
Simon Schubert [Tue, 13 Dec 2005 01:58:27 +0000 (01:58 +0000)]
Add pf example configs
Obtained-from: OpenBSD
Noticed-we-are-missing-them: swildner
Matthew Dillon [Mon, 12 Dec 2005 08:15:03 +0000 (08:15 +0000)]
Move tsc_offsets[] to a new home to unbreak kernel builds, again.
Add additional performance tests to kern/kern_ktr.c
Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx> (tsc_offsets issue)
Matthew Dillon [Sun, 11 Dec 2005 18:36:14 +0000 (18:36 +0000)]
Remove the 'all' target to fix buildworld, and fix a
type-o (.PHONE -> .PHONY).
Sascha Wildner [Sun, 11 Dec 2005 13:28:53 +0000 (13:28 +0000)]
Fix typo.
Sascha Wildner [Sun, 11 Dec 2005 13:00:17 +0000 (13:00 +0000)]
* Ansify function definitions.
* Minor style cleanup.
Submitted-by: Alexey Slynko <slynko@tronet.ru>
Sascha Wildner [Sun, 11 Dec 2005 02:27:26 +0000 (02:27 +0000)]
* Ansify function definitions.
* Remove parameter names from prototypes.
* Minor style cleanup.
Submitted-by: Alexey Slynko <slynko@tronet.ru>
Sascha Wildner [Sun, 11 Dec 2005 01:54:09 +0000 (01:54 +0000)]
* Ansify function definitions.
* Minor style cleanup.
Submitted-by: Alexey Slynko <slynko@tronet.ru>
Matthew Dillon [Sat, 10 Dec 2005 21:19:30 +0000 (21:19 +0000)]
Add a feature and a sysctl (debug.ktr.testipicnt) to test inter-cpu
IPI messaging performance, and document it.
Matthew Dillon [Sat, 10 Dec 2005 18:50:36 +0000 (18:50 +0000)]
Fix another interesting bug. td_threadq is shared by the LWKT scheduler,
tsleep, and port-blocking code. Because of this separate flags exist to
indicate which queue the thread currently resides on and careful sanity
checks were added to prevent corruption.
The thread scheduler will not enqueue a thread that is sitting on one of
these other queues. This commit fixes a bug where the preemption code
would still preemptively switch into the thread even when the enqueue fails,
causing an assertion to be hit in tsleep().
This just goes to show that asserting on supposedly impossible conditions is
a good idea :-).
Reported-by: Stefan Krueger <skrueger@meinberlikomm.de>
Matthew Dillon [Sat, 10 Dec 2005 18:38:26 +0000 (18:38 +0000)]
Don't display the file and line by default.
Matthew Dillon [Sat, 10 Dec 2005 18:28:18 +0000 (18:28 +0000)]
Add KTR logging for IF_EM to measure interrupt overhead and packet
receive / transmit / transmit-cleanup operations.
Matthew Dillon [Sat, 10 Dec 2005 18:27:24 +0000 (18:27 +0000)]
Add KTR logging for tsleep entry/exit and wakeup entry/exit.
Matthew Dillon [Sat, 10 Dec 2005 18:25:18 +0000 (18:25 +0000)]
Make the KTR test logging work for UP as well as SMP.
Matthew Dillon [Sat, 10 Dec 2005 18:16:37 +0000 (18:16 +0000)]
Fix UP build issues. Move tsc_offsets[] from mp_machdep.c to kern_ktr.c,
and document the routines.
Reported-by: Sascha Wildner <saw@online.de>
Matthew Dillon [Sat, 10 Dec 2005 17:41:25 +0000 (17:41 +0000)]
Do not ldconfig -m /usr/lib/gcc2 if there is no /usr/lib/gcc2 directory.
Submitted-by: Stefan Krueger <skrueger@meinberlikomm.de>
Matthew Dillon [Sat, 10 Dec 2005 17:36:39 +0000 (17:36 +0000)]
Beef up error reporting for a particular assertion to try to track down a
panic reported by Stefan Krueger.
Sascha Wildner [Sat, 10 Dec 2005 16:06:21 +0000 (16:06 +0000)]
Ansify function definitions.
Submitted-by: Alexey Slynko <slynko@tronet.ru>
Joerg Sonnenberger [Sat, 10 Dec 2005 14:47:05 +0000 (14:47 +0000)]
Rework nrelease framework for pkgsrc. The way the bootstrap kit was
build was incorrect, since the wrong path names end up in the
binaries. Instead of building it redundantly every time, just expect
a binary bootstrap kit. Change the installer targets to be a conditional
instead (WITH_INSTALLER), but keep the old targets for compatibility.
The CGI frontend is temporarily removed until the configuration is
updated. cvsup doesn't currently build, a workaround pkg will be added
latter.
Add a description of how this framework is intended to be used.
Sascha Wildner [Sat, 10 Dec 2005 00:39:48 +0000 (00:39 +0000)]
Ansify function definitions.
Submitted-by: Alexey Slynko <slynko@tronet.ru>
Sascha Wildner [Sat, 10 Dec 2005 00:22:29 +0000 (00:22 +0000)]
Fix some manlint nits and add .Dx where appropriate.
Sascha Wildner [Sat, 10 Dec 2005 00:19:18 +0000 (00:19 +0000)]
Add some bits from FreeBSD to reflect reality.
Sascha Wildner [Sat, 10 Dec 2005 00:15:01 +0000 (00:15 +0000)]
Remove obsolete 1aout manual section.
Sascha Wildner [Sat, 10 Dec 2005 00:11:08 +0000 (00:11 +0000)]
Remove last traces of 'DragonFly' keywords in RCNG scripts.
Sascha Wildner [Sat, 10 Dec 2005 00:04:51 +0000 (00:04 +0000)]
Add some better mdoc markup.
Sascha Wildner [Sat, 10 Dec 2005 00:03:08 +0000 (00:03 +0000)]
Remove library definitions which are in doc-syms now.
Sascha Wildner [Fri, 9 Dec 2005 23:55:28 +0000 (23:55 +0000)]
Remove BOOTWAIT and NO_SHAREDOCS options. BOOTWAIT was from the old
boot code and NO_SHAREDOCS is obsolete since we don't build share/doc
anymore.
Sascha Wildner [Fri, 9 Dec 2005 18:53:44 +0000 (18:53 +0000)]
Add 'manlint' (from bsd.man.mk) to the top level targets.
Matthew Dillon [Thu, 8 Dec 2005 20:37:20 +0000 (20:37 +0000)]
Fix the directory scan code for SMBFS. It was losing track of the directory
offset during the scan.
Matthew Dillon [Thu, 8 Dec 2005 20:20:34 +0000 (20:20 +0000)]
SB_NOINTR must be set for the socket to prevent nbssn_recv() from hard
looping on EWOULDBLOCK.
Matthew Dillon [Thu, 8 Dec 2005 19:15:12 +0000 (19:15 +0000)]
Clean up more spinlock conversion issues and fix related panics.
Reported-by: "Adrian M. Nida" <nida@musc.edu>
Simon Schubert [Wed, 7 Dec 2005 13:42:57 +0000 (13:42 +0000)]
Fix a bug which was introduced in cvs-1.12.13.
With running compression and ssh/rsh it could happen that the zlib
layer would want to read $expected_bytes, which would block because
$expected_bytes of course is a inflated quantity and can't be compared
to the deflated size, except for
$expected_bytes > 0 -> $expected_deflated_bytes > 0
Restore old behaviour which only read one byte a time.
Matthew Dillon [Wed, 7 Dec 2005 04:49:54 +0000 (04:49 +0000)]
Add additional KTR lines to allow us to characterize the total overhead
when calling malloc() and free().
Matthew Dillon [Wed, 7 Dec 2005 04:27:50 +0000 (04:27 +0000)]
Add KTR_TESTLOG and debug.ktr.testlogcnt, which issues three ktrlog() calls
in a row and allows one to measure the overhead of the KTR logging facility.
Simon Schubert [Wed, 7 Dec 2005 02:28:15 +0000 (02:28 +0000)]
Add the globbing flag GLOB_PERIOD.
This allows matching of filenames that starts with a dot.
Simon Schubert [Wed, 7 Dec 2005 01:16:30 +0000 (01:16 +0000)]
Switch to cvs-1.12.13
Simon Schubert [Wed, 7 Dec 2005 00:39:02 +0000 (00:39 +0000)]
Add our READMEs to the new cvs import
Simon Schubert [Wed, 7 Dec 2005 00:15:30 +0000 (00:15 +0000)]
Merge from vendor branch CVS:
Import a stripped down cvs-1.12.13
Simon Schubert [Wed, 7 Dec 2005 00:15:30 +0000 (00:15 +0000)]
Import a stripped down cvs-1.12.13
Matthew Dillon [Tue, 6 Dec 2005 23:41:56 +0000 (23:41 +0000)]
Enhance ktrdump to generate relative timestamps in fractional microseconds,
add an option to merge all cpus into one log (-s), and locate the starting
point in the FIFO when dumping output.
Matthew Dillon [Tue, 6 Dec 2005 23:37:55 +0000 (23:37 +0000)]
Synchronize the TSC between all cpus on startup and provide a sysctl,
debug.ktr.resynchronize, which will (very expensively) resynchronize the
TSCs 10 times a second to reduce drift errors to manageable numbers.
The TSC on all the cpus for the purposes of ktrdump's ought to be
synchronizated within ~200ns of each other, assuming all cpus are running
at the same frequency.
This needs more work. What we really need to do is calculate the drift
for each cpu and apply it dynamically.
Joerg Sonnenberger [Tue, 6 Dec 2005 17:49:22 +0000 (17:49 +0000)]
Revert last change and add toascii.c to the right variable.
Joerg Sonnenberger [Tue, 6 Dec 2005 17:36:20 +0000 (17:36 +0000)]
toascii(3) got lost during ctype conversion.
Sepherosa Ziehau [Tue, 6 Dec 2005 13:51:01 +0000 (13:51 +0000)]
minor style change
Sepherosa Ziehau [Tue, 6 Dec 2005 13:48:49 +0000 (13:48 +0000)]
remove duplicated `use'
Matthew Dillon [Tue, 6 Dec 2005 04:03:56 +0000 (04:03 +0000)]
The new lockmgr() function requires spinlocks, not tokens. Take this
opportunity to convert all use of tokens in SMB to spinlocks since they
are only used to wrap very low level operations.
Reported-by: "Adrian M. Nida" <nida@musc.edu>
Simon Schubert [Tue, 6 Dec 2005 02:22:23 +0000 (02:22 +0000)]
Use sh to run scripts instead of relying on their +x bit
Matthew Dillon [Tue, 6 Dec 2005 02:02:24 +0000 (02:02 +0000)]
doreti and splz were improperly requiring that the MP lock be held in order
to process delayed FAST interrupts. This could result in clock interrupts
getting delayed indefinitely when the MP lock was held by another cpu.
The delayed clock interrupts further resulted in clock-related issues such
as the system time running slow, and other problems.
Reported-by: Stefan Krueger <skrueger@meinberlikomm.de>
Matthew Dillon [Mon, 5 Dec 2005 17:01:53 +0000 (17:01 +0000)]
Document the nfs dirent conversion code. No functional changes.
Matthew Dillon [Mon, 5 Dec 2005 16:52:02 +0000 (16:52 +0000)]
Add an option -b which dumps the clean/dirty buffer cache RB trees for
each vnode.
Matthew Dillon [Mon, 5 Dec 2005 16:48:22 +0000 (16:48 +0000)]
Sync up misc work on the currently inactive syscall mapping library.
Matthew Dillon [Mon, 5 Dec 2005 06:13:16 +0000 (06:13 +0000)]
Fix a bug in our RB_SCAN calls. A critical section is required to
protect the RB tree against I/O completions. Also do not abort a scan
if an I/O completion moves a buffer off the dirty list and onto the clean
list while we are trying to lock it.
There is a small chance that this bug could have resulted in dirty buffers
being left intact after being freed from the filesystem bitmap, which in
turn can cause filesystem corruption (dirbad and other panics).
Note that this was a DragonFly-only bug.
Sascha Wildner [Mon, 5 Dec 2005 03:42:31 +0000 (03:42 +0000)]
Ansify function definitions.
Submitted-by: Alexey Slynko <slynko@tronet.ru>
Sascha Wildner [Mon, 5 Dec 2005 02:40:28 +0000 (02:40 +0000)]
- Ansify function definitions.
- Move function type on a line of its own.
- Minor style cleanup.
Sascha Wildner [Mon, 5 Dec 2005 02:22:51 +0000 (02:22 +0000)]
Silence troff warning.
Sascha Wildner [Mon, 5 Dec 2005 02:22:08 +0000 (02:22 +0000)]
Add DragonFly 1.2, 1.3.6 and 1.3.7. Remove 1.2.* (those have bug fixes only).