]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoThis commit was generated by cvs2svn to compensate for changes in r174832,
Dag-Erling Smørgrav [Fri, 21 Dec 2007 11:49:29 +0000 (11:49 +0000)]
This commit was generated by cvs2svn to compensate for changes in r174832,
which included commits to RCS files with non-trunk default branches.

16 years agoVendor import of OpenPAM Hydrangea.
Dag-Erling Smørgrav [Fri, 21 Dec 2007 11:49:29 +0000 (11:49 +0000)]
Vendor import of OpenPAM Hydrangea.

16 years agousbhidctl appears to not report features and write size correctly
Warner Losh [Fri, 21 Dec 2007 03:40:36 +0000 (03:40 +0000)]
usbhidctl appears to not report features and write size correctly

This turns out to be due to an argument botch for hid_report_size.
The PR contained patches to fix the argument botch.

Submitted by: Maurice Castro
PR: usb/118915

16 years agoUpdate the comment describing vm_phys_unfree_page().
Alan Cox [Fri, 21 Dec 2007 02:44:31 +0000 (02:44 +0000)]
Update the comment describing vm_phys_unfree_page().

16 years agoMinor initialization change to not trigger bogus gcc warning about
Warner Losh [Fri, 21 Dec 2007 01:00:04 +0000 (01:00 +0000)]
Minor initialization change to not trigger bogus gcc warning about
passing literal strings to the constructors of string.

16 years agoWarner lets a good one out..
Julian Elischer [Fri, 21 Dec 2007 00:56:16 +0000 (00:56 +0000)]
Warner lets a good one out..

16 years agoApply missing s/rv/res/g in previous commit.
Marcel Moolenaar [Fri, 21 Dec 2007 00:23:23 +0000 (00:23 +0000)]
Apply missing s/rv/res/g in previous commit.

16 years agoModify vm_phys_unfree_page() so that it no longer requires the given
Alan Cox [Thu, 20 Dec 2007 22:45:54 +0000 (22:45 +0000)]
Modify vm_phys_unfree_page() so that it no longer requires the given
page to be in the free lists.  Instead, it now returns TRUE if it
removed the page from the free lists and FALSE if the page was not
in the free lists.

This change is required to support superpage reservations.  Specifically,
once reservations are introduced, a cached page can either be in the
free lists or a reservation.

16 years agoMFamd64/ia64/i386: Only set the rman bus tags and handles in
John Baldwin [Thu, 20 Dec 2007 21:42:43 +0000 (21:42 +0000)]
MFamd64/ia64/i386: Only set the rman bus tags and handles in
bus_activate_resource() methods instead of splitting it up between
bus_alloc_resource() and bus_activate_resource().

Glanced at by: marcel

16 years agoAvoid holding the aac_io_lock over copyout.
Ed Maste [Thu, 20 Dec 2007 21:13:58 +0000 (21:13 +0000)]
Avoid holding the aac_io_lock over copyout.

Submitted by: Achim Leubner @ Adaptec.

16 years agoInvoke revoke(2) on the slave pty in the pts(4) case (new_openpty()) to
John Baldwin [Thu, 20 Dec 2007 21:10:06 +0000 (21:10 +0000)]
Invoke revoke(2) on the slave pty in the pts(4) case (new_openpty()) to
kick off any other users on the device line before using it since
openpty(3) is documented to do this.  Note that grantpt(3) does not
call revoke(2), it only adjusts permissions and ownership.

MFC after: 3 days

16 years agoUpdate pkg_version_index to INDEX-8
Doug Barton [Thu, 20 Dec 2007 20:37:22 +0000 (20:37 +0000)]
Update pkg_version_index to INDEX-8

16 years ago- Adjust INDEX file name to INDEX-8 so that it matches the major FreeBSD
Gabor Kovesdan [Thu, 20 Dec 2007 20:02:16 +0000 (20:02 +0000)]
- Adjust INDEX file name to INDEX-8 so that it matches the major FreeBSD
  version number, as it is named after that

PR: docs/118053
Submitted by: Michael Plass <mfp49_freebsd@plass-family.net>

