]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoImport ACPICA 20090521.
jkim [Fri, 5 Jun 2009 18:44:36 +0000 (18:44 +0000)]
Import ACPICA 20090521.

15 years agoImport ACPICA 20090521.
jkim [Fri, 5 Jun 2009 18:43:13 +0000 (18:43 +0000)]
Import ACPICA 20090521.

15 years agolack of power save violates 802.11 and is a bug, not a "caveat"
sam [Fri, 5 Jun 2009 17:44:43 +0000 (17:44 +0000)]
lack of power save violates 802.11 and is a bug, not a "caveat"

15 years agonote lack of power save support in ap mode
sam [Fri, 5 Jun 2009 17:26:15 +0000 (17:26 +0000)]
note lack of power save support in ap mode

Submitted by: "Paul B. Mahol" <onemda@gmail.com>

15 years agoDo not force the mtu to 2290; this was done to insure large EAPOL frames
sam [Fri, 5 Jun 2009 17:19:55 +0000 (17:19 +0000)]
Do not force the mtu to 2290; this was done to insure large EAPOL frames
could be handled w/o fragmentation but clobbers user-specified values
such as those required when the interface is bridged.

Submitted by: jim@netgate.com
Reviewed by: Jouni Malinen
MFC after: 3 days

15 years agovm_thread_swapin() needn't validate any pages. The pages are already
alc [Fri, 5 Jun 2009 17:06:20 +0000 (17:06 +0000)]
vm_thread_swapin() needn't validate any pages.  The pages are already
validated by vm_pager_get_pages().

15 years agoSimplify contigfree().
alc [Fri, 5 Jun 2009 16:55:10 +0000 (16:55 +0000)]
Simplify contigfree().

15 years agoUnlock the cache lock before returning when we run out of buffer space
marcus [Fri, 5 Jun 2009 16:44:42 +0000 (16:44 +0000)]
Unlock the cache lock before returning when we run out of buffer space
trying to fill in the full path name.

Reported by: David Naylor <naylor.b.david@gmail.com>
Approved by: kib

15 years agoSeveral ipfw options and actions use a 16-bit argument to indicate
luigi [Fri, 5 Jun 2009 16:16:07 +0000 (16:16 +0000)]
Several ipfw options and actions use a 16-bit argument to indicate
pipes, queues, tags, rule numbers and so on.
These are all different namespaces, and the only thing they have in
common is the fact they use a 16-bit slot to represent the argument.

There is some confusion in the code, mostly for historical reasons,
on how the values 0 and 65535 should be used. At the moment, 0 is
forbidden almost everywhere, while 65535 is used to represent a
'tablearg' argument, i.e. the result of the most recent table() lookup.

For now, try to use explicit constants for the min and max allowed
values, and do not overload the default rule number for that.

Also, make the MTAG_IPFW declaration only visible to the kernel.

NOTE: I think the issue needs to be revisited before 8.0 is out:
the 2^16 namespace limit for rule numbers and pipe/queue is
annoying, and we can easily bump the limit to 2^32 which gives
a lot more flexibility in partitioning the namespace.

MFC after: 5 days

15 years agoRemove clists from the kernel.
ed [Fri, 5 Jun 2009 15:31:38 +0000 (15:31 +0000)]
Remove clists from the kernel.

Clists were originally used by the TTY layer as a text buffer interface.
The advantage of clists were that it would allocate a small set of
additional buffers that could be shared between TTYs when needed. In
the modern days we can just allocate some more KBs of memory to keep the
TTYs satisfied. The global cfreelist also requires synchronisation,
which may not be useful when trying to improve scalability.

The MPSAFE TTY layer uses its own text buffers (ttyinq and ttyoutq). We
had a small amount of drivers in the tree that still uses clists, like
the old USB stack and some keyboard drivers. With the old USB stack gone
and the keyboard drivers changed to use a circular buffer, we can safely
remove clists from the kernel.

15 years agoMove buffer management into kbd and kbdmux drivers.
ed [Fri, 5 Jun 2009 15:19:05 +0000 (15:19 +0000)]
Move buffer management into kbd and kbdmux drivers.

These two drivers seem to be the last consumers of clists. clists are
quite overengineered for simple circular buffers, so I'm adding similar
buffer management routines to the kbd and kbdmux drivers. The input
buffer is now part of the softc structures, instead of having
dynamically allocated cblocks.

15 years agoMove "options MAC" from opt_mac.h to opt_global.h, as it's now in GENERIC
rwatson [Fri, 5 Jun 2009 14:55:22 +0000 (14:55 +0000)]
Move "options MAC" from opt_mac.h to opt_global.h, as it's now in GENERIC
and used in a large number of files, but also because an increasing number
of incorrect uses of MAC calls were sneaking in due to copy-and-paste of
MAC-aware code without the associated opt_mac.h include.

