Matthias Schmidt [Thu, 4 Dec 2008 14:10:23 +0000 (15:10 +0100)]
Update units(1) to allow conversion between degC and degF
This patch (in modified form from FreeBSD) rested for some time on
my disk, so I'll throw it in. It allows conversion between Celsius
and Fahrenheit:
You have: 20 degC
You want: degF
68
Reminded-by: corecode@
Sepherosa Ziehau [Thu, 4 Dec 2008 10:35:13 +0000 (18:35 +0800)]
Add CARP_IS_RUNNING() to test carp(4) iface's IFF_UP and IFF_RUNNING
Sepherosa Ziehau [Thu, 4 Dec 2008 10:14:29 +0000 (18:14 +0800)]
Remove unused macro
Sepherosa Ziehau [Thu, 4 Dec 2008 10:11:05 +0000 (18:11 +0800)]
Merge clearing IFF_UP and IFF_RUNNING
Sepherosa Ziehau [Thu, 4 Dec 2008 10:05:51 +0000 (18:05 +0800)]
Use in_cksum_{range,skip}()
This is mainly used to avoid following code sequence:
m->m_data += skip;
in_cksum(m, len);
m->m_data -= skip;
Simon Schubert [Wed, 3 Dec 2008 23:20:05 +0000 (00:20 +0100)]
Don't drag the host CCVER into the release build
nrelease was defaulting WORLD_CCVER, which is passed as CCVER to buildworld
and KERNEL_CCVER, which is passed as CCVER to buildkernel, to CCVER. However
the system makefiles set CCVER themselves, thus dragging their idea of the
default CCVER into the release build.
This commit should fix snapshots being built with gcc34 on chlamydia running 1.8-REL.
Sepherosa Ziehau [Wed, 3 Dec 2008 13:18:59 +0000 (21:18 +0800)]
Rework carp_input()
- Use ip header length passed in
- Calculate minimal CARP packet size only once
- Nuke redundant mbuf length check and m_pullup()
- Use in_cksum_skip()
- Add comment
- Keep log message consistent with OpenBSD
Sepherosa Ziehau [Wed, 3 Dec 2008 11:48:01 +0000 (19:48 +0800)]
Use suser_cred()
Sepherosa Ziehau [Wed, 3 Dec 2008 11:41:36 +0000 (19:41 +0800)]
Embed ifnet in carp_softc; ifnet allocation is never adopted.
This commit fix the memory leakage when destroying a carp(4) iface.
Sepherosa Ziehau [Tue, 2 Dec 2008 15:08:19 +0000 (23:08 +0800)]
Clean up and style changes
- Break long lines
- Strip/Add blank lines
- White space
Sepherosa Ziehau [Tue, 2 Dec 2008 14:29:43 +0000 (22:29 +0800)]
Nuke lock remainders and related comment
Sepherosa Ziehau [Tue, 2 Dec 2008 14:18:06 +0000 (22:18 +0800)]
Staticize
Sepherosa Ziehau [Tue, 2 Dec 2008 14:10:00 +0000 (22:10 +0800)]
Drop locking in carp(4). carp(4) is under explicit BGL currently; we could
find other MP approach for it, but not locking.
Sepherosa Ziehau [Tue, 2 Dec 2008 12:44:08 +0000 (20:44 +0800)]
- Regroup type declaration
- White space cleanup
- DragonFly has ifnet_detach_event not ifnet_departure_event
- Staticize carp_cloner
Sepherosa Ziehau [Tue, 2 Dec 2008 12:21:42 +0000 (20:21 +0800)]
Cleanup header inclusion
Sepherosa Ziehau [Tue, 2 Dec 2008 12:08:30 +0000 (20:08 +0800)]
White space
Sepherosa Ziehau [Tue, 2 Dec 2008 12:02:55 +0000 (20:02 +0800)]
u_int{8,16,32,64}_t -> uint{8,16,32,64}_t
Sascha Wildner [Wed, 3 Dec 2008 09:23:28 +0000 (10:23 +0100)]
test some more
Sascha Wildner [Wed, 3 Dec 2008 09:11:37 +0000 (10:11 +0100)]
Merge branch 'ciss'
Sascha Wildner [Wed, 3 Dec 2008 09:11:13 +0000 (10:11 +0100)]
test
Hasso Tepper [Wed, 3 Dec 2008 08:26:04 +0000 (10:26 +0200)]
Testing cherry-pick from local branch & push.
Sascha Wildner [Wed, 3 Dec 2008 05:00:06 +0000 (06:00 +0100)]
Merge branch 'misc'
Sascha Wildner [Wed, 3 Dec 2008 04:59:54 +0000 (05:59 +0100)]
kqueue support has been added to HAMMER.
Sascha Wildner [Wed, 3 Dec 2008 04:53:52 +0000 (05:53 +0100)]
Merge branch 'misc'
Sascha Wildner [Wed, 3 Dec 2008 04:53:20 +0000 (05:53 +0100)]
Add a UFS(5) MLINK and reference it from various places.
Simon Schubert [Wed, 3 Dec 2008 03:42:24 +0000 (04:42 +0100)]
Roll DragonFly 2.1.1
Simon Schubert [Wed, 3 Dec 2008 03:03:18 +0000 (04:03 +0100)]
Add script to output the current repo version
Matthew Dillon [Wed, 3 Dec 2008 02:38:22 +0000 (18:38 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into devel
Sascha Wildner [Wed, 3 Dec 2008 02:23:30 +0000 (03:23 +0100)]
Some more cleanup & markup fixes.
Matthew Dillon [Wed, 3 Dec 2008 02:11:43 +0000 (18:11 -0800)]
HAMMER Filesystem changes:
* Add version checking to the hammer mount code.
* Add ioctls to fetch the hammer filesystem version and to upgrade it,
to support future filesystem revisions.
* Rewrite the algorithm used to integrate reservations with the blockmap
allocate/free code to fix a bug. hammer_buffers were sometimes not
being properly destroyed causing conflicts with later reallocations.
* Add support for up to four directory hash algorithms. Add flexibility
to the namekey iterator API to allow the algorithm to control the
iteration space.
* When iterating memory with the CURSOR_DELETE_VISIBILITY flag set, ignore
the record deleted flags.
HAMMER Utilities changes:
* Add two new hammer directives, 'version' and 'version-upgrade'.
* Change hammer namekey directive to 'namekey1' and 'namekey2', to support
generating directory hashes for different hashing algorithms.
* Change hammer cleanup to still prune for existing snapshots even if
new snapshot generation is disabled.
* Change hammer cleanup's default snapshots config for temporary
filesystems from 'snapshots 0d 60d' to 'snapshots 0d 0d'.
Reported-by: "Justin C. Sherrill" <justin@shiningsilence.com> (blockmap bug)
Sascha Wildner [Wed, 3 Dec 2008 00:56:45 +0000 (01:56 +0100)]
Start new sentences on new lines.
Sepherosa Ziehau [Tue, 2 Dec 2008 13:27:37 +0000 (21:27 +0800)]
Avoid NULL pointer dereference
Sepherosa Ziehau [Tue, 2 Dec 2008 10:58:27 +0000 (18:58 +0800)]
Fix carp_input() prototype to meet the requirement of protosw
Sepherosa Ziehau [Tue, 2 Dec 2008 10:40:13 +0000 (18:40 +0800)]
Fix speed report on Intel SATA chips in compat mode.
Obtained-from: FreeBSD ata-chipset.c rev 1.210 (partial)
Tested-by: matthias@
Simon Schubert [Mon, 1 Dec 2008 23:52:00 +0000 (00:52 +0100)]
Perform logarithmic volume control for vchans
Previously we (and FreeBSD) would do a linear amplitude scaling, which
does not follow the natural expectation of a user. Now volume knobs
actually behave like real life ones.
The curve is close enough to a sqare root, but whatever.
Inspired by 4front's opensound BSDL'd mixer code (which does the
opposite, i.e. converting log values to human linear scale).
Joe Talbott [Mon, 1 Dec 2008 20:00:13 +0000 (15:00 -0500)]
Test commit
Simon Schubert [Mon, 1 Dec 2008 17:43:51 +0000 (18:43 +0100)]
Fix makefile by rewriting parts into shell code
We can't break one shell command by a make macro, or make will
split into multiple shell commands, thus losing environment (like the
pwd).
Simon Schubert [Mon, 1 Dec 2008 12:12:24 +0000 (13:12 +0100)]
Add support for MAP_TRYFIXED
MAP_TRYFIXED signals to the kernel that the process is well aware
that the hint might fall into the heap area, but that it would still
like to map the area. I think this is necessary for wine.
Simon Schubert [Mon, 1 Dec 2008 11:27:08 +0000 (12:27 +0100)]
Install the ppi header
Simon Schubert [Mon, 1 Dec 2008 11:08:01 +0000 (12:08 +0100)]
Update the atime when mmap'ing a file
Matthias Schmidt [Mon, 1 Dec 2008 14:42:12 +0000 (15:42 +0100)]
Add missing .
Matthias Schmidt [Mon, 1 Dec 2008 14:39:48 +0000 (15:39 +0100)]
Sync family tree with FreeBSD
- FreeBSD 6.4 and OpenBSD 4.4 are released
- Remove our CVS Id
Matthias Schmidt [Mon, 1 Dec 2008 14:34:20 +0000 (15:34 +0100)]
Update due to recent git switch
- make update is no longer available
- Comment section about releng in doc/. If the repo gets converted, we can
comment that paragraph back in
Matthias Schmidt [Mon, 1 Dec 2008 12:43:53 +0000 (13:43 +0100)]
Add .gitignore file
OK-and-input-by: corecode@
Matthias Schmidt [Mon, 1 Dec 2008 10:59:39 +0000 (11:59 +0100)]
Fix wrong path
Matthias Schmidt [Mon, 1 Dec 2008 08:59:54 +0000 (09:59 +0100)]
Update committer(7) to reflect the change to git
In-collab-with: swildner@
Matthias Schmidt [Mon, 1 Dec 2008 08:12:11 +0000 (09:12 +0100)]
Checkout master after clone
Matthias Schmidt [Mon, 1 Dec 2008 08:03:22 +0000 (09:03 +0100)]
Replace CVS targets with GIT targets
Note: The initial clone is only possible if no previous src/ directory is present in
/usr (this is the default after
cf2bfc4158dbb2accb11861dd3a96d0d79237f63 for new
installations). If you already have a src/ directory remove it before starting cloning.
Sascha Wildner [Mon, 1 Dec 2008 02:20:16 +0000 (03:20 +0100)]
Reference development(7).
Sascha Wildner [Mon, 1 Dec 2008 01:45:30 +0000 (02:45 +0100)]
Update some documents for git usage.
Sascha Wildner [Mon, 1 Dec 2008 01:43:35 +0000 (02:43 +0100)]
Update development(7) for git usage.
I've vaporized most of the old content. If people feel that something
should be there, we can gradually add/adapt documentation back.
Kinda-based-on: aggelos' wiki page
Sascha Wildner [Sun, 30 Nov 2008 23:21:58 +0000 (00:21 +0100)]
Axe various remains from the CVS era.
* DragonFly supfiles in share/examples/cvsup (those for other BSDs remain).
* 'make update' target and associated variables.
More will follow.
Sascha Wildner [Sun, 30 Nov 2008 21:52:05 +0000 (22:52 +0100)]
Remove handling of CVS IDs.
Sascha Wildner [Sun, 30 Nov 2008 20:49:58 +0000 (21:49 +0100)]
git(1) doesn't allow to clone into an existing directory so it doesn't
make sense to create /usr/src anymore.
Sascha Wildner [Sun, 30 Nov 2008 20:16:53 +0000 (21:16 +0100)]
Merge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly into posix
Peter Avalos [Sun, 30 Nov 2008 18:23:19 +0000 (13:23 -0500)]
Let make upgrade install new files in etc/ if they don't exist.
Reviewed-by: dillon, corecode
Peter Avalos [Sun, 30 Nov 2008 16:56:24 +0000 (11:56 -0500)]
Use ${INSTALL} so installworld works for non-root users.
Sascha Wildner [Sun, 30 Nov 2008 14:21:03 +0000 (15:21 +0100)]
<utime.h> shall define time_t.
Simon Schubert [Sun, 30 Nov 2008 13:10:25 +0000 (14:10 +0100)]
Testing demultiplexing 2/2
Simon Schubert [Sun, 30 Nov 2008 13:09:55 +0000 (14:09 +0100)]
Testing push demultiplexing 1/2
Simon Schubert [Sun, 30 Nov 2008 12:33:15 +0000 (13:33 +0100)]
More testing.
Simon Schubert [Sun, 30 Nov 2008 12:32:18 +0000 (13:32 +0100)]
Test mail hook
Simon Schubert [Sat, 29 Nov 2008 23:41:05 +0000 (00:41 +0100)]
Add a gaussian filter for maximum beeping pleasure.
Sepherosa Ziehau [Sun, 30 Nov 2008 10:54:10 +0000 (18:54 +0800)]
Recognize TTTech MC322
Obtained-from: OpenBSD
Sepherosa Ziehau [Sun, 30 Nov 2008 10:51:11 +0000 (18:51 +0800)]
regen
Sepherosa Ziehau [Sun, 30 Nov 2008 10:46:54 +0000 (18:46 +0800)]
Add TTTech
Obtained-from: OpenBSD
Sepherosa Ziehau [Sun, 30 Nov 2008 10:33:13 +0000 (18:33 +0800)]
Filter out 8139 chips by PCI revid. It looks like certain 8139 does have
same hardware revision (in TXCFG) as 8139C+.
Reported-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
Obtained-from: FreeBSD
Sepherosa Ziehau [Sun, 30 Nov 2008 10:08:27 +0000 (18:08 +0800)]
Remove jumbo frame support for 8169; it never works (except slow ping) and
pullute the TX path a lot.
Sepherosa Ziehau [Sun, 30 Nov 2008 09:49:49 +0000 (17:49 +0800)]
- Use a longer timeout value for firmware handshaking.
- Nuke the RX CPU self-diag, which prevents working cards from working.(*)
This commit intends to fix the firmware handshaking failure seen on PCI cards.
PCI-E cards do not seem to be affected.
(*) Linux tg3 does not have this diag neither does OpenBSD's bge(4)
Matthias Schmidt [Sun, 30 Nov 2008 09:33:06 +0000 (10:33 +0100)]
test git
Nuno Antunes [Sun, 30 Nov 2008 08:06:23 +0000 (08:06 +0000)]
testing
Sepherosa Ziehau [Sun, 30 Nov 2008 07:54:27 +0000 (15:54 +0800)]
test lance
Peter Avalos [Sun, 30 Nov 2008 07:10:19 +0000 (02:10 -0500)]
Test commit/push access for master.
Sascha Wildner [Sat, 29 Nov 2008 20:49:35 +0000 (21:49 +0100)]
test
Nicolas Thery [Fri, 28 Nov 2008 16:52:27 +0000 (17:52 +0100)]
Fix disklabel(1) core dump.
The core dump occured when label line countained no fstype. Now
displays an error message instead.
Submitted-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
Sepherosa Ziehau [Sat, 29 Nov 2008 11:01:32 +0000 (19:01 +0800)]
test xanadu
Sepherosa Ziehau [Sat, 29 Nov 2008 11:02:08 +0000 (19:02 +0800)]
test enigma
Sepherosa Ziehau [Sat, 29 Nov 2008 10:52:35 +0000 (18:52 +0800)]
test local mirror
Sepherosa Ziehau [Sat, 29 Nov 2008 10:16:33 +0000 (18:16 +0800)]
test push
Nicolas Thery [Fri, 28 Nov 2008 12:16:55 +0000 (13:16 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Charlie [Sat, 29 Nov 2008 02:51:22 +0000 (10:51 +0800)]
test
Nicolas Thery [Fri, 28 Nov 2008 12:12:21 +0000 (13:12 +0100)]
Test switch to git repo.
Sascha Wildner [Wed, 26 Nov 2008 17:17:16 +0000 (17:17 +0000)]
Bump .Dd to when the page was updated.
Sascha Wildner [Wed, 26 Nov 2008 15:27:24 +0000 (15:27 +0000)]
Remove wrong parentheses.
Sepherosa Ziehau [Wed, 26 Nov 2008 15:05:42 +0000 (15:05 +0000)]
Resurrect priority message support; there is always +/-5~10K measurement error.
Sepherosa Ziehau [Wed, 26 Nov 2008 13:10:56 +0000 (13:10 +0000)]
- In sys_setsockopt():
o Don't test sopt.sopt_val against NULL; this is not setup yet. This fixes
random setsockopt(2) failure with EINVAL.
o Clear sopt.sopt_val earlier
o Don't do copyout in setsockopt; the user arg is const
- In sys_getsockopt():
o Clear sopt.sopt_val earlier
o Centralize sopt.sopt_valsize check
Reviewed-by: aggelos@
Sepherosa Ziehau [Wed, 26 Nov 2008 12:49:43 +0000 (12:49 +0000)]
- Proper handle flags passed to bridge_rtflush() and bridge_rtdelete(),
instead of handle it as a boolean.
- Add IFBF_FLUSHSYNC flag so bridge_rtflush() and bridge_rtdelete() could
perform async operation (used by STP code).
Sepherosa Ziehau [Wed, 26 Nov 2008 11:55:18 +0000 (11:55 +0000)]
- JMC260 with full mask revision 2 and ECO revision 0 does not support
64bits DMA operatoin.
- Newer parts (full mask revision >= 2) of JMC250/JMC260 require driver
to configure TX offload engine and TX MAC clock source according to the
current link speed.
- New datasheet no longer uses PCI revision ID to identify chip generation,
but chipmode's full mask revision and ECO revision are used; update
driver accordingly.
Thank Ethan <ethanhsiao@jmicron.com> for pointing out necessary updates
and sending me an EVB.
Hasso Tepper [Mon, 24 Nov 2008 17:40:02 +0000 (17:40 +0000)]
Remove /usr/include/libusbhid.h.
Hasso Tepper [Mon, 24 Nov 2008 17:15:17 +0000 (17:15 +0000)]
Sync libusbhid with other BSDs (breaks API compatibility). Sync usbhidctl
with FreeBSD.
Obtained-from: FreeBSD
Hasso Tepper [Mon, 24 Nov 2008 13:35:57 +0000 (13:35 +0000)]
Unbreak installworld.
Sascha Wildner [Mon, 24 Nov 2008 13:14:21 +0000 (13:14 +0000)]
Add/sync some feature strings.
Taken-from: FreeBSD
Hasso Tepper [Mon, 24 Nov 2008 12:19:14 +0000 (12:19 +0000)]
Add hardware type value define for IP over firewire. Not used yet.
Hasso Tepper [Mon, 24 Nov 2008 10:27:25 +0000 (10:27 +0000)]
Install acpiio.h.
Sascha Wildner [Sun, 23 Nov 2008 21:55:52 +0000 (21:55 +0000)]
Use .Fn for functions and macros with parameters.
Sepherosa Ziehau [Sun, 23 Nov 2008 04:28:27 +0000 (04:28 +0000)]
Save the value read from TX queue CSR, so we don't test against a stale one.
Sepherosa Ziehau [Sun, 23 Nov 2008 02:58:26 +0000 (02:58 +0000)]
Add comment about how to survive blocking operation during percpu member
interface list iteration.
Sascha Wildner [Sat, 22 Nov 2008 20:08:35 +0000 (20:08 +0000)]
Bring in a devclass_get_count(9) manual page.
Taken-from: FreeBSD
Sascha Wildner [Sat, 22 Nov 2008 18:36:18 +0000 (18:36 +0000)]
Correct my previous commit which only preserved snapshots/ but not
its contents. While here, expand the comments a bit.
Sepherosa Ziehau [Sat, 22 Nov 2008 11:03:35 +0000 (11:03 +0000)]
Remove MSGF_PRIORITY support. The flag testing and message queue selection
on the hot code path introduce noticeable performance regression during ip
forwarding (from 667Kpps to 655Kpps w/ 64bytes packet and fastforwarding
enabled on Phenom 9550).