16 years agoFix disorder introduced in previous commit.
Ruslan Ermilov [Thu, 20 Dec 2007 16:40:25 +0000 (16:40 +0000)]
Fix disorder introduced in previous commit.

16 years agoMinistat was repocopied to src/usr.bin/ministat
Poul-Henning Kamp [Thu, 20 Dec 2007 10:18:15 +0000 (10:18 +0000)]
Ministat was repocopied to src/usr.bin/ministat

16 years agoPull ministat into the installed system and write it a man-page.
Poul-Henning Kamp [Thu, 20 Dec 2007 10:17:07 +0000 (10:17 +0000)]
Pull ministat into the installed system and write it a man-page.

(Repocopied from src/tools/tools/ministat)

16 years agoBy definition promiscuous mode should see all unicast frames as well
Pyun YongHyeon [Thu, 20 Dec 2007 07:26:20 +0000 (07:26 +0000)]
By definition promiscuous mode should see all unicast frames as well
as multicast/broadcast frames. Previously re(4) ignored multicast
frames in promiscuous mode. The RTL8169 datasheet was not clear
how it handles multicast frames in promiscuous mode.

PR: kern/118572
MFC after: 3 days

16 years agocall underscore version of pthread_cleanup_pop instead.
David Xu [Thu, 20 Dec 2007 04:40:12 +0000 (04:40 +0000)]
call underscore version of pthread_cleanup_pop instead.

16 years agoRemove vfork() overloading, it is no longer needed.
David Xu [Thu, 20 Dec 2007 04:32:28 +0000 (04:32 +0000)]
Remove vfork() overloading, it is no longer needed.

16 years agoGrumble. DO declare logbl(), DON'T declare logl() just yet.
David Schultz [Thu, 20 Dec 2007 03:16:55 +0000 (03:16 +0000)]
Grumble. DO declare logbl(), DON'T declare logl() just yet.
bde is going to commit logl() Real Soon Now.
I'm just trying to slow him down with merge conflicts.

Noticed by: bde

16 years agoenable wired driver support
Sam Leffler [Thu, 20 Dec 2007 00:52:02 +0000 (00:52 +0000)]
enable wired driver support

Submitted by: "Paul B. Mahol" <onemda@gmail.com>
MFC after: 1 week

16 years agoIn openprom_ioctl() ensure appropriate permissions and that data isn't
Marius Strobl [Thu, 20 Dec 2007 00:31:04 +0000 (00:31 +0000)]
In openprom_ioctl() ensure appropriate permissions and that data isn't
NULL and doesn't point to a NULL pointer before dereferencing it. This
fixes a panic triggered by Xorg 7.3.

Reported and tested by: Bill Green
MFC after: 3 days

16 years agoRemove the declaration of logl(). The relevant bits haven't been
David Schultz [Thu, 20 Dec 2007 00:06:33 +0000 (00:06 +0000)]
Remove the declaration of logl(). The relevant bits haven't been
committed yet, but the declaration leaked in when I added nan() and
friends.

Reported by: pav

16 years agoDescribe new NG_CAR_COUNT_PACKETS option.
Alexander Motin [Wed, 19 Dec 2007 23:12:37 +0000 (23:12 +0000)]
Describe new NG_CAR_COUNT_PACKETS option.

16 years agoCorrect one half of a loop continuation condition in vm_phys_unfree_page().
Alan Cox [Wed, 19 Dec 2007 23:09:45 +0000 (23:09 +0000)]
Correct one half of a loop continuation condition in vm_phys_unfree_page().
At present, this error is inconsequential; the other half of the loop
continuation condition is sufficient to achieve correct execution.

16 years agoAdd option to set packets per second limits instead of default
Alexander Motin [Wed, 19 Dec 2007 22:50:14 +0000 (22:50 +0000)]
Add option to set packets per second limits instead of default
bits per second ones.

16 years agoWhen devclass_get_maxunit is passed a NULL, return -1 to indicate that
Warner Losh [Wed, 19 Dec 2007 22:05:07 +0000 (22:05 +0000)]
When devclass_get_maxunit is passed a NULL, return -1 to indicate that
there's nothing allocated at all yet.

