]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoReverse this change. malloc() with M_WAITOK never fails.
kevlo [Tue, 6 Mar 2007 01:15:28 +0000 (01:15 +0000)]
Reverse this change. malloc() with M_WAITOK never fails.

Noted by: cognet, brian and thompsa

17 years agoBetter fix for the errors under high load. Returning CAM_SCSI_BUSY is almost
scottl [Tue, 6 Mar 2007 01:12:15 +0000 (01:12 +0000)]
Better fix for the errors under high load.  Returning CAM_SCSI_BUSY is almost
never correct as CAM has no real understanding of it, and will just immediately
retry the command.  This leads to undesirable cycling of the camisr as well as
a high possibility for the command to exhaust its retries before the driver
can get around to servicing it.

The better fix, as demonstrated here, is to freeze the simq and mark the
command as needing to be tried.  Then when driver can service the command,
the simq gets unfrozen.  This is correct, and documented here to help reduce
the mystery.  However, it also points out a shortcoming in CAM error handling
that makes writing drivers harder.

Submitted by: Erich Chen

17 years agoTrim trailing whitespace.
jhb [Mon, 5 Mar 2007 22:27:55 +0000 (22:27 +0000)]
Trim trailing whitespace.

17 years agoChange mtx's to use the formulated name as type so witness does not
sam [Mon, 5 Mar 2007 21:56:33 +0000 (21:56 +0000)]
Change mtx's to use the formulated name as type so witness does not
complain on nested tx q lock acquisitions when processing the cab q.

MFC after: 2 weeks

17 years agoKick tx after processing rx'd frames; this fixes latency issues
sam [Mon, 5 Mar 2007 21:53:49 +0000 (21:53 +0000)]
Kick tx after processing rx'd frames; this fixes latency issues
for processing frames from the power save queue when operating
in ap mode.  This is especially noticeable for realtime data going
to devices like voip phones.

Submitted by: "J.R. Oldroyd" <jr@opal.com>
MFC after: 2 weeks

17 years agoAcquiring smp_ipi_mtx on every call to pmap_invalidate_*() is wasteful.
alc [Mon, 5 Mar 2007 21:40:10 +0000 (21:40 +0000)]
Acquiring smp_ipi_mtx on every call to pmap_invalidate_*() is wasteful.
For example, during a buildworld more than half of the calls do not
generate an IPI because the only TLB entry invalidated is on the calling
processor.  This revision pushes down the acquisition and release of
smp_ipi_mtx into smp_tlb_shootdown() and smp_targeted_tlb_shootdown() and
instead uses sched_pin() and sched_unpin() in pmap_invalidate_*() so that
thread migration doesn't lead to a missed TLB invalidation.

Reviewed by: jhb
MFC after: 3 weeks

17 years agoCheck the _TMP value for sanity also. On some systems (HP NX laptops), the
njl [Mon, 5 Mar 2007 21:39:53 +0000 (21:39 +0000)]
Check the _TMP value for sanity also.  On some systems (HP NX laptops), the
EC occasionally times out and provides bogus values (3000C).  This change
prevents those systems from prematurely shutting down while we work on the
underlying problem.  Also, bump the sanity value to 0...200C from 0...150C.

17 years agoFix typo in comment.
thomas [Mon, 5 Mar 2007 21:21:03 +0000 (21:21 +0000)]
Fix typo in comment.

17 years agoUse vm_paddr_t rather than uintptr_t when passing the physical address of
jhb [Mon, 5 Mar 2007 20:35:17 +0000 (20:35 +0000)]
Use vm_paddr_t rather than uintptr_t when passing the physical address of
APICs to lapic_init() and ioapic_create().

17 years agoOnly reject file descriptors higher than FD_SETSIZE if we are not using
jhb [Mon, 5 Mar 2007 19:39:51 +0000 (19:39 +0000)]
Only reject file descriptors higher than FD_SETSIZE if we are not using
poll(2) or kqueue(2).  Previously we rejected fd's higher than FD_SETSIZE
for kevent(2), and larger than sysconf(_SC_OPEN_MAX) for poll(2).  However,
the check for poll(2) wasn't really needed.  open(2) and socket(2) won't
return an fd you can't pass to either poll(2) or kevent(2).  This fixes
a but where gethostbyname() would fail if you had more than 1023 files
open in a process.