Discussed with: pjd

15 years agoUnifdef MAC label pointer in syncache entries -- in general, ifdef'd
rwatson [Fri, 5 Jun 2009 14:31:03 +0000 (14:31 +0000)]
Unifdef MAC label pointer in syncache entries -- in general, ifdef'd
structure contents are a bad idea in the kernel for binary
compatibility reasons, and this is a single pointer that is now included
in compiles by default anyway due to options MAC being in GENERIC.

15 years agoCorrect MAC compile problems resulting from the new RPC code copying and
rwatson [Fri, 5 Jun 2009 14:29:49 +0000 (14:29 +0000)]
Correct MAC compile problems resulting from the new RPC code copying and
pasting code from the general socket code without also bringing along
required opt_mac.h includes.

15 years agoAdd mac_framework.h include missed when MAC code was (presumably) copied
rwatson [Fri, 5 Jun 2009 14:23:24 +0000 (14:23 +0000)]
Add mac_framework.h include missed when MAC code was (presumably) copied
from another file.

15 years agoDon't check MAC in the NFS server ACL set path, right now we aren't
rwatson [Fri, 5 Jun 2009 14:15:00 +0000 (14:15 +0000)]
Don't check MAC in the NFS server ACL set path, right now we aren't
enforcing MAC for NFS clients.

15 years agoTrim old remnants of per-CPU KTR buffers.
jhb [Fri, 5 Jun 2009 14:07:00 +0000 (14:07 +0000)]
Trim old remnants of per-CPU KTR buffers.

Submitted by:  Eygene Ryabinkin

15 years agoFix spelling of MAC check for 8.x version of MAC Framework, not noticed due
rwatson [Fri, 5 Jun 2009 13:55:33 +0000 (13:55 +0000)]
Fix spelling of MAC check for 8.x version of MAC Framework, not noticed due
to a lack of an opt_mac.h include, which I won't add for now as options MAC
will soon move to opt_global.h.

Spotted by: pjd

15 years agoMore cleanup in preparation of ipfw relocation (no actual code change):
luigi [Fri, 5 Jun 2009 13:44:30 +0000 (13:44 +0000)]
More cleanup in preparation of ipfw relocation (no actual code change):

+ move ipfw and dummynet hooks declarations to raw_ip.c (definitions
  in ip_var.h) same as for most other global variables.
  This removes some dependencies from ip_input.c;

+ remove the IPFW_LOADED macro, just test ip_fw_chk_ptr directly;

+ remove the DUMMYNET_LOADED macro, just test ip_dn_io_ptr directly;

+ move ip_dn_ruledel_ptr to ip_fw2.c which is the only file using it;

To be merged together with rev 193497

MFC after: 5 days

15 years agoremove a printf that was only useful for debugging.
luigi [Fri, 5 Jun 2009 13:11:34 +0000 (13:11 +0000)]
remove a printf that was only useful for debugging.

MFC after: 3 days

15 years ago[patch] Portuguese timedef
edwin [Fri, 5 Jun 2009 13:05:14 +0000 (13:05 +0000)]
[patch] Portuguese timedef

In Portuguese, the names of the days of the week are not capitalized.
Also there is always a dash before "feira" in the names of the days.
For example: "segunda-feira" and not "segunda feira" (which has a
completely different meaning).

x_fmt is not correct either. The date separator should not be a dot
but a slash. Example: 31/12/2005 if far more used in Portugal than
31.12.2005.

References:
- a Portuguese online dictionary http://priberam.pt/dlpo/dlpo.aspx
- http://answers.com/days_of_the_week (there are translations to
  various languages, including Portuguese, at the bottom of the
  page)
- http://en.wikipedia.org/wiki/Week-day_names (there are translations
  to various languages, including Portuguese, at the bottom of the
  page)
- a Portuguese style guide
  http://www.publico.clix.pt/nos/livro_estilo/16d-palavras.html
  ("datas" section)

PR: conf/58595
Submitted by: Chris Stenton <jacs@gnome.co.uk>
MFC after: 1 week

15 years agoSmall changes (no actual code changes) in preparation of moving ipfw-related
luigi [Fri, 5 Jun 2009 12:49:54 +0000 (12:49 +0000)]
Small changes (no actual code changes) in preparation of moving ipfw-related
stuff to its own directory, and cleaning headers and dependencies:

In this commit:
+ remove one use of a typedef;
+ document dn_rule_delete();
+ replace one usage of the DUMMYNET_LOADED macro with its value;

No MFC planned until the cleanup is complete.