16 years agoUse .An -nosplit in the AUTHORS section of sf_buf(9) to avoid an undesired
Robert Watson [Wed, 19 Dec 2007 20:34:09 +0000 (20:34 +0000)]
Use .An -nosplit in the AUTHORS section of sf_buf(9) to avoid an undesired
line break.

MFC after: 3 days

16 years agoo NetBSD 4.0 added.
Maxim Konovalov [Wed, 19 Dec 2007 18:19:53 +0000 (18:19 +0000)]
o NetBSD 4.0 added.

16 years agoRedefine bus_space_tag_t on PowerPC from a 32-bit integral to
Marcel Moolenaar [Wed, 19 Dec 2007 18:00:50 +0000 (18:00 +0000)]
Redefine bus_space_tag_t on PowerPC from a 32-bit integral to
a pointer to struct bus_space. The structure contains function
pointers that do the actual bus space access.

The reason for this change is that previously all bus space
accesses were little endian (i.e. had an explicit byte-swap
for multi-byte accesses), because all busses on Macs are little
endian.
The upcoming support for Book E, and in particular the E500
core, requires support for big-endian busses because all
embedded peripherals are in the native byte-order.

With this change, there's no distinction between I/O port
space and memory mapped I/O. PowerPC doesn't have I/O port
space. Busses assign tags based on the byte-order only.
For that purpose, two global structures exist (bs_be_tag and
bs_le_tag), of which the address can be taken to get a valid
tag.

Obtained from: Juniper, Semihalf

16 years agoActually program the interrupt controller for priorities. As we
Warner Losh [Wed, 19 Dec 2007 17:34:17 +0000 (17:34 +0000)]
Actually program the interrupt controller for priorities.  As we
support more AT91 platforms, we'll need to move this into some
platform init routine.

16 years agoAdd Dell's sub-vendor id to identify PERC6 RAID controller which has LSI
Doug Ambrisko [Wed, 19 Dec 2007 17:23:47 +0000 (17:23 +0000)]
Add Dell's sub-vendor id to identify PERC6 RAID controller which has LSI
vendor id's.

16 years agoI incorrectly assumed the log buffer started from the beginning when it
Doug Ambrisko [Wed, 19 Dec 2007 17:22:07 +0000 (17:22 +0000)]
I incorrectly assumed the log buffer started from the beginning when it
is actually a circular log.  Deal with it rolling around.  Fortunately,
the log area is big and I haven't seen any roll over yet.  Update and
get rid of the obsolete comment.

16 years agoAllow negative values to be specified in the loader.
Doug Ambrisko [Wed, 19 Dec 2007 17:06:32 +0000 (17:06 +0000)]
Allow negative values to be specified in the loader.

16 years agoThe default of 3 retransmits corresponds to a timeout value of
Ruslan Ermilov [Wed, 19 Dec 2007 16:58:54 +0000 (16:58 +0000)]
The default of 3 retransmits corresponds to a timeout value of
45 seconds, not 15.

16 years agoFix bugs in the TCP syncache timeout code. including:
Ruslan Ermilov [Wed, 19 Dec 2007 16:56:28 +0000 (16:56 +0000)]
Fix bugs in the TCP syncache timeout code. including:

When system ticks are positive, for entries in the cache
bucket, syncache_timer() ran on every tick (doing nothing
useful) instead of the supposed 3, 6, 12, and 24 seconds
later (when it's time to retransmit SYN,ACK).

When ticks are negative, syncache_timer() was scheduled
for the too far future (up to ~25 days on systems with
HZ=1000), no SYN,ACK retransmits were attempted at all,
and syncache entries added in that period that correspond
to non-established connections stay there forever.

Only HEAD and RELENG_7 are affected.

Reviewed by: silby, kmacy (earlier version)
Submitted by: Maxim Dounin, ru

16 years agoDo not recursively acquire aac_io_lock in aac_ioctl_event.
Ed Maste [Wed, 19 Dec 2007 14:33:40 +0000 (14:33 +0000)]
Do not recursively acquire aac_io_lock in aac_ioctl_event.

MFC After: 3 days

16 years agoUpdate the number of reported tests to keep prove(1) happy.
Diomidis Spinellis [Wed, 19 Dec 2007 11:52:33 +0000 (11:52 +0000)]
Update the number of reported tests to keep prove(1) happy.

16 years agoCorrect the "move file from directory to existing directory" test for
Diomidis Spinellis [Wed, 19 Dec 2007 11:00:22 +0000 (11:00 +0000)]
Correct the "move file from directory to existing directory" test for
cross-device moves.

16 years agoAdd missing section number.
Christian Brueffer [Wed, 19 Dec 2007 08:01:24 +0000 (08:01 +0000)]
Add missing section number.

16 years agoEliminate redundant code from vm_page_startup().
Alan Cox [Wed, 19 Dec 2007 05:47:50 +0000 (05:47 +0000)]
Eliminate redundant code from vm_page_startup().

16 years agoRemove extraneous debug statements.
Kip Macy [Wed, 19 Dec 2007 05:17:40 +0000 (05:17 +0000)]
Remove extraneous debug statements.

Noticed by: Andrey Chernov

16 years agoAdd missing dependencies on Makefile (fixes NO_CLEAN builds).
Ruslan Ermilov [Wed, 19 Dec 2007 05:10:07 +0000 (05:10 +0000)]
Add missing dependencies on Makefile (fixes NO_CLEAN builds).

16 years agoReduce lock contention for simple cases.
Warner Losh [Wed, 19 Dec 2007 04:30:10 +0000 (04:30 +0000)]
Reduce lock contention for simple cases.

# this really should be done with pthread_once, but I've debugged this code.

Reviewed by: arch@

16 years agoAdd note about other systems.
Warner Losh [Wed, 19 Dec 2007 03:33:13 +0000 (03:33 +0000)]
Add note about other systems.

16 years agoCorrect typo in usage message.
Warner Losh [Wed, 19 Dec 2007 03:31:44 +0000 (03:31 +0000)]
Correct typo in usage message.

16 years agoGo ahead and install usbdevs. This will be used by the usbdevs device
Warner Losh [Wed, 19 Dec 2007 01:28:17 +0000 (01:28 +0000)]
Go ahead and install usbdevs.  This will be used by the usbdevs device
to print more information about some devices.

16 years agoAdd verbage on some of the rules for a 'filter' vs an 'ithread'
Warner Losh [Wed, 19 Dec 2007 01:26:34 +0000 (01:26 +0000)]
Add verbage on some of the rules for a 'filter' vs an 'ithread'
interrupt handler.

16 years agoAs several people pointed out, I did all the ctype casts the wrong
Dag-Erling Smørgrav [Wed, 19 Dec 2007 00:26:36 +0000 (00:26 +0000)]
As several people pointed out, I did all the ctype casts the wrong
way (not for the first time...)

Noticed by: bde, ru ++
MFC after: 1 week

16 years agoMove all the xprintf-related symbols to FBSDprivate_1.0.
David Schultz [Tue, 18 Dec 2007 23:49:05 +0000 (23:49 +0000)]
Move all the xprintf-related symbols to FBSDprivate_1.0.

Discussed with: deischen, kan, phk

16 years agoSince nan() is supposed to work the same as strtod("nan(...)", NULL),
David Schultz [Tue, 18 Dec 2007 23:46:32 +0000 (23:46 +0000)]
Since nan() is supposed to work the same as strtod("nan(...)", NULL),
my original implementation made both use the same code. Unfortunately,
this meant libm depended on a vendor header at compile time and previously-
unexposed vendor bits in libc at runtime.

Hence, I just wrote my own version of the relevant vendor routine. As it
turns out, mine has a factor of 8 fewer of lines of code, and is a bit more
readable anyway. The strtod() and *scanf() routines still use vendor code.

Reviewed by: bde

16 years agoDon't overload tcp_usrreqs unless the kernel doesn't provide offload support.
Kip Macy [Tue, 18 Dec 2007 23:00:25 +0000 (23:00 +0000)]
Don't overload tcp_usrreqs unless the kernel doesn't provide offload support.

16 years agoIncorporate TCP offload hooks in to core TCP code.
Kip Macy [Tue, 18 Dec 2007 22:59:07 +0000 (22:59 +0000)]
Incorporate TCP offload hooks in to core TCP code.
  - Rename output routines tcp_gen_* -> tcp_output_*.
  - Rename notification routines that turn in to no-ops in the absence of TOE
    from tcp_gen_* -> tcp_offload_*.
  - Fix some minor comment nits.
  - Add a /* FALLTHROUGH */

Reviewed by: Sam Leffler, Robert Watson, and Mike Silbersack

16 years agoBe more exact with sigaction SA_SIGINFO handling.
David E. O'Brien [Tue, 18 Dec 2007 20:39:13 +0000 (20:39 +0000)]
Be more exact with sigaction SA_SIGINFO handling.

Reviewed by: marcel

16 years agoFix printing of the number of syncache entries added.
Ruslan Ermilov [Tue, 18 Dec 2007 12:07:10 +0000 (12:07 +0000)]
Fix printing of the number of syncache entries added.

16 years agoDocument NO_PROXY / no_proxy.
Dag-Erling Smørgrav [Tue, 18 Dec 2007 11:03:26 +0000 (11:03 +0000)]
Document NO_PROXY / no_proxy.

MFC after: 3 weeks

16 years agoAdd support for the NO_PROXY / no_proxy environment variable as used by
Dag-Erling Smørgrav [Tue, 18 Dec 2007 11:03:07 +0000 (11:03 +0000)]
Add support for the NO_PROXY / no_proxy environment variable as used by
lynx, curl etc.  Note that this patch differs significantly from that
in the PR, as the submitter refined it after submitting the PR.

PR: 110388
Submitted by: Alexander Pohoyda <alexander.pohoyda@gmx.net>
MFC after: 3 weeks

16 years agoOld patch I had lying around: correctly cast the argument to is*().
Dag-Erling Smørgrav [Tue, 18 Dec 2007 10:41:12 +0000 (10:41 +0000)]
Old patch I had lying around: correctly cast the argument to is*().
IWBNI gcc could warn about this the way it warns about printf() abuse.

MFC after: 1 week

16 years agoStylify ipcs/ipcs.c and ipcrm/ipcrm in preparation of the upcoming
Edwin Groothuis [Tue, 18 Dec 2007 09:39:47 +0000 (09:39 +0000)]
Stylify ipcs/ipcs.c and ipcrm/ipcrm in preparation of the upcoming
changes as proposed in bin/118292.

Feel free to mention any I have missed, there is much to learn with
regarding to style(9).

Approved by: grog@

16 years agoSimplify the error handling and use the dereferenced sc->sc_ifp pointer.
Andrew Thompson [Tue, 18 Dec 2007 09:13:04 +0000 (09:13 +0000)]
Simplify the error handling and use the dereferenced sc->sc_ifp pointer.

16 years agoPortability improvements to investigate behavior of other OSs.
Diomidis Spinellis [Tue, 18 Dec 2007 08:53:04 +0000 (08:53 +0000)]
Portability improvements to investigate behavior of other OSs.
Now works under Solaris and Linux.

16 years agoAdd more tests. All rename(2)-based tests now succeed.
Diomidis Spinellis [Tue, 18 Dec 2007 08:49:47 +0000 (08:49 +0000)]
Add more tests.  All rename(2)-based tests now succeed.
The performance of the cross-device equivalents is under investigation.

16 years agoWhen the bridge has an address and a packet comes in for it then drop it if the
Andrew Thompson [Tue, 18 Dec 2007 07:04:50 +0000 (07:04 +0000)]
When the bridge has an address and a packet comes in for it then drop it if the
link has been marked discarding by Spanning Tree. This would cause the bridge
to see duplicate packets to itself even if STP has correctly calculated the
topology and blocked redundant links.

Reported by: trasz
Tested by: trasz
MFC after: 3 days

16 years agoUse fixed point integer math instead of floating point math when
Jason Evans [Tue, 18 Dec 2007 05:27:57 +0000 (05:27 +0000)]
Use fixed point integer math instead of floating point math when
calculating run sizes.  Use of the floating point unit was a potential
pessimization to context switching for applications that do not otherwise
use floating point math. [1]

Reformat cpp macro-related comments to improve consistency.

Submitted by: das

16 years ago - Use the macro to check the port status has it will also test if its
Andrew Thompson [Tue, 18 Dec 2007 02:12:03 +0000 (02:12 +0000)]
 - Use the macro to check the port status has it will also test if its
   administratively down (!IFF_UP)
 - Use the same parameters to lagg_link_active() to get the backup port as in
   the output path, this didnt actually matter in practice as sc_primary is
   always the first on the port list.

MFC after: 3 days

16 years agoFix logical bug in the bzip2 reading code, which results in bogus EIO
Maxim Sobolev [Tue, 18 Dec 2007 01:50:49 +0000 (01:50 +0000)]
Fix logical bug in the bzip2 reading code, which results in bogus EIO
returned on a perfectly valid bzip2 stream whose decompressed size
is multiple of read-ahead buffer size. Reproduce the problem is easy:
create some power-of-two sized file (truncate -s 1m file will do),
bzip2 it and try to load it as md_image from loader. See how it fails.

The bug doesn't affect gzip code (which most of bzip2-reading code was
copied from) probably due to the fact that libgzip doesn't report
Z_STREAM_END with the last block, but requires extra call to inflate()
to retrieve it and has some extra data in the input stream at that time.
However, apply similar fix to gzipfs.c just in the case the API will
change in the future to do what bzip2 code does.