MFC after: 1 week
Reviewed by: ume
Found by: ps

17 years agocorrect inital bounds check on returning scan results; this does not
sam [Mon, 5 Mar 2007 19:12:25 +0000 (19:12 +0000)]
correct inital bounds check on returning scan results; this does not
paper over catching an error as the case was already handled, albeit
in a somewhat surprising way (the caller received zero'd data)

Submitted by: sephe
MFC after: 2 weeks

17 years agoOops, fix a typo in the last commit :-/
brian [Mon, 5 Mar 2007 19:00:49 +0000 (19:00 +0000)]
Oops, fix a typo in the last commit :-/

17 years agoUse PCPU_LAZY_INC() to update page fault statistics.
alc [Mon, 5 Mar 2007 18:55:14 +0000 (18:55 +0000)]
Use PCPU_LAZY_INC() to update page fault statistics.

17 years agocorrect conversions between TU and ms/ticks; these are not used
sam [Mon, 5 Mar 2007 18:52:35 +0000 (18:52 +0000)]
correct conversions between TU and ms/ticks; these are not used
by any code in the tree[1] and are close enough for common values
that this change is a noop

[1] ath uses one macro to calculate a value that is not used
Submitted by: sephe
MFC after: 1 week

17 years agoIn the NOTYET code path when a process forks, the remaining
brian [Mon, 5 Mar 2007 17:47:27 +0000 (17:47 +0000)]
In the NOTYET code path when a process forks, the remaining
child thread goes back to system scope rather than process
scope.  This allows an ensuing exec() to actually work.

This change was made a year ago here, but I "forgot" to
commit it :(

Approved by: deischen
MFC after: 3 weeks

17 years agoAdd a simple device driver to "eat" any I/O APICs that show up as PCI
jhb [Mon, 5 Mar 2007 16:22:49 +0000 (16:22 +0000)]
Add a simple device driver to "eat" any I/O APICs that show up as PCI
devices.

MFC after: 1 week

17 years ago- Use constants for VPD capability register offsets.
jhb [Mon, 5 Mar 2007 16:21:59 +0000 (16:21 +0000)]
- Use constants for VPD capability register offsets.
- Add missing ()'s around return values.

17 years ago- Flesh out list of UART simple comms programming interfaces.
jhb [Mon, 5 Mar 2007 16:18:31 +0000 (16:18 +0000)]
- Flesh out list of UART simple comms programming interfaces.
- Add list of PIC base peripheral programming interfaces.
- Add VPD capability register offsets.

MFC after: 3 days

17 years agoApply my patch properly.
ru [Mon, 5 Mar 2007 15:44:00 +0000 (15:44 +0000)]
Apply my patch properly.

17 years agoAdd "fg" option as antonym to "bg"; add "hard" option as antonym to "soft".
thomas [Mon, 5 Mar 2007 14:47:54 +0000 (14:47 +0000)]
Add "fg" option as antonym to "bg"; add "hard" option as antonym to "soft".
This is for better compatibility with other environments (Linux, Solaris,
HP-UX, AIX and Tru64 support these options).

PR: bin/109924
MFC after: 1 week

17 years agoFix markup.
bms [Mon, 5 Mar 2007 13:52:01 +0000 (13:52 +0000)]
Fix markup.

Submitted by: ru
MFC after: 2 days

17 years agoReplay minor system call comment cleanup applied to kern_acl.c in a race
rwatson [Mon, 5 Mar 2007 13:26:07 +0000 (13:26 +0000)]
Replay minor system call comment cleanup applied to kern_acl.c in a race
with repo-copy of kern_acl.c to vfs_acl.c.

17 years agoRecognize repo-copy of kern_acl.c to vfs_acl.c, remove kern_acl.c,
rwatson [Mon, 5 Mar 2007 13:24:01 +0000 (13:24 +0000)]
Recognize repo-copy of kern_acl.c to vfs_acl.c, remove kern_acl.c,
remove kern_acl.c from the build, connect vfs_acl.c to the build.

Thanks to: joe

17 years agoFurther system call comment cleanup:
rwatson [Mon, 5 Mar 2007 13:10:58 +0000 (13:10 +0000)]
Further system call comment cleanup:

- Remove also "MP SAFE" after prior "MPSAFE" pass. (suggested by bde)
- Remove extra blank lines in some cases.
- Add extra blank lines in some cases.
- Remove no-op comments consisting solely of the function name, the word
  "syscall", or the system call name.
- Add punctuation.
- Re-wrap some comments.

17 years ago.Xr nit.
bms [Mon, 5 Mar 2007 12:54:03 +0000 (12:54 +0000)]
.Xr nit.

Submitted by: brueffer

17 years agoWarn when user use sectorsize bigger than the page size, which will lead
pjd [Mon, 5 Mar 2007 12:41:44 +0000 (12:41 +0000)]
Warn when user use sectorsize bigger than the page size, which will lead
to problems when the geli device is used with file system or as a swap.

Hopefully will prevent problems like kern/98742 in the future.

MFC after: 1 week

17 years agoUpdate shutdown() manual page to reflect actual behaviour of code.
bms [Mon, 5 Mar 2007 12:39:53 +0000 (12:39 +0000)]
Update shutdown() manual page to reflect actual behaviour of code.

Add IMPLEMENTATION NOTES section explaining in detail the effect this
system call has in common use cases involving PF_INET and PF_INET6 sockets.

PR: kern/84761
MFC after: 2 days

17 years agoFix incorrect comment. Geli will protect against data modification, of
pjd [Mon, 5 Mar 2007 12:39:49 +0000 (12:39 +0000)]
Fix incorrect comment. Geli will protect against data modification, of
course! It won't protect against reply attacks - try harder to explain
them correctly.

MFC after: 1 week

17 years agoThe firmware files are included in the base system now, reflect this here..
brueffer [Mon, 5 Mar 2007 11:52:17 +0000 (11:52 +0000)]
The firmware files are included in the base system now, reflect this here..

While here, remove Xrefs to all other wlan drivers except the Intel ones,
these often get confused.  Also remove pointers to the old ipw and iwi webpages,
they don't include any useful information that's not in the manpages yet.

Reviewed by: flz, ru

17 years agoTest cases for back references.
delphij [Mon, 5 Mar 2007 09:44:41 +0000 (09:44 +0000)]
Test cases for back references.

Obtained from: OpenBSD

17 years agoOnly stop evaluation of a back reference if the match length is
delphij [Mon, 5 Mar 2007 09:43:55 +0000 (09:43 +0000)]
Only stop evaluation of a back reference if the match length is
zero and the recursion level is too deep.

Obtained from: OpenBSD

17 years agoPartial fix for a bug in rev.1.231. If suspend/resume clobbers the
bde [Mon, 5 Mar 2007 09:10:17 +0000 (09:10 +0000)]
Partial fix for a bug in rev.1.231.  If suspend/resume clobbers the
RTC state, then it may clobber the RTC index register, so the index
register must be restored before using it to restore control registers
in rtc_restore().

The following problems remain:
- rtc_restore() is only called if pmtimer is configured.  Buggy
  suspend/resumes are more likely to clobber the index register than
  a control register, so pmtimer is more needed than it used to be.
- pmtimer doesn't exist for amd64.
- Restoring of the RTC state may race with rtcintr().  If an RTC
  interrupt is handled before the state is restored, then rtcin(RTC_INTR)
  in rtcintr() may read from the wrong register, so rtcintr() may spin
  forever.  This may be mitigated by the most common state clobbering
  being to turn off RTC interrupts.

17 years agoQuick bandaid for possible broken multiple playback channels implementation.
ariff [Mon, 5 Mar 2007 07:45:38 +0000 (07:45 +0000)]
Quick bandaid for possible broken multiple playback channels implementation.

Reported/Tested by: Oliver Iberien <odilist@sonic.net>

17 years agoCheck for malloc return value
kevlo [Mon, 5 Mar 2007 06:33:08 +0000 (06:33 +0000)]
Check for malloc return value

17 years agoAnother typo.
grog [Mon, 5 Mar 2007 05:59:49 +0000 (05:59 +0000)]
Another typo.

Spotted by:             ru
Another pointy hat to:  grog

17 years agoUse different wait channel name for second of two sleeps. Minor commentary
imp [Mon, 5 Mar 2007 05:40:24 +0000 (05:40 +0000)]
Use different wait channel name for second of two sleeps.  Minor commentary
addition.

17 years agoAvoid infinite recursion on:
delphij [Mon, 5 Mar 2007 03:07:36 +0000 (03:07 +0000)]
Avoid infinite recursion on:

  echo "foo foo bar bar bar baz" | sed 's/\([^ ]*\)\( *\1\)*/\1/g'

Obtained from: OpenBSD via NetBSD (rev. 1.18)

17 years agoCosmetics: remove trailing white space, wrap over-long lines.
grog [Mon, 5 Mar 2007 00:27:30 +0000 (00:27 +0000)]
Cosmetics: remove trailing white space, wrap over-long lines.

Pointy hat to:  grog

17 years agoChange these descriptions of memory types used in malloc(9), as their
wkoszek [Mon, 5 Mar 2007 00:21:40 +0000 (00:21 +0000)]
Change these descriptions of memory types used in malloc(9), as their
current, rather long strings make output from vmstat -m look unpleasant.

Approved by: cognet (mentor)

17 years agoRearrange function descriptions in more logical order.
grog [Sun, 4 Mar 2007 23:42:58 +0000 (23:42 +0000)]
Rearrange function descriptions in more logical order.
Be less alarmist about the dangers of abusing wakeup_one().

Requested by: kris, imp

17 years agoUse msleep(9) instead of tsleep(9) surrounded by lock acquisition and
wkoszek [Sun, 4 Mar 2007 23:40:35 +0000 (23:40 +0000)]
Use msleep(9) instead of tsleep(9) surrounded by lock acquisition and
release.

Approved by: cognet (mentor)

17 years agoRemove 'MPSAFE' annotations from the comments above most system calls: all
rwatson [Sun, 4 Mar 2007 22:36:48 +0000 (22:36 +0000)]
Remove 'MPSAFE' annotations from the comments above most system calls: all
system calls now enter without Giant held, and then in some cases, acquire
Giant explicitly.

Remove a number of other MPSAFE annotations in the credential code and
tweak one or two other adjacent comments.

17 years agoFix markup.
ru [Sun, 4 Mar 2007 19:52:07 +0000 (19:52 +0000)]
Fix markup.

17 years agoFix typo in comment.
flz [Sun, 4 Mar 2007 19:35:59 +0000 (19:35 +0000)]
Fix typo in comment.

Reported by: thompsa

17 years agoReduce the number of retries to 10 from 20 for not_a_card retry test.
imp [Sun, 4 Mar 2007 19:33:12 +0000 (19:33 +0000)]
Reduce the number of retries to 10 from 20 for not_a_card retry test.
Add some comments to explain how 10 was picked.  20 was completely
arbitrary, at least 10 has some reasoning behind it.

Also, update the comments about how long we sleep to reflect the new,
shorter timeout we use.

17 years agoMarkup polishing.
ru [Sun, 4 Mar 2007 19:04:39 +0000 (19:04 +0000)]
Markup polishing.

17 years agoMove to ANSI C function headers. Re-wrap some comments.
rwatson [Sun, 4 Mar 2007 17:50:46 +0000 (17:50 +0000)]
Move to ANSI C function headers.  Re-wrap some comments.

17 years agoPurge an out-of-date comment.
bms [Sun, 4 Mar 2007 16:32:19 +0000 (16:32 +0000)]
Purge an out-of-date comment.

17 years agoThe use of predefined strings such as \*[Ge] can be harmful here,
ru [Sun, 4 Mar 2007 13:30:02 +0000 (13:30 +0000)]
The use of predefined strings such as \*[Ge] can be harmful here,
as some fonts (e.g., KOI8-R) have special symbols for displaying
them, and we want symbols ">=" literally here.

17 years agoFix markup and clean up some of the wording.
ru [Sun, 4 Mar 2007 13:14:41 +0000 (13:14 +0000)]
Fix markup and clean up some of the wording.

(This English was hard to translate as it uses a language that is
far from a pure technical.  It would definitely benefit from a
revision.)

17 years agoDisable RPC exponential back-off for FreeBSD.org systems (IE. hidden
simon [Sun, 4 Mar 2007 12:25:03 +0000 (12:25 +0000)]
Disable RPC exponential back-off for FreeBSD.org systems (IE. hidden
behind _FREEFALL_CONFIG).  This is done mainly to make NIS even more
resistant to packet loss.

This is not enabled by default for "normal" FreeBSD since it might cause
the server providing the RPC service to be hit heavily with RPC traffic
in case of problems.  freefall.FreeBSD.org and hub.FreeBSD.org have been
running with a patch similar to this for a couple of weeks.

MFC after: 1 week
Discussed with: peter

17 years ago- Use mtx_{lock,unlock}_spin rather than {disable,enable}_intr.
nyan [Sun, 4 Mar 2007 11:36:16 +0000 (11:36 +0000)]
- Use mtx_{lock,unlock}_spin rather than {disable,enable}_intr.
- Remove unnecessary findcpuspeed() function.
- Initialize the timer_freq in i8254_init().
- Fix inittodr() and resettodr().  These are broken by rev.1.154.

17 years ago- Bump _yplib_timeout limit from 10 to 20 seconds to better handle
simon [Sun, 4 Mar 2007 10:30:43 +0000 (10:30 +0000)]
- Bump _yplib_timeout limit from 10 to 20 seconds to better handle
  packet loss when talking to a NIS server.
- Set 1 second retry timeout to further realistically handle UDP
  packet loss for yp_next packet bursts.  If the packet hasn't come
  back within 1 second its rather unlikely to come back at all.  There
  is still back-off mechanism in RPC so if there is another reason
  than packet loss for the lack of response within 1 second, the NIS
  server will not be totally bombarded with requests.

This reduces the risk of NIS failing with:

     yp_next: clnt_call: RPC: Timed out

considerably.  This is mainly a problem if you have larger NIS maps
(like at FreeBSD.org) since enumerations of the lists will cause a UDP
packet bursts where a few packets being lost once in a while do
happen.

MFC after: 1 week
Discussed with: peter
Problem mainly diagnosed by: peter

17 years agoFix markup.
ru [Sun, 4 Mar 2007 09:15:12 +0000 (09:15 +0000)]
Fix markup.

17 years agoMore markup fixes.
ru [Sun, 4 Mar 2007 08:24:13 +0000 (08:24 +0000)]
More markup fixes.

17 years agoMarkup fixes.
ru [Sun, 4 Mar 2007 08:14:26 +0000 (08:14 +0000)]
Markup fixes.

17 years agoReduce diffs with i386.
nyan [Sun, 4 Mar 2007 04:59:39 +0000 (04:59 +0000)]
Reduce diffs with i386.

17 years agostyle(9).
nyan [Sun, 4 Mar 2007 04:55:19 +0000 (04:55 +0000)]
style(9).

17 years agoMFi386: revision 1.17.
nyan [Sun, 4 Mar 2007 04:53:17 +0000 (04:53 +0000)]
MFi386: revision 1.17.

    Fix the cdboot twiddle display.

17 years agoCatch up the rest of the drivers with the ether_vlan_mtap modifications.
csjp [Sun, 4 Mar 2007 03:38:08 +0000 (03:38 +0000)]
Catch up the rest of the drivers with the ether_vlan_mtap modifications.
If these drivers are setting M_VLANTAG because they are stripping the
layer 2 802.1Q headers, then they need to be re-inserting them so any
bpf(4) peers can properly decode them.

It should be noted that this is compiled tested only.

MFC after: 3 weeks

17 years agoFix problems resulting from SMP kernels (mis-)identifying themselves as
cperciva [Sun, 4 Mar 2007 00:29:42 +0000 (00:29 +0000)]
Fix problems resulting from SMP kernels (mis-)identifying themselves as
"SMP-GENERIC" (i386) or "GENERIC" (amd64).

FreeBSD 6.2 Errata candidate.

MFC after: 3 days
Pointy hat to: cperciva

17 years agoMake the file tests robust against broken symlinks and other
kientzle [Sat, 3 Mar 2007 07:49:08 +0000 (07:49 +0000)]
Make the file tests robust against broken symlinks and other
sources of stat()/lstat() failure.

17 years agolibarchive 2.0
kientzle [Sat, 3 Mar 2007 07:37:37 +0000 (07:37 +0000)]
libarchive 2.0
  * libarchive_test program exercises many of the core features
  * Refactored old "read_extract" into new "archive_write_disk", which
    uses archive_write methods to put entries onto disk.  In particular,
    you can now use archive_write_disk to create objects on disk
    without having an archive available.
  * Pushed some security checks from bsdtar down into libarchive, where
    they can be better optimized.
  * Rearchitected the logic for creating objects on disk to reduce
    the number of system calls.  Several common cases now use a
    minimum number of system calls.
  * Virtualized some internal interfaces to provide a clearer separation
    of read and write handling and make it simpler to override key
    methods.
  * New "empty" format reader.
  * Corrected return types (this ABI breakage required the "2.0" version bump)
  * Many bug fixes.

17 years agoGet rid of chatter for failed commands if the filesystem is read-only.
njl [Sat, 3 Mar 2007 06:39:06 +0000 (06:39 +0000)]
Get rid of chatter for failed commands if the filesystem is read-only.
Include /var/db/entropy-file in the reseeding if present.  It is used for
last-ditch efforts to save entropy and thus should also be used to seed
the RNG when starting.  Print a warning instead of an error if writing the
file fails -- err() exits, preventing the umask from being restored.
Also, since there's not much that can be done about it, notifying the user
is all that's needed.

MFC after: 2 weeks

17 years agoTurn default address selection on by default. Now, when
ume [Sat, 3 Mar 2007 06:36:32 +0000 (06:36 +0000)]
Turn default address selection on by default.  Now, when
ipv6_enable="NO", an IPv4 address is preferred for a
destination address.

MFC after: 1 month

17 years agoFix a typo.
jkoshy [Sat, 3 Mar 2007 06:13:38 +0000 (06:13 +0000)]
Fix a typo.

Submitted by:  Kai Wang <kaiw27 at gmail dot com>

17 years agoClarify the meaning information printed by the -o option.
grog [Sat, 3 Mar 2007 03:50:59 +0000 (03:50 +0000)]
Clarify the meaning  information printed by the -o option.
Clean up grammar, adding articles.

17 years agoUse get_if_var() to retrieve interface specific values of dhclient_flags
brooks [Fri, 2 Mar 2007 20:48:35 +0000 (20:48 +0000)]
Use get_if_var() to retrieve interface specific values of dhclient_flags
and background_dhclient.  This allows interfaces who's names are not
valid parts of shell variables and shortens the code.

MFC after: 1 week

17 years agoDocument -J in usage.
pjd [Fri, 2 Mar 2007 20:07:59 +0000 (20:07 +0000)]
Document -J in usage.

Submitted by: Eric Anderson <anderson@freebsd.org>

17 years agostyle(9) fixes.
flz [Fri, 2 Mar 2007 18:10:55 +0000 (18:10 +0000)]
style(9) fixes.

Reported by: ru

17 years agoAdd vfs_getopt.9 to the build, and add links for related functions.
davidc [Fri, 2 Mar 2007 17:03:56 +0000 (17:03 +0000)]
Add vfs_getopt.9 to the build, and add links for related functions.

17 years agoDocument the mount option handling functions.
davidc [Fri, 2 Mar 2007 17:03:06 +0000 (17:03 +0000)]
Document the mount option handling functions.

Reviewed By: ru

17 years ago- Don't do the interrupt storm protection stuff for software interrupt
jhb [Fri, 2 Mar 2007 17:01:45 +0000 (17:01 +0000)]
- Don't do the interrupt storm protection stuff for software interrupt
  handlers.
- Use pause() when throtting during an interrupt storm.

Reported by: kris (1)

17 years agoForced commit to note that the previous edit to archive_read_extract was:
kientzle [Fri, 2 Mar 2007 16:46:18 +0000 (16:46 +0000)]
Forced commit to note that the previous edit to archive_read_extract was:
Thanks to: Alexey Popov
MFC after: 3 days

17 years agoForce the umask to something predictable while creating objects
kientzle [Fri, 2 Mar 2007 16:44:58 +0000 (16:44 +0000)]
Force the umask to something predictable while creating objects
on disk.  In particular, this fixes tar -xp restore of mode bits.

17 years agoMake pswitch_intr() returns interrupt handling status.
piso [Fri, 2 Mar 2007 15:13:17 +0000 (15:13 +0000)]
Make pswitch_intr() returns interrupt handling status.

17 years ago- Add missing subdirectories in BSD.usr.dist mtree file.
flz [Fri, 2 Mar 2007 14:56:15 +0000 (14:56 +0000)]
- Add missing subdirectories in BSD.usr.dist mtree file.
- Update hier(7) to reflect latest changes in mtree file.
- Add UPDATING entry following Intel firmwares inclusion.

Submitted by: mlaier
MFC after: 1 month

17 years agoEnsure message passed to "settimestamp" and "setcounter" is the right
emaste [Fri, 2 Mar 2007 14:36:19 +0000 (14:36 +0000)]
Ensure message passed to "settimestamp" and "setcounter" is the right
length.  Use NULL instead of 0.

Submitted by: glebius, ru

17 years agoPut this old tool for dumping PCI expansion ROM images somewhere useful.
bms [Fri, 2 Mar 2007 13:53:23 +0000 (13:53 +0000)]
Put this old tool for dumping PCI expansion ROM images somewhere useful.

WARNING: THIS IS NOT STABLE ON NON-I386 ARCHITECTURES, AND NEEDS SPECIFIC
KNOWLEDGE OF THE ADDRESS SPACE ON YOUR SYSTEM TO WORK.

17 years agoMarkup fixes.
emaste [Fri, 2 Mar 2007 12:55:24 +0000 (12:55 +0000)]
Markup fixes.

Submitted by: ru

17 years ago- Add Intel firmwares for Intel PRO/Wireless LAN 2100/2200/2915 cards in a
flz [Fri, 2 Mar 2007 11:42:56 +0000 (11:42 +0000)]
- Add Intel firmwares for Intel PRO/Wireless LAN 2100/2200/2915 cards in a
uuencoded format along with their respective LICENSE files.
- Add new share/doc/legal directory to BSD.usr.dist mtree file. This is the
place we install LICENSE files for restricted firmwares.
- Teach firmware(9) and kmod.mk about licensed firmwares. Restricted firmwares
won't load properly unless legal.<name>.license_ack is set to 1, either
via kenv(1) or /boot/loader.conf.

Reviewed by: mlaier, sam
Permitted by: Intel (via Andrew Wilson)
MFC after: 1 month

17 years agoFix geli after last commit for UP systems that are running SMP kernel.
pjd [Fri, 2 Mar 2007 09:38:16 +0000 (09:38 +0000)]
Fix geli after last commit for UP systems that are running SMP kernel.

Submitted by: Hyo geol, Lee <hyogeollee@gmail.com>
MFC after: 1 week

17 years agolock stats updates need to be protected by the lock
kmacy [Fri, 2 Mar 2007 07:21:20 +0000 (07:21 +0000)]
lock stats updates need to be protected by the lock

17 years agoFixing NO_INET6 build as addr2ascii() has been nuked in previous commit.
avatar [Fri, 2 Mar 2007 05:23:39 +0000 (05:23 +0000)]
Fixing NO_INET6 build as addr2ascii() has been nuked in previous commit.

17 years agoDocument the new {set,get}{timestamp,counter} messages supported by the
emaste [Fri, 2 Mar 2007 02:34:31 +0000 (02:34 +0000)]
Document the new {set,get}{timestamp,counter} messages supported by the
ng_source node.  Also remove an obsolete email address.

Sponsored by: Sandvine Incorporated

17 years agoAdd "setcounter" and "getcounter" messages, providing the the ability
emaste [Fri, 2 Mar 2007 01:44:04 +0000 (01:44 +0000)]
Add "setcounter" and "getcounter" messages, providing the the ability
to embed up to four counters in outgoing packets.  The message specifies
the offset at which the counter should be inserted as well as the
parameters of the counter.

Example usage:

  ngctl msg src0: setcounter \
    '{ index=0 offset=0x40 flags=1 width=4 increment=1 max_val=12345 }'

Sponsored by:   Sandvine Incorporated

17 years agoMFP4: 113090, 113130, 113132
jkim [Fri, 2 Mar 2007 01:10:26 +0000 (01:10 +0000)]
MFP4: 113090, 113130, 113132

Add Linux kernel version strings to /proc/sys/kernel.

17 years agoChange fifo_printinfo to check if the vnode v_fifoinfo pointer
mpp [Fri, 2 Mar 2007 00:10:11 +0000 (00:10 +0000)]
Change fifo_printinfo to check if the vnode v_fifoinfo pointer
is NULL and print a message to that effect to prevent a panic.

17 years agoMFP4: 115220, 115222
jkim [Fri, 2 Mar 2007 00:08:47 +0000 (00:08 +0000)]
MFP4: 115220, 115222

- Fix style(9) and reduce diff between amd64 and i386.
- Prefix Linuxulator macros with LINUX_ to prevent future collision.

17 years agoAdd "settimestamp" and "gettimestamp" messages, providing the the ability
emaste [Thu, 1 Mar 2007 23:16:17 +0000 (23:16 +0000)]
Add "settimestamp" and "gettimestamp" messages, providing the the ability
to embed a timestamp (struct timeval) in outgoing packets.  The message
specifies the offset at which the timestamp should be inserted.

NG_SOURCE(4) gives an example usage that queues an ICMP packet.  Using that
example, the following command will insert a timestamp in the ICMP's data
payload:

  ngctl msg src0: settimestamp '{ offset=0x2a flags=1 }'

Sponsored by: Sandvine Incorporated

17 years agoFix build breakage.
pjd [Thu, 1 Mar 2007 23:14:46 +0000 (23:14 +0000)]
Fix build breakage.

17 years agoChange:
pjd [Thu, 1 Mar 2007 21:44:08 +0000 (21:44 +0000)]
Change:
"... try to use VADMIN in preference to VADMIN ..."
To:
"... try to use VADMIN in preference to VWRITE ..."

17 years agoAdd support for the 3 (PATA) channel on the VIA 6421 chip.
sos [Thu, 1 Mar 2007 21:18:27 +0000 (21:18 +0000)]
Add support for the 3 (PATA) channel on the VIA 6421 chip.

HW donated by: Fabian Peters

17 years agoRename PRIV_VFS_CLEARSUGID to PRIV_VFS_RETAINSUGID, which seems to better
pjd [Thu, 1 Mar 2007 20:47:42 +0000 (20:47 +0000)]
Rename PRIV_VFS_CLEARSUGID to PRIV_VFS_RETAINSUGID, which seems to better
describe the privilege.

OK'ed by: rwatson

17 years agoAvoid checking for privileges if there is no need to.
pjd [Thu, 1 Mar 2007 20:38:24 +0000 (20:38 +0000)]
Avoid checking for privileges if there is no need to.

Discussed with: rwatson

17 years agoDo not dispatch SIGPIPE from the generic write path for a socket; with
bms [Thu, 1 Mar 2007 19:20:25 +0000 (19:20 +0000)]
Do not dispatch SIGPIPE from the generic write path for a socket; with
this patch the code behaves according to the comment on the line above.

Without this patch, a socket could cause SIGPIPE to be delivered to its
process, once with SO_NOSIGPIPE set, and twice without.

With this patch, the kernel now passes the sigpipe regression test.

Tested by: Anton Yuzhaninov
MFC after: 1 week

17 years agoAdd -t to set IP TTL.
bms [Thu, 1 Mar 2007 18:36:16 +0000 (18:36 +0000)]
Add -t to set IP TTL.

17 years agoCheck the return value from rad_cvt_ipv6prefix().
ume [Thu, 1 Mar 2007 16:13:56 +0000 (16:13 +0000)]
Check the return value from rad_cvt_ipv6prefix().

PR: bin/89808
MFC after: 1 week

17 years agoBump the bootstrapping requirements for gensnmptree(1) and remove
ru [Thu, 1 Mar 2007 15:42:23 +0000 (15:42 +0000)]
Bump the bootstrapping requirements for gensnmptree(1) and remove
a note in UPDATING that tried to work around the build breakage.

Tested by: jhb
OK'ed by: njl

17 years agoIntroduce a new mbuf flag, M_PROMISC.
bms [Thu, 1 Mar 2007 14:38:08 +0000 (14:38 +0000)]
Introduce a new mbuf flag, M_PROMISC.

An mbuf packet chain with the M_PROMISC flag set contains a unicast packet
received by the link layer, which does not correspond to any configured
link layer address in the local system.

It is copied when copying m_pkthdr. It is not cleared when crossing layers.
As such, it is defined to have a flag value which is outside of the
M_PROTO* range, like M_VLANTAG has.

Reviewed by: andre
Obtained from: NetBSD