15 years agoDiscover and handle the number of E500 CPUs in run time.
raj [Fri, 5 Jun 2009 09:46:00 +0000 (09:46 +0000)]
Discover and handle the number of E500 CPUs in run time.

15 years agoIf we're passed garbage in malloc_init(), panic() rather than expecting
brian [Fri, 5 Jun 2009 09:16:52 +0000 (09:16 +0000)]
If we're passed garbage in malloc_init(), panic() rather than expecting
a KASSERT to handle it.  People are likely to turn off INVARIANTS RSN
and loading an old module can cause garbage-in here.

I saw the issue with an older nvidia driver (x11/nvidia-driver) loading
into a new kernel - a crash wasn't seen 'till sysctl_kern_malloc_stats().
I was lucky that mtp->ks_shortdesc was NULL and not something horrible.

While I'm here, KASSERT that malloc_uninit() isn't passed something that's
not in kmemstatistics.

MFC after: 3 weeks

15 years agoFill PTEs covering kernel code and data.
raj [Fri, 5 Jun 2009 09:09:46 +0000 (09:09 +0000)]
Fill PTEs covering kernel code and data.

Without this fix pte_vatopa() was not able to retrieve physical address of
data structures inside kernel, for example EFAULT was reported while acessing
/dev/kmem ('netstat -nr').

Submitted by: Piotr Ziecik
Obtained from: Semihalf

15 years agoChange the behaviour of -F slightly; it now persists (forever) in
brian [Fri, 5 Jun 2009 09:08:53 +0000 (09:08 +0000)]
Change the behaviour of -F slightly; it now persists (forever) in
trying to open files rather than giving up when it encounters an
error.  ENOENT errors are not reported.

As a result, files that are moved away then recreated are not at
risk of being 'lost' to tail.  Files that are recreated and
temporarily have unreadable permissions will be shown when they
are fixed.

This behaviour is consistent with the GNU version of tail but
without the verbiage that goes with the GNU version.

This change also fixes error messages accompanying -f and -F.
They no longer report problems with (null)!

MFC after: 3 weeks

15 years agoMisc fixed to fortunes
edwin [Fri, 5 Jun 2009 07:57:10 +0000 (07:57 +0000)]
Misc fixed to fortunes

PR: conf/112024
Submitted by: Niclas Zeising <niclas.zeising@gmail.com>
MFC after: 2 days

15 years agoBump document date.
benno [Fri, 5 Jun 2009 03:06:24 +0000 (03:06 +0000)]
Bump document date.

Pointed out by: trhodes

15 years agoPerform some checking on the requested list of modules to warn people if they
benno [Thu, 4 Jun 2009 23:43:08 +0000 (23:43 +0000)]
Perform some checking on the requested list of modules to warn people if they
try to load modules by filename out of the current directory where the module
in question may be further up the module path or not in the module path at all.

Also add some text to the man page to help explain what's going on.

Sponsored by: Redacted Consulting

15 years agostyle(9) pass prior to further changes.
benno [Thu, 4 Jun 2009 23:31:05 +0000 (23:31 +0000)]
style(9) pass prior to further changes.

Sponsored by: Redacted Consulting

15 years ago[patch] fortune(6): George Bernard Shaw quote fix
edwin [Thu, 4 Jun 2009 22:01:50 +0000 (22:01 +0000)]
[patch] fortune(6): George Bernard Shaw quote fix

From the original PR:

    s/milestones/millstones/
    and less important..
    s/man/Man/
    Not every source I've seen capitalizes 'Man', but it seems
    right. Uncapitalized 'man' would usually be preceded by
    an 'a'. But I haven't seen any reference cite the orignal
    source yet, so I can't say for sure.

http://quotationsbook.com/quote/31568/

PR: conf/131469
Submitted by: John Hein <jhein@timing.com>
MFC after: 2 days

15 years agoRemove duplicate variable setting.
thompsa [Thu, 4 Jun 2009 22:00:48 +0000 (22:00 +0000)]
Remove duplicate variable setting.

Spotted by: Sylvestre Gallon

15 years agorevert r162516. We only support 1 or 2 channels per stream
thompsa [Thu, 4 Jun 2009 21:59:28 +0000 (21:59 +0000)]
revert r162516. We only support 1 or 2 channels per stream
which reflects mono and stereo.

Submitted by: Hans Petter Selasky

15 years ago[patch] fortune(6): file not Y2.01K compliant
edwin [Thu, 4 Jun 2009 21:55:07 +0000 (21:55 +0000)]
[patch] fortune(6): file not Y2.01K compliant

Update the time in the fortune to make the joke a little bit more
realistic again: Bump year from 2009 to 2039.