Add some ifdef'ed code to enable testing bzipfs.c from witin normal
FreeBSD environment as opposed to the restricted loader one, so that
one can use gdb and whatnot.

Sponsored by: Sippy Software, Inc., http://www.sippysoft.com/
MFC in: 7 days

16 years ago- sctp-iterator should run at PI_NET priority ...not 0.
Randall Stewart [Tue, 18 Dec 2007 01:24:15 +0000 (01:24 +0000)]
- sctp-iterator should run at PI_NET priority ...not 0.

MFC after: 1 week

16 years agoCatch up with vfprintf.c,v 1.77.
David Schultz [Tue, 18 Dec 2007 01:20:33 +0000 (01:20 +0000)]
Catch up with vfprintf.c,v 1.77.

16 years agoRemove z_abs(). The z_*() functions were in libf77, and for some reason
David Schultz [Tue, 18 Dec 2007 01:15:20 +0000 (01:15 +0000)]
Remove z_abs(). The z_*() functions were in libf77, and for some reason
someone thought it would be a good idea to copy z_abs() to libm in 1994.
However, it's never been declared or documented anywhere, and I'm
reasonably confident that nobody uses it.

Discussed with: bde, deischen, kan

16 years agoonly include intr_machdep.h when it is needed for intr_bind
Kip Macy [Mon, 17 Dec 2007 23:39:28 +0000 (23:39 +0000)]
only include intr_machdep.h when it is needed for intr_bind
ia64 doesn't have an intr_machdep.h

16 years agoA few more adjustments needed because of changes in xorg. Just installing
Ken Smith [Mon, 17 Dec 2007 23:22:58 +0000 (23:22 +0000)]
A few more adjustments needed because of changes in xorg.  Just installing
xorg-server doesn't include any video drivers so install xorg-drivers as
well.  And if font-alias isn't installed the X server won't start,
complaining it can't find the font "fixed".

Insta-MFC coming, this was tested with a RELENG_6_3 release build and
the necessary packages as part of the first round of testing for 6.3-RC2.

16 years agoRemove file after being repocopied to ../ofw, where it lives on.
Marcel Moolenaar [Mon, 17 Dec 2007 22:50:39 +0000 (22:50 +0000)]
Remove file after being repocopied to ../ofw, where it lives on.

Repocopy by: simon@

16 years agoBuild the OFW loader from its new location after the sources
Marcel Moolenaar [Mon, 17 Dec 2007 22:19:44 +0000 (22:19 +0000)]
Build the OFW loader from its new location after the sources
were repocopied from ./loader to ./ofw.

16 years agoForced commit to record that this file was repocopied from
Marcel Moolenaar [Mon, 17 Dec 2007 22:18:07 +0000 (22:18 +0000)]
Forced commit to record that this file was repocopied from
src/sys/boot/powerpc/loader.

Repocopy by: simon@

16 years agoAdd myself to the copyright.
Andrew Thompson [Mon, 17 Dec 2007 18:49:44 +0000 (18:49 +0000)]
Add myself to the copyright.