PR: conf/129860
Submitted by: Alan Amesbury <amesbury@umn.edu>
MFC after: 2 days

15 years ago[patch] calendar.music: Chuck Berry was born in St. Louis, Missouri, not California
edwin [Thu, 4 Jun 2009 21:48:04 +0000 (21:48 +0000)]
[patch] calendar.music: Chuck Berry was born in St. Louis, Missouri, not California

    The /usr/bin/calendar program reports that Chuck Berry was born
    in San Jose California but he was not born in California.

    Chuck Berry was born in St. Louis, Missouri in 1926 on October 18.

    http://www.chuckberry.com/about/bio.htm
    http://www.khaldea.com/charts/chuckberry.shtml
    http://en.wikipedia.org/wiki/Chuck_Berry

PR: conf/128215
Submitted by: comet--berkeley (aka Pablo Picasso) <comet@transbay.net>
MFC after: 2 days

15 years agoResync with head.
jkim [Thu, 4 Jun 2009 21:31:03 +0000 (21:31 +0000)]
Resync with head.

15 years agoPrefer predefined DSDT signature from header file.
jkim [Thu, 4 Jun 2009 21:01:04 +0000 (21:01 +0000)]
Prefer predefined DSDT signature from header file.

15 years agoFix ACPI table override. Since ACPI CA 20090123, any ACPI table can be
jkim [Thu, 4 Jun 2009 20:53:26 +0000 (20:53 +0000)]
Fix ACPI table override.  Since ACPI CA 20090123, any ACPI table can be
overriden, not just DSDT.  However, we do not support this feature yet.

15 years agoDo not install SSDT when DSDT is overriden by user.
jkim [Thu, 4 Jun 2009 20:48:31 +0000 (20:48 +0000)]
Do not install SSDT when DSDT is overriden by user.

15 years agotrack rename of CSA ie
sam [Thu, 4 Jun 2009 18:22:21 +0000 (18:22 +0000)]
track rename of CSA ie

Submitted by: wxs

15 years agoWhen checking for shared writes, use the struct mount returned from
ps [Thu, 4 Jun 2009 16:50:03 +0000 (16:50 +0000)]
When checking for shared writes, use the struct mount returned from
vn_start_write.

Reviewed by: jhb

15 years agoSupport shared vnode locks for write operations when the offset is
ps [Thu, 4 Jun 2009 16:18:07 +0000 (16:18 +0000)]
Support shared vnode locks for write operations when the offset is
provided on filesystems that support it.  This really improves mysql
+ innodb performance on ZFS.

Reviewed by: jhb, kmacy, jeffr

15 years agoo station mode channel switch support
sam [Thu, 4 Jun 2009 15:57:38 +0000 (15:57 +0000)]
o station mode channel switch support
o IEEE80211_IOC_CHANSWITCH fixups:
  - restrict to hostap vaps
  - return EOPNOTSUPP instead of EINVAL when applied to !hostap vap
    or to a vap w/o 11h enabled
  - interpret count of 0 to mean cancel the current CSA

Reviewed by: rpaulo, avatar

15 years agoFix upcall races in the client side krpc. For the client side upcall,
rmacklem [Thu, 4 Jun 2009 14:49:27 +0000 (14:49 +0000)]
Fix upcall races in the client side krpc. For the client side upcall,
holding SOCKBUF_LOCK() isn't sufficient to guarantee that there is
no upcall in progress, since SOCKBUF_LOCK() is released/re-acquired
in the upcall. An upcall reference counter was added to the upcall
structure that is incremented at the beginning of the upcall and
decremented at the end of the upcall. As such, a reference count == 0
when holding the SOCKBUF_LOCK() guarantees there is no upcall in
progress. Add a function that is called just after soupcall_clear(),
which waits until the reference count == 0.
Also, move the mtx_destroy() down to after soupcall_clear(), so that
the mutex is not destroyed before upcalls are done.

Reviewed by: dfr, jhb
Tested by: pho
Approved by: kib (mentor)

15 years agoFix two races in the server side krpc w.r.t upcalls:
rmacklem [Thu, 4 Jun 2009 14:13:06 +0000 (14:13 +0000)]
Fix two races in the server side krpc w.r.t upcalls:
  Add a flag so that soupcall_clear() is only called once to cancel
  an upcall.
  Move the test for xprt_registered in the upcall down to after the
  mtx_lock() of the pool mutex, to catch the case where it is
  unregistered while the upcall is waiting for the mutex.
Also, move the mtx_destroy() of the pool mutex to after SVC_RELEASE(),
so that it isn't destroyed before the upcalls are disabled.

Reviewed by: dfr, jhb
Tested by: pho
Approved by: kib (mentor)

15 years agofix a bug introduced in rev.190865 related to the signedness
luigi [Thu, 4 Jun 2009 12:27:57 +0000 (12:27 +0000)]
fix a bug introduced in rev.190865 related to the signedness
of the credit of a pipe. On passing, also use explicit
signed/unsigned types for two other fields.
Noticed by Oleg Bulyzhin and Maxim Ignatenko long ago,
i forgot to commit the fix.

Does not affect RELENG_7.

15 years agoCorrect typo; errno => error.
ed [Thu, 4 Jun 2009 11:22:53 +0000 (11:22 +0000)]
Correct typo; errno => error.

15 years agoRe-add opt_mac.h include, which is required in order for MNT_MULTILABEL
rwatson [Thu, 4 Jun 2009 10:30:18 +0000 (10:30 +0000)]
Re-add opt_mac.h include, which is required in order for MNT_MULTILABEL
to be set properly on devfs.  Otherwise, it isn't possible to set labels
on /dev nodes.

Reported by: Sergio Rodriguez <sergiorr at yahoo.com>
MFC after: 3 days

15 years agoDon't panic in nlm_record_lock if we get ENOENT from lf_advlockasync. This
dfr [Thu, 4 Jun 2009 08:13:51 +0000 (08:13 +0000)]
Don't panic in nlm_record_lock if we get ENOENT from lf_advlockasync. This
is likely to be because the file was just removed and in our context this is
harmless.

15 years agoadd two prerequisites; if_zydreg.h and if_zydfw for dependency check.
weongyo [Thu, 4 Jun 2009 03:59:20 +0000 (03:59 +0000)]
add two prerequisites; if_zydreg.h and if_zydfw for dependency check.

15 years agoreimplements RF logic for GCT chipset (as known as UW2453) to support
weongyo [Thu, 4 Jun 2009 02:49:50 +0000 (02:49 +0000)]
reimplements RF logic for GCT chipset (as known as UW2453) to support
ICIDU NI-707503 which is donated by Nick Hibma (great thanks!).  Though
it has a MAXIM RF (0x8) there's some success reports with using GCT RF
(0x9) codes and it worked well for ICIDU NI-707503 too.  So codes for
MAXIM and GCT RFs are integrated.

Before this commit, if I rememeber correctly, MAXIM RF is never tested
that it seems it's a first report working with FreeBSD.

15 years agocleanups the device match list.
weongyo [Thu, 4 Jun 2009 01:55:13 +0000 (01:55 +0000)]
cleanups the device match list.

15 years agoWhen a channel switch is done to a channel with different operating
sam [Wed, 3 Jun 2009 23:33:09 +0000 (23:33 +0000)]
When a channel switch is done to a channel with different operating
characteristics force the stations to re-associate so protocol state
is re-initialized.  Note that for 11h/DFS this is irrelevant as channel
changes are never cross-band.

Reviewed by: ctlaw

15 years agoAfter a channel switch mark associated stations so they will immediately
sam [Wed, 3 Jun 2009 23:30:25 +0000 (23:30 +0000)]
After a channel switch mark associated stations so they will immediately
be probed as inactive; this more quickly weeds out stations that don't
follow to the new channel.

15 years agoResync with head.
jkim [Wed, 3 Jun 2009 22:54:27 +0000 (22:54 +0000)]
Resync with head.

15 years agoRe-format the nfsv4.4 man page so that all sentences start on a
rmacklem [Wed, 3 Jun 2009 21:50:26 +0000 (21:50 +0000)]
Re-format the nfsv4.4 man page so that all sentences start on a
new line.

Approved by: kib (mentor)

15 years agoTrim unnecessary files from the import.
jkim [Wed, 3 Jun 2009 21:47:13 +0000 (21:47 +0000)]
Trim unnecessary files from the import.

15 years agoRemove unused VM includes.
jhb [Wed, 3 Jun 2009 20:25:13 +0000 (20:25 +0000)]
Remove unused VM includes.

15 years agoFix acpidump(8) disassmebly with option -d. iasl(8) creates disassembled
jkim [Wed, 3 Jun 2009 20:24:28 +0000 (20:24 +0000)]
Fix acpidump(8) disassmebly with option -d.  iasl(8) creates disassembled
output file from input file name as a template.  Honor TMPDIR environment
variable while I am here.

15 years agoAdd one further check with mac_policy_count to an mbuf copying case
rwatson [Wed, 3 Jun 2009 19:41:12 +0000 (19:41 +0000)]
Add one further check with mac_policy_count to an mbuf copying case
(limited to netatalk) to avoid MAC label lookup on both mbufs if no
policies are registered.

Obtained from: TrustedBSD Project