16 years agoOops, the previous commit was not needed -- the file was committed but
Bruce Evans [Mon, 17 Dec 2007 18:21:23 +0000 (18:21 +0000)]
Oops, the previous commit was not needed -- the file was committed but
not checked out due to my checkout error.

16 years agoTranslate from the i386 so that this compiles and runs.
Bruce Evans [Mon, 17 Dec 2007 18:12:06 +0000 (18:12 +0000)]
Translate from the i386 so that this compiles and runs.

I hope that this and the i386 version of it will not be needed, but
this is currently about 16 cycles or 36% faster than the C version,
and the i386 version is about 8 cycles or 19% faster than the C
version, due to poor optimization of the C version.

16 years agoFix a MAC label leak for POSIX semaphores, in which per-policy labels
Robert Watson [Mon, 17 Dec 2007 17:26:32 +0000 (17:26 +0000)]
Fix a MAC label leak for POSIX semaphores, in which per-policy labels
would be properly disposed of, but the global label structure for the
semaphore wouldn't be freed.

MFC after: 3 days
Reported by: tanyong <tanyong at ercist dot iscas dot ac dot cn>,
zhouzhouyi

16 years agoFix leaking MAC labels for IPv6 inpcbs by adding missing MAC label
Robert Watson [Mon, 17 Dec 2007 17:20:57 +0000 (17:20 +0000)]
Fix leaking MAC labels for IPv6 inpcbs by adding missing MAC label
destroy call; this transpired because the inpcb alloc path for IPv4/IPv6
is the same code, but IPv6 has a separate free path.  The results was
that as new IPv6 TCP connections were created, kernel memory would
gradually leak.

MFC after: 3 days
Reported by: tanyong <tanyong at ercist dot iscas dot ac dot cn>,
zhouzhouyi

16 years agoMoved logging out of the nss_method_lookup() in order not to
Michael Bushkov [Mon, 17 Dec 2007 16:12:57 +0000 (16:12 +0000)]
Moved logging out of the nss_method_lookup() in order not to
flood logs with failed fallback method lookup attempts.

16 years agoDon't try to build s_nanl.c before it is committed.
Bruce Evans [Mon, 17 Dec 2007 13:20:38 +0000 (13:20 +0000)]
Don't try to build s_nanl.c before it is committed.

16 years agoCalculate p.fs.lookup_step correctly. This should prevent zeroing of
Oleg Bulyzhin [Mon, 17 Dec 2007 10:25:56 +0000 (10:25 +0000)]
Calculate p.fs.lookup_step correctly. This should prevent zeroing of
w_q_lookup table (used in RED algorithm for (1 - w_q)^t computation).

MFC after: 1 months

16 years agodisable update in place on transmit
Kip Macy [Mon, 17 Dec 2007 10:02:29 +0000 (10:02 +0000)]
disable update in place on transmit

16 years agoAdd SB_NOCOALESCE flag to disable socket buffer update in place
Kip Macy [Mon, 17 Dec 2007 10:02:01 +0000 (10:02 +0000)]
Add SB_NOCOALESCE flag to disable socket buffer update in place

16 years agoCalling any function from vfork other than exec* and _exit yields
Diomidis Spinellis [Mon, 17 Dec 2007 09:02:42 +0000 (09:02 +0000)]
Calling any function from vfork other than exec* and _exit yields
undefined behavior.

Noted by: alfred