15 years agoAdjust the padding of struct pcpu to r193219.
marius [Wed, 3 Jun 2009 19:31:26 +0000 (19:31 +0000)]
Adjust the padding of struct pcpu to r193219.

Submitted by: Eygene Ryabinkin

15 years agoContinue work to optimize performance of "options MAC" when no MAC policy
rwatson [Wed, 3 Jun 2009 18:46:28 +0000 (18:46 +0000)]
Continue work to optimize performance of "options MAC" when no MAC policy
modules are loaded by avoiding mbuf label lookups when policies aren't
loaded, pushing further socket locking into MAC policy modules, and
avoiding locking MAC ifnet locks when no policies are loaded:

- Check mac_policies_count before looking for mbuf MAC label m_tags in MAC
  Framework entry points.  We will still pay label lookup costs if MAC
  policies are present but don't require labels (typically a single mbuf
  header field read, but perhaps further indirection if IPSEC or other
  m_tag consumers are in use).

- Further push socket locking for socket-related access control checks and
  events into MAC policies from the MAC Framework, so that sockets are
  only locked if a policy specifically requires a lock to protect a label.
  This resolves lock order issues during sonewconn() and also in local
  domain socket cross-connect where multiple socket locks could not be
  held at once for the purposes of propagatig MAC labels across multiple
  sockets.  Eliminate mac_policy_count check in some entry points where it
  no longer avoids locking.

- Add mac_policy_count checking in some entry points relating to network
  interfaces that otherwise lock a global MAC ifnet lock used to protect
  ifnet labels.

Obtained from: TrustedBSD Project

15 years ago- Remove unused sparc64-bitops.h file. Our ext2fs code doesn't use
stas [Wed, 3 Jun 2009 17:30:10 +0000 (17:30 +0000)]
- Remove unused sparc64-bitops.h file. Our ext2fs code doesn't use
  sparc64-specific bitops implemetations and relies on generic ones.
  Furthermore, bitops implementations present in sparc64-bitops.h
  are written in C similarly to generic bitops.

15 years agotreat IEEE80211_S_CSA as a "running state"; this fixes
sam [Wed, 3 Jun 2009 17:25:19 +0000 (17:25 +0000)]
treat IEEE80211_S_CSA as a "running state"; this fixes
ap mode 11h channel switch announcements

15 years agoTrim an obsolete comment.
jkoshy [Wed, 3 Jun 2009 17:19:12 +0000 (17:19 +0000)]
Trim an obsolete comment.

Noticed by: lifengkai <lifengkai at huawei dot com>

15 years agoMake GPT style partitiong endian-safe in U-Boot support library.
raj [Wed, 3 Jun 2009 16:28:29 +0000 (16:28 +0000)]
Make GPT style partitiong endian-safe in U-Boot support library.

Submitted by: Piotr Ziecik
Obtained from: Semihalf

15 years ago- Style(9) improvements.
stas [Wed, 3 Jun 2009 14:18:37 +0000 (14:18 +0000)]
- Style(9) improvements.
- Convert all K&R definitions to ANSI equialents.
- Retire bsd_malloc and bsd_free macros and
  use malloc/free directly.
- Drop some unused debugging calls.

This commit brings no functional changes.

15 years ago- Sync our copies of ext2fs Linux headers to current Linux versions.
stas [Wed, 3 Jun 2009 13:25:50 +0000 (13:25 +0000)]
- Sync our copies of ext2fs Linux headers to current Linux versions.
  Minimize differencies between our ext2fs headers and relevant Linux
  versions by using EXT2_SB macro to access the superblock fields. Most
  of the differencies in access to these fields are now hidden inside
  this macro.
- Rename the s_db_per_group field of ext2fs_sb_info to s_gdb_count
  to reflect the similar change in Linux headers. New name also seem
  to be more appropriate for this field.
- Use proper types for s_first_inode and s_inode_size in-core superblock
  fields. Now they reflec types used in the on-disk superblock version.
- Add support for older filesystem revisions that doesn't have proper
  s_first_ino and s_inode_size fields in the on-disk superblock. In these
  cases predefined values for these fields are used.
- Add simple sanity checks for s_first_inode and s_inode_size correctness.

Reviewed by: bde (previous version)
MFC after: 2 weeks

15 years agoAdd vm_lowmem event handler for dirhash. This will cause dirhashes to be
snb [Wed, 3 Jun 2009 09:44:22 +0000 (09:44 +0000)]
Add vm_lowmem event handler for dirhash. This will cause dirhashes to be
deleted when the system is low on memory. This ought to allow an increase to
vfs.ufs.dirhash_maxmem on machines that have lots of memory, without
degrading performance by having too much memory reserved for dirhash when
other things need it. The default value for dirhash_maxmem is being kept at
2MB for now, though.

This work was mostly done during the 2008 Google Summer of Code.

Approved by: dwmalone (mentor), re
MFC after: 3 months

15 years agoWhere if not in examples we should follow style(9)?
pjd [Wed, 3 Jun 2009 09:28:58 +0000 (09:28 +0000)]
Where if not in examples we should follow style(9)?

15 years agolchflags(2) takes int, not u_long like chflags(2) and fchflags(2).
pjd [Wed, 3 Jun 2009 09:24:58 +0000 (09:24 +0000)]
lchflags(2) takes int, not u_long like chflags(2) and fchflags(2).
Strange, isn't it?

Pointed out by: bde

15 years agoCorrect comment.
pjd [Wed, 3 Jun 2009 09:23:31 +0000 (09:23 +0000)]
Correct comment.

15 years agoBy default, label all network interfaces as biba/equal on attach. This
rwatson [Wed, 3 Jun 2009 08:49:44 +0000 (08:49 +0000)]
By default, label all network interfaces as biba/equal on attach.  This
makes it easier for first-time users to configure and work with biba as
remote acess is still allowed.  Effectively, this means that, by default,
only local security properties, not distributed ones, are enforced.

Obtained from: TrustedBSD Project

15 years agoUse ISO C99 style inline semantics in msun.
ed [Wed, 3 Jun 2009 08:16:34 +0000 (08:16 +0000)]
Use ISO C99 style inline semantics in msun.

Because we use ISO C99 nowadays, we can just get rid of enforcing
GNU89-style inlining.

15 years agocalls callout_drain(9) to un-schedule a scan timer to prevent a page
weongyo [Wed, 3 Jun 2009 04:10:22 +0000 (04:10 +0000)]
calls callout_drain(9) to un-schedule a scan timer to prevent a page
fault in softclock.

Submitted by: sam
Reviewed by: jhb, sam (original version), thompsa

15 years agoMerge ACPI utilities as well.
jkim [Tue, 2 Jun 2009 22:52:58 +0000 (22:52 +0000)]
Merge ACPI utilities as well.

15 years agoChase ACPICA API changes (for kernel and boot loader).
jkim [Tue, 2 Jun 2009 22:31:57 +0000 (22:31 +0000)]
Chase ACPICA API changes (for kernel and boot loader).

15 years agoMark MAC Framework sx and rm locks as NOWITNESS to suppress warnings that
rwatson [Tue, 2 Jun 2009 22:22:09 +0000 (22:22 +0000)]
Mark MAC Framework sx and rm locks as NOWITNESS to suppress warnings that
might arise from WITNESS not understanding its locking protocol, which
should be deadlock-free.  Currently these warnings generally don't occur,
but as object locking is pushed into policies for some object types, they
would otherwise occur more often.

Obtained from: TrustedBSD Project

15 years agoAdd support for the experimental nfs subsystem to the scripts in
rmacklem [Tue, 2 Jun 2009 22:15:47 +0000 (22:15 +0000)]
Add support for the experimental nfs subsystem to the scripts in
/etc/rc.d. They use the following new rc variables:
  nfsv4_server_enable - set to "YES" to run the experimental server
  nfsuserd_enable - set to "YES" to run nfsuserd for NFSv4 client and
    server
  nfsuserd_flags - command line flags for nfsuserd
  nfscbd_enable - set to "YES" to run the experimental nfs client's
    NFSv4 callback daemon
  nfscbd_flags - command line flags for nfscbd

Reviewed by: dougb
Approved by: kib (mentor)

15 years agoimprove raw xmit failure handling
sam [Tue, 2 Jun 2009 21:17:56 +0000 (21:17 +0000)]
improve raw xmit failure handling

15 years agocount frag tx failures as an ifnet error
sam [Tue, 2 Jun 2009 21:13:57 +0000 (21:13 +0000)]
count frag tx failures as an ifnet error

15 years agofix comment
sam [Tue, 2 Jun 2009 21:12:07 +0000 (21:12 +0000)]
fix comment

15 years agorestart tdma beacons after vap destroy
sam [Tue, 2 Jun 2009 21:11:26 +0000 (21:11 +0000)]
restart tdma beacons after vap destroy

15 years agoremove another vestige of the null if_softc on detach hack
sam [Tue, 2 Jun 2009 20:51:59 +0000 (20:51 +0000)]
remove another vestige of the null if_softc on detach hack

15 years agofix typo
sam [Tue, 2 Jun 2009 20:48:12 +0000 (20:48 +0000)]
fix typo

15 years agoRemove function redeclaration. It was upstreamed but lost somehow.
jkim [Tue, 2 Jun 2009 20:44:21 +0000 (20:44 +0000)]
Remove function redeclaration.  It was upstreamed but lost somehow.