16 years agoMake TCP offload work on HEAD (modulo negative interaction between sbcompress
Kip Macy [Mon, 17 Dec 2007 08:17:51 +0000 (08:17 +0000)]
Make TCP offload work on HEAD (modulo negative interaction between sbcompress
and t3_push_frames).
 - Import latest changes to cxgb_main.c and cxgb_sge.c from toestack p4 branch
 - make driver local copy of tcp_subr.c and tcp_usrreq.c and override tcp_usrreqs so
   TOE can also functions on versions with unmodified TCP

- add cxgb back to the build

16 years agoCheck NULL pointer.
David Xu [Mon, 17 Dec 2007 08:09:37 +0000 (08:09 +0000)]
Check NULL pointer.

16 years agoFix an int overflow on very large file systems.
David Schultz [Mon, 17 Dec 2007 08:03:18 +0000 (08:03 +0000)]
Fix an int overflow on very large file systems.

PR: bin/113399
Submitted by: Staffan Ulfberg <staffan@ulfberg.se>

16 years agobuild tcp_offload.c instead of tcp_ofld.c
Kip Macy [Mon, 17 Dec 2007 08:00:08 +0000 (08:00 +0000)]
build tcp_offload.c instead of tcp_ofld.c

16 years agoincorporate feedback since initial commit
Kip Macy [Mon, 17 Dec 2007 07:56:27 +0000 (07:56 +0000)]
incorporate feedback since initial commit
- rename tcp_ofld.[ch] to tcp_offload.[ch]
- document usage and locking conventions of the functions in the
  toe_usrreqs function vector
- document tcpcb, inpcb, and socket fields used by toe
- widen the listen interface into 2 functions
- rename DISABLE_TCP_OFFLOAD to TCP_OFFLOAD_DISABLE
- shrink conditional compilation to reduce the likelihood of bitrot
- replace sc->sc_toepcb checks in tcp_syncache.c with TOEPCB_ISSET

16 years agowiden the routing event interface (arp update, redirect, and eventually pmtu change)
Kip Macy [Mon, 17 Dec 2007 07:40:34 +0000 (07:40 +0000)]
widen the routing event interface (arp update, redirect, and eventually pmtu change)
into separate functions

revert previous commit's changes to arpresolve and add a new interface
arpresolve2 which does arp resolution without an mbuf

16 years agoo Fix a holiday to reflect a reality.
Maxim Konovalov [Mon, 17 Dec 2007 07:36:39 +0000 (07:36 +0000)]
o Fix a holiday to reflect a reality.

Submitted by: Andrey V. Elsukov
MFC after: 1 week

16 years agoAdd missing changes for fixing LOR of umtx lock and thread lock, follow
David Xu [Mon, 17 Dec 2007 05:55:07 +0000 (05:55 +0000)]
Add missing changes for fixing LOR of umtx lock and thread lock, follow
the committing of files:
kern_resource.c revision 1.181
sched_4bsd.c revision 1.111
sched_ule.c revision 1.218

16 years agoUse M_NOWAIT instead of M_WAITOK to cause malloc() to return NULL
Kevin Lo [Mon, 17 Dec 2007 05:08:54 +0000 (05:08 +0000)]
Use M_NOWAIT instead of M_WAITOK to cause malloc() to return NULL

Reviewed by: imp

16 years agoDon't panic in arpresolve if we're given a null mbuf. We could
Kip Macy [Mon, 17 Dec 2007 04:19:25 +0000 (04:19 +0000)]
Don't panic in arpresolve if we're given a null mbuf. We could
insist that the caller just pass in an initialized mbuf even
if didn't have any data - but that seems rather contrived.

16 years agoAdd logbl(3) to libm.
David Schultz [Mon, 17 Dec 2007 03:53:38 +0000 (03:53 +0000)]
Add logbl(3) to libm.

16 years agoAdd function prototypes.
David Xu [Mon, 17 Dec 2007 02:53:11 +0000 (02:53 +0000)]
Add function prototypes.

16 years agoRefactor features a bit in order to make it possible to disable lazy
Jason Evans [Mon, 17 Dec 2007 01:20:04 +0000 (01:20 +0000)]
Refactor features a bit in order to make it possible to disable lazy
deallocation and dynamic load balancing via the MALLOC_LAZY_FREE and
MALLOC_BALANCE knobs.  This is a non-functional change, since these
features are still enabled when possible.

Clean up a few things that more pedantic compiler settings would cause
complaints over.

16 years agoDocument the fact that we have nan(3) now, and make some minor clarifications
David Schultz [Mon, 17 Dec 2007 01:04:43 +0000 (01:04 +0000)]
Document the fact that we have nan(3) now, and make some minor clarifications
in other places.

16 years agoOn platforms where long is 64 bits, make sure gdtoa doesn't use a
David Schultz [Mon, 17 Dec 2007 00:19:49 +0000 (00:19 +0000)]
On platforms where long is 64 bits, make sure gdtoa doesn't use a
long when it really wants an int.