15 years agofix setting of ni_txrate
sam [Tue, 2 Jun 2009 20:32:13 +0000 (20:32 +0000)]
fix setting of ni_txrate

Submitted by: "Paul B. Mahol" <onemda@gmail.com>

15 years agoCanonify include paths again.
jkim [Tue, 2 Jun 2009 20:02:58 +0000 (20:02 +0000)]
Canonify include paths again.

15 years agopartially fix mode setting; this no longer returns an error but still
sam [Tue, 2 Jun 2009 20:00:43 +0000 (20:00 +0000)]
partially fix mode setting; this no longer returns an error but still
needs to handle the case where the vap is up+running

Noticed by: "Paul B. Mahol" <onemda@gmail.com>

15 years agoFix include path fixup for contrib/dev/acpica/include/platform/*.h.
jkim [Tue, 2 Jun 2009 20:00:32 +0000 (20:00 +0000)]
Fix include path fixup for contrib/dev/acpica/include/platform/*.h.

15 years agoPlace the fifo and ref counting variables on the stack to prevent races.
thompsa [Tue, 2 Jun 2009 19:28:26 +0000 (19:28 +0000)]
Place the fifo and ref counting variables on the stack to prevent races.

Submitted by: Hans Petter Selasky

15 years agomove if_detach to the top of ieee80211_ifdetach to close various races
sam [Tue, 2 Jun 2009 18:55:27 +0000 (18:55 +0000)]
move if_detach to the top of ieee80211_ifdetach to close various races

Reviewed by: jhb

15 years agoMFV: ACPICA 20090521
jkim [Tue, 2 Jun 2009 18:53:21 +0000 (18:53 +0000)]
MFV: ACPICA 20090521

15 years agomove ifq_detach from if_detach to if_free; this permits callers to
sam [Tue, 2 Jun 2009 18:53:21 +0000 (18:53 +0000)]
move ifq_detach from if_detach to if_free; this permits callers to
reference if_snd in the period between detach+free which helps simplify
detach code

Reviewed by: jhb, rwatson

15 years agoRemove MAC kernel config files and add "options MAC" to GENERIC, with the
rwatson [Tue, 2 Jun 2009 18:31:08 +0000 (18:31 +0000)]
Remove MAC kernel config files and add "options MAC" to GENERIC, with the
goal of shipping 8.0 with MAC support in the default kernel.  No policies
will be compiled in or enabled by default, but it will now be possible to
load them at boot or runtime without a kernel recompile.

While the framework is not believed to impose measurable overhead when no
policies are loaded (a result of optimization over the past few months in
HEAD), we'll continue to benchmark and optimize as the release approaches.
Please keep an eye out for performance or functionality regressions that
could be a result of this change.

Approved by: re (kensmith)
Obtained from: TrustedBSD Project

15 years agoInitialize iov and iovlen before use.
pjd [Tue, 2 Jun 2009 18:30:09 +0000 (18:30 +0000)]
Initialize iov and iovlen before use.

Reported by: Lucius Windschuh <lwindschuh@googlemail.com>

15 years agoAdd internal 'mac_policy_count' counter to the MAC Framework, which is a
rwatson [Tue, 2 Jun 2009 18:26:17 +0000 (18:26 +0000)]
Add internal 'mac_policy_count' counter to the MAC Framework, which is a
count of the number of registered policies.

Rather than unconditionally locking sockets before passing them into MAC,
lock them in the MAC entry points only if mac_policy_count is non-zero.

This avoids locking overhead for a number of socket system calls when no
policies are registered, eliminating measurable overhead for the MAC
Framework for the socket subsystem when there are no active policies.

Possibly socket locks should be acquired by policies if they are required
for socket labels, which would further avoid locking overhead when there
are policies but they don't require labeling of sockets, or possibly
don't even implement socket controls.

Obtained from: TrustedBSD Project

15 years ago- Use volatile for signal variables.
lulf [Tue, 2 Jun 2009 17:57:24 +0000 (17:57 +0000)]
- Use volatile for signal variables.

Suggested by: Jaakko Heinonen <jh -at- saunalahti.fi>

15 years agoReorgansise the logic for tranversing the pipe list.
thompsa [Tue, 2 Jun 2009 17:31:59 +0000 (17:31 +0000)]
Reorgansise the logic for tranversing the pipe list.

Submitted by: Hans Petter Selasky

15 years agoFix compile after the removal of bsd_udev.
thompsa [Tue, 2 Jun 2009 17:31:16 +0000 (17:31 +0000)]
Fix compile after the removal of bsd_udev.

Submitted by: Hans Petter Selasky