]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r211419:
brucec [Sat, 11 Sep 2010 14:26:18 +0000 (14:26 +0000)]
MFC r211419:

Since top displays the uptime including seconds, there is no need to add 30
onto it, which may have been used for rounding purposes in other utilities.

PR: bin/147934
Submitted by: Janne Snabb <snabb at epipe.com>
Approved by: rrs (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@212470 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206909:
brucec [Sat, 11 Sep 2010 14:18:30 +0000 (14:18 +0000)]
MFC r206909:

It's not necessary to reset the chip every time an input overflow event
occurs. In addition, the delay when programming the short cable fix
should be 100us, not 100ms.

PR: kern/64556
Approved by: rrs (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@212468 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212214: sh: Get rid of some magic numbers.
jilles [Sat, 11 Sep 2010 12:51:01 +0000 (12:51 +0000)]
MFC r212214: sh: Get rid of some magic numbers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211940:
kib [Sat, 11 Sep 2010 06:38:34 +0000 (06:38 +0000)]
MFC r211940:
Test the poll(2) return value.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212454 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r211953
rmacklem [Sat, 11 Sep 2010 02:00:27 +0000 (02:00 +0000)]
MFC: r211953
Add acquisition of a reference count on nfsv4root_lock in the
nfsd_recalldelegation() function, since this function is called
by nfsd threads when they are handling NFSv2 or NFSv3 RPCs, where
no reference count would have been acquired.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212452 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r211951
rmacklem [Sat, 11 Sep 2010 01:08:16 +0000 (01:08 +0000)]
MFC: r211951
The timer routine in the experimental NFS server did not acquire
the correct mutex when checking nfsv4root_lock. Although this
could be fixed by adding mutex lock/unlock calls, zack.kirsch at
isilon.com suggested a better fix that uses a non-blocking
acquisition of a reference count on nfsv4root_lock. This fix
allows the weird NFSLOCKSTATE(); NFSUNLOCKSTATE(); synchronization
to be deleted. This patch applies this fix.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211194, r211229, r212058, r212063: memguard(9) rewrite
mdf [Fri, 10 Sep 2010 17:26:41 +0000 (17:26 +0000)]
MFC r211194, r211229, r212058, r212063: memguard(9) rewrite

r211194:

Rework memguard(9) to reserve significantly more KVA to detect
use-after-free over a longer time.  Also release the backing pages of
a guarded allocation at free(9) time to reduce the overhead of using
memguard(9).  Allow setting and varying the malloc type at run-time.
Add knobs to allow:

 - randomly guarding memory
 - adding un-backed KVA guard pages to detect underflow and overflow
 - a lower limit on the size of allocations that are guarded

r211229:

Fix compile.  It seemed better to have memguard.c include opt_vm.h in
case future compile-time knobs were added that it wants to use.
Also add include guards and forward declarations to vm/memguard.h.

r212058:

The realloc case for memguard(9) will copy too many bytes when
reallocating to a smaller-sized allocation.  Fix this issue.

r212063:

Have memguard(9) crash with an easier-to-debug message on double-free.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211861:
nwhitehorn [Fri, 10 Sep 2010 15:33:26 +0000 (15:33 +0000)]
MFC r211861:

pmap_mapdev() does not appear to actually need GIANT to be held here,
and asserting that is held breaks drm.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211941:
kib [Fri, 10 Sep 2010 12:55:36 +0000 (12:55 +0000)]
MFC r211941:
Recalcule the return value in pollout().

PR: kern/143029
Tested by: John Plevyak <jplevyak apache org>

git-svn-id: svn://svn.freebsd.org/base/stable/8@212415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC:
imp [Fri, 10 Sep 2010 03:52:05 +0000 (03:52 +0000)]
MFC:
    r212169: Allow / in the NANO_DEVICE
    r209225: Allow boot.config to have different values than just -h.
    r209210: Allow population of /cfg and /data.  Begin the move to
making all slice creation overrideable too, but there's a few
problems doing that for the duplicated partitions (s1 and s2), so
just comment that it needs work.
    r209209: Create a make.conf.  not needed for runtime, but some ports
want to spam it at compile or install time.
    r209207: make these convenience functions more convenient by accepting
all args, not just the first.  makes mechanical conversion of old
style more forgiving.
    r207436: Fix typo in usage message.  Add -n to the list of valid arguments.
    r206276: Fix comment about NANO_ARCH.  It can be set now.  Also add
a warning about how it confuses TARGET and TARGET_ARCH and the need
to separate the two out into independent variables.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r207979
brueffer [Thu, 9 Sep 2010 21:26:55 +0000 (21:26 +0000)]
MFC: r207979

Build the ixgbe(4) and mwlfw(4) modules by default.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212155:
bz [Thu, 9 Sep 2010 06:43:18 +0000 (06:43 +0000)]
MFC r212155:
  MFp4 CH=183052 183053 183258:

    In protosw we define pr_protocol as short, while on the wire
    it is an uint8_t.  That way we can have "internal" protocols
    like DIVERT, SEND or gaps for modules (PROTO_SPACER).
    Switch ipproto_{un,}register to accept a short protocol number(*)
    and do an upfront check for valid boundries. With this we
    also consistently report EPROTONOSUPPORT for out of bounds
    protocols, as we did for proto == 0.  This allows a caller
    to not error for this case, which is especially important
    if we want to automatically call these from domain handling.

    (*) the functions have been without any in-tree consumer
    since the initial introducation, so this is considered save.

    Implement ip6proto_{un,}register() similarly to their legacy IP
    counter parts to allow modules to hook up dynamically.

  Reviewed by: philip, will

git-svn-id: svn://svn.freebsd.org/base/stable/8@212351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211283:
zec [Wed, 8 Sep 2010 14:22:35 +0000 (14:22 +0000)]
MFC r211283:

  When moving an ethernet ifnet from one vnet to another, destroy the
  associated ng_ether netgraph node in the current vnet, and create a
  new one in the target vnet.

  Reviewed by:  julian

git-svn-id: svn://svn.freebsd.org/base/stable/8@212320 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208744:
zec [Wed, 8 Sep 2010 14:21:12 +0000 (14:21 +0000)]
MFC r208744:

  Virtualize the IPv4 multicast routing code.

  Submitted by: iprebeg
  Reviewed by:  bms, bz, Pavlin Radoslavov

git-svn-id: svn://svn.freebsd.org/base/stable/8@212319 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208743:
zec [Wed, 8 Sep 2010 14:19:33 +0000 (14:19 +0000)]
MFC r208743:

  Provide a macro for registering a virtualized sysctl handler for
  VNET opaque data.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212318 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212234:
kib [Wed, 8 Sep 2010 09:53:50 +0000 (09:53 +0000)]
MFC r212234:
Document "show cdev" command.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212316 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212233:
kib [Wed, 8 Sep 2010 09:51:03 +0000 (09:51 +0000)]
MFC r212233:
Document MAKEDEV_ETERNAL.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212315 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212087:
ed [Wed, 8 Sep 2010 08:03:08 +0000 (08:03 +0000)]
MFC r212087:

  Remove reference to device minor numbers in psm(4) man page.

  The number returned by stat(2) is generated automatically, so it is not
  possible to deduce whether the device is blocking or not.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212314 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r212047
davidxu [Wed, 8 Sep 2010 01:55:03 +0000 (01:55 +0000)]
MFC: r212047
  If a process is being debugged, skips job control caused by SIGSTOP/SIGCONT
  signals, because it is managed by debugger, however a normal signal sent to
  a interruptibly sleeping thread wakes up the thread so it will handle the
  signal when the process leaves the stopped state.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212311 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r211830
rmacklem [Wed, 8 Sep 2010 01:41:22 +0000 (01:41 +0000)]
MFC: r211830
Add mutex locking for the call to replay_prune() in
replay_setsize(), since replay_prune() expects the
rc_lock to be held when it is called.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212310 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r211789
rmacklem [Wed, 8 Sep 2010 01:18:09 +0000 (01:18 +0000)]
MFC: r211789
If the first iteration of the do loop in replay_prune()
succeeded and a subsequent interation failed to find an
entry to prune, it could loop infinitely, since the
"freed" variable wasn't reset to FALSE. This patch moves
setting freed FALSE to inside the loop to fix the problem.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r205662 + r212066 (except efi part):
delphij [Tue, 7 Sep 2010 18:14:59 +0000 (18:14 +0000)]
MFC r205662 + r212066 (except efi part):

Our boot loader is capable of booting both i386 and amd64 kernels so
call it "x86" instead of "i386".

git-svn-id: svn://svn.freebsd.org/base/stable/8@212301 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212209:
bz [Tue, 7 Sep 2010 13:10:46 +0000 (13:10 +0000)]
MFC r212209:

  In case of RADIX_MPATH do not leak the IN_IFADDR read lock on
  early return.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212291 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211748:
kib [Tue, 7 Sep 2010 12:06:41 +0000 (12:06 +0000)]
MFC r211748:
Move the __stack_chk_fail_local@FBSD_1.0 compat symbol definition into
the separate .o for libc_pic.a. This prevents rtld from making the
symbol global.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212290 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211743:
kib [Tue, 7 Sep 2010 12:04:07 +0000 (12:04 +0000)]
MFC r211743:
Remove unused source.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211742:
kib [Tue, 7 Sep 2010 12:02:34 +0000 (12:02 +0000)]
MFC r211742:
The __hidden definition is provided by sys/cdefs.h.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212288 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212152:
bz [Tue, 7 Sep 2010 11:46:09 +0000 (11:46 +0000)]
MFC r212152:

  MFp4 CH=183259:

    No reason to use if_free_type() as we don't change our type.
    Just if_free() is fine.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212287 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r196636:
weongyo [Mon, 6 Sep 2010 22:47:52 +0000 (22:47 +0000)]
MFC r196636:
  Connect bwi up to the build.  While there are some problems with this
  driver still, it generally works well for most people most of the
  time.  It is still too green for GENERIC, however.

  Submitted by: many (latest being kwm@)
Approved by: imp
Requested by: Warren Block <wblock at wonkity dot com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@212275 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209888:
weongyo [Mon, 6 Sep 2010 22:31:24 +0000 (22:31 +0000)]
MFC r209888:
  Fixes a bug for LP PHY that some frames have 2 padding bytes at the
  start so we should adjust the mbuf if the driver is running in PIO
  mode.  Now it should work well with WPA authentication and association
  for LP PHY devices.

  Tested by:    Warren Block <wblock at wonkity.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@212274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210393:
weongyo [Mon, 6 Sep 2010 22:28:46 +0000 (22:28 +0000)]
MFC r210393:
  Fixes a mistake to calculate CALC_COEFF2() value that tmp[3] is
  used even if it's unreachable.

  PR: kern/144505
  Submitted by: Henning Petersen <henning.petersen at t-online dot de>

git-svn-id: svn://svn.freebsd.org/base/stable/8@212273 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212172: acpi: update stale comments about order of cpu devices
avg [Mon, 6 Sep 2010 07:24:43 +0000 (07:24 +0000)]
MFC r212172: acpi: update stale comments about order of cpu devices
probing

git-svn-id: svn://svn.freebsd.org/base/stable/8@212250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210926:
kib [Sun, 5 Sep 2010 14:37:29 +0000 (14:37 +0000)]
MFC r210926:
Mark /dev/zero and /dev/null as eternal.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212232 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210925:
kib [Sun, 5 Sep 2010 14:35:26 +0000 (14:35 +0000)]
MFC r210925:
Enable shared lookups and externed shared ops for devfs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212231 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210924:
kib [Sun, 5 Sep 2010 14:31:58 +0000 (14:31 +0000)]
MFC r210924:
Add "show cdev" ddb command.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212230 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210923:
kib [Sun, 5 Sep 2010 14:27:55 +0000 (14:27 +0000)]
MFC r210923:
Add new make_dev_p(9) flag MAKEDEV_ETERNAL to inform devfs that created
cdev will never be destroyed. Propagate the flag to devfs vnodes as
VV_ETERNVALDEV. Use the flags to avoid acquiring devmtx and taking a
thread reference on such nodes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212229 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210921:
kib [Sun, 5 Sep 2010 14:20:34 +0000 (14:20 +0000)]
MFC r210921:
Enable shared locks for the devfs vnodes. Honor the locking mode
requested by lookup().

git-svn-id: svn://svn.freebsd.org/base/stable/8@212228 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210918:
kib [Sun, 5 Sep 2010 14:16:35 +0000 (14:16 +0000)]
MFC r210918:
Initialize VV_ISTTY vnode flag on the devfs vnode creation instead of
doing it on each open.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212227 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r196885 (by ed):
kib [Sun, 5 Sep 2010 14:02:34 +0000 (14:02 +0000)]
MFC r196885 (by ed):
Remove unneeded minor numbers from /dev/null and /dev/zero.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212226 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210331-r210333,r210335,r210336,r210338,r210340,r210341,r210559.
kaiw [Sat, 4 Sep 2010 13:13:00 +0000 (13:13 +0000)]
MFC r210331-r210333,r210335,r210336,r210338,r210340,r210341,r210559.

r210331:
  Add a new ELF type denoting GNU style hash tables.

r210332:
  Changes for supporting GNU Hash sections.

r210333:
  Note that the *_fsize() functions are only defined for ELF types that
  have a fixed size.

r210335:
  - Return zero for file sizes of ELF types that have a variable size.
  - Neaten a few comments.

r210336:
  Reduce verbosity.

r210338:
  Perform additional checks when translating between file and memory
  representations of ELF types.

  The ELF(3) API allows applications to request a conversion that is
  `in-place', i.e., with source and destinations data buffers being
  the same.  However, the file and memory sizes of ELF sections that
  have additional internal structure, such as those of type `Elf_Note',
  or `Elf_GNU_Hash_Header', can be determined only known after the
  type-specific headers that comprise the first few words in these
  sections are read and translated.

  Pass in the size of destination buffer to type translation routines
  in "libelf_convert.m4" and have these routines return an error code
  if the translated data would not fit inside the destination buffer.

r210340:
  - Document that the *fsize() functions return a size of 1 for Elf
    types that don't have a fixed size.
  - The *fsize() functions should return a size of 1, for variable length
    types.
  - Redefine symbol ELF_T_LAST to match the current end of the list.

r210341:
  Add support for translating sections of type ELF_T_GNUHASH.

r210559:
  Protect GNUHASH translation functions with #ifdef; unbreak cross
  toolchain build.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212208 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210351-r210353,r211192.
kaiw [Sat, 4 Sep 2010 13:00:22 +0000 (13:00 +0000)]
MFC r210351-r210353,r211192.

r210351:
  * Note that ar(1) archives may also be opened using `elf_memory(3)`.
  * Ignore the passed in value of the `fd` argument for ar(1) archives
    opened with elf_memory(3).

r210352:
  Add a cross-reference to `elf_rawfile(3)`.

r210353:
  * Remove a superfluous error description.
  * Document an additional error that may be returned: `ELF_E_ARCHIVE`.

r211192:
  Add translation support for section type SHT_SUNW_dof.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212206 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210344,r210345,r210348.
kaiw [Sat, 4 Sep 2010 12:52:44 +0000 (12:52 +0000)]
MFC r210344,r210345,r210348.

r210344:
  Avoid switching between "unsigned char" and "char" in the C code
  generated from "libelf_convert.m4".

r210345:
  * Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` in
    favour of `elf_getshdrnum()`, `elf_getphdrnum()` and `elf_getshdrstrndx()`
    respectively.
  * Add new manual pages for `elf_getshdrstrndx()`, `elf_getphdrnum()` and
    `elf_getshdrnum()`.
  * Add a deprecation warning for `elf_getshstrndx()`, `elf_getphnum()` and
    `elf_getshnum()`.

r210348:
  Move helper functions `_libelf_ar_get_{name,number,string}()` and
  `_libelf_ar_open()` to a new compilation unit "libelf_ar_util.c"
  to break the circular dependency between "elf_memory.o" and
  "libelf_ar.o".

git-svn-id: svn://svn.freebsd.org/base/stable/8@212204 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210329,r210330,r210347.
kaiw [Sat, 4 Sep 2010 12:40:06 +0000 (12:40 +0000)]
MFC r210329,r210330,r210347.

r210329:
  Use <unistd.h> to declare the prototype for ftruncate().

r210330:
  Allow an application that updates only the ELF Ehdr to work.

r210347:
  Fix a memory leak.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212202 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210325,r210326,r210328,r210349
kaiw [Sat, 4 Sep 2010 12:19:19 +0000 (12:19 +0000)]
MFC r210325,r210326,r210328,r210349

r210325:
  Bug fix: when updating headers using the gelf_update_*() functions,
  the appropriate `dirty' bit needs to be set for both the Elf32 and
  Elf64 case.

r210326:
  Improve compatibility with other implementations of the ELF(3) API:
  when an output file has no program headers, set the 'e_phentsize'
  field of the ELF executable header to zero.

r210328:
  Bug fix: permit the creation of zero-sized sections.

r210349:
  Remove a redundant word.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212200 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210324, r210438.
kaiw [Sat, 4 Sep 2010 12:06:02 +0000 (12:06 +0000)]
MFC r210324, r210438.

r210324:
  - Correctly handle sections of type SHT_NOBITS.  For these sections:
    - elf_getdata() and elf_rawdata() should return an "Elf_Data" structure
      that has its "d_buf" member set to NULL and "d_size" member set to
      the nominal 'size' of the section.
    - Update the manual page for these functions.
  - Fix a memory leak in an error handling path inside elf_getdata().
  - Use _libelf_allocate_data() in elf_newdata() for consistency.

r210438: (np)
  Catch up with r210324.  d_buf will be NULL for SHT_NOBITS sections, do not
  attempt to copy from it in that case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210321:
kaiw [Sat, 4 Sep 2010 11:50:17 +0000 (11:50 +0000)]
MFC r210321:
  Remove a superfluous comment.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212196 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211513: Call dev_rel() in error paths.
jh [Sat, 4 Sep 2010 06:36:12 +0000 (06:36 +0000)]
MFC r211513: Call dev_rel() in error paths.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212194 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211922:
mav [Sat, 4 Sep 2010 06:09:08 +0000 (06:09 +0000)]
MFC r211922:
Add Intel Cougar Point PCH SATA Controller DeviceIDs. Correct some existing
entries for Intel Ibex Peak (5 Series/3400 Series) PCH SATA controllers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211920:
mav [Sat, 4 Sep 2010 06:05:57 +0000 (06:05 +0000)]
MFC r211920:
Add Intel Cougar Point PCH SATA Controller DeviceIDs. Correct some existing
entries for Intel Ibex Peak (5 Series/3400 Series) PCH SATA controllers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212192 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209652: sh: Remove comment that the comma operator is missing
jilles [Fri, 3 Sep 2010 21:59:12 +0000 (21:59 +0000)]
MFC r209652: sh: Remove comment that the comma operator is missing
in arithmetic expansion.

The comma operator is not listed in POSIX.1-2008 XCU 1.1.2.1 Arithmetic
Precision and Operations (referenced by XCU 2.6.4 Arithmetic Expansion) and
is therefore not required.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212189 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208476,208629,210738,211080,211341,211467: New tests
jilles [Fri, 3 Sep 2010 21:51:38 +0000 (21:51 +0000)]
MFC r208476,208629,210738,211080,211341,211467: New tests
that also work with stable/8 sh.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212188 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 212073:
jamie [Fri, 3 Sep 2010 15:34:28 +0000 (15:34 +0000)]
MFC 212073:

  Don't over-allocate array values in jailparam_export.

MFC 212074:

  Whitespace and comment fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212179 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212072:
jamie [Fri, 3 Sep 2010 15:33:15 +0000 (15:33 +0000)]
MFC r212072:

  Make it clear in the example that jailparam_export's return value
  should be freed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211962: gsched(8): fix example usage, mdoc nits
uqs [Fri, 3 Sep 2010 11:58:50 +0000 (11:58 +0000)]
MFC r211962: gsched(8): fix example usage, mdoc nits

- ad0 was referred to as da0
- wrong parameter -s instead of -a in example
- use double quotes consistently

git-svn-id: svn://svn.freebsd.org/base/stable/8@212175 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209256, r209549, r209816, r209844:
jh [Fri, 3 Sep 2010 06:30:11 +0000 (06:30 +0000)]
MFC r209256, r209549, r209816, r209844:

- Fix compilation of the subr_unit.c user space test program.
- Use %zu for size_t in a few format strings.
- Correct a comment typo.
- Assert that low and high are >= 0 in new_unrhdr().

git-svn-id: svn://svn.freebsd.org/base/stable/8@212171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoAdd nameday for Monique
edwin [Thu, 2 Sep 2010 21:52:43 +0000 (21:52 +0000)]
Add nameday for Monique

PR: conf/150049
Submitted by: Thierry Thomas <thierry@pompo.net>

git-svn-id: svn://svn.freebsd.org/base/stable/8@212164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211904:
bz [Thu, 2 Sep 2010 16:09:09 +0000 (16:09 +0000)]
MFC r211904:

  MFp4 CH=182972:

  Add explicit linkstate UP/DOWN for the epair.  This is needed by carp(4)
  and other things to work.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r199972:
emaste [Thu, 2 Sep 2010 13:34:54 +0000 (13:34 +0000)]
MFC r199972:

  Use switch out (SWO) instead of switch in (SWI) debug log mask in
  csw_out.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212147 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211633:
ed [Thu, 2 Sep 2010 07:49:45 +0000 (07:49 +0000)]
MFC r211633:

  Add missing mlink for insmntque1().

git-svn-id: svn://svn.freebsd.org/base/stable/8@212141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoWe don't have etc/rc.d/ip6fw anymore.
ume [Thu, 2 Sep 2010 06:49:27 +0000 (06:49 +0000)]
We don't have etc/rc.d/ip6fw anymore.
Since HEAD doesn't have etc/rc.d/network_ipv6,
this commit is directly into RELENG_8.

Spotted by: takachan__at__running-dog.net

git-svn-id: svn://svn.freebsd.org/base/stable/8@212140 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209970,209971,211990: add -q flag to usage() and
maxim [Thu, 2 Sep 2010 06:07:03 +0000 (06:07 +0000)]
MFC r209970,209971,211990: add -q flag to usage() and
man page synopsys.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212139 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211684 & r211818; return ENOENT if we fall off the end of the directory.
brian [Thu, 2 Sep 2010 04:56:01 +0000 (04:56 +0000)]
MFC r211684 & r211818; return ENOENT if we fall off the end of the directory.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212137 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r202289:
emaste [Wed, 1 Sep 2010 20:25:36 +0000 (20:25 +0000)]
MFC r202289:

  Reject invalid CIDR widths rather than silently stopping at the first
  non-digit character.

  Due to an issue with rc(8) in a test configuration, ifconfig was being
  invoked with the address used again as the width - for example,

    ifconfig vlan0 10.0.0.1/10.0.0.1

  Prior to this change, that address/width would be interpreted as
  10.0.0.1/10.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210736: sh: Do not enter consecutive duplicates into the history.
jilles [Wed, 1 Sep 2010 19:49:24 +0000 (19:49 +0000)]
MFC r210736: sh: Do not enter consecutive duplicates into the history.

This simply sets a flag in libedit. It has a shortcoming in that it does not
apply to multi-line commands.

Note that a configuration option for this is not going to happen, but always
having this seems better than not having it. NetBSD has done the same.

PR: bin/54683
Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@212111 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r202988, r203022
emaste [Wed, 1 Sep 2010 19:36:06 +0000 (19:36 +0000)]
MFC r202988, r203022

  Remove vestigial NetBSD compatibility shim.

  Convert to 2-clause license, from NetBSD rc.subr r1.70.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212110 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211800:
netchild [Wed, 1 Sep 2010 11:11:20 +0000 (11:11 +0000)]
MFC r211800:
  - Change the threshold from 'running next scrub the <value+1>th day after the
    last one' to 'running next scrub the <value>th day after the last one'.
  - Improve wording.

  Requested by: jhell <jhell@DataIX.net>

git-svn-id: svn://svn.freebsd.org/base/stable/8@212091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211966:
kib [Wed, 1 Sep 2010 06:51:42 +0000 (06:51 +0000)]
MFC r211966:
Use NULL instead of 0 for pointer in example.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212082 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211801: fix typo.
maxim [Wed, 1 Sep 2010 05:39:56 +0000 (05:39 +0000)]
MFC r211801: fix typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212080 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211435, r211530: Make `ping6 -I' work with
ume [Tue, 31 Aug 2010 15:52:12 +0000 (15:52 +0000)]
MFC r211435, r211530: Make `ping6 -I' work with
net.inet6.ip6.use_defaultzone=1.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212056 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211650,211667:
yongari [Tue, 31 Aug 2010 00:19:03 +0000 (00:19 +0000)]
MFC r211650,211667:
r211650:
  Document tunable dev.rl.%unit.prefer_iomap

r211667:
  Better wording and fix wrong explanation.

  Submitted by: Ben Kaduk ( minimarmot <> gmail dot com )

git-svn-id: svn://svn.freebsd.org/base/stable/8@212041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211648:
yongari [Tue, 31 Aug 2010 00:15:20 +0000 (00:15 +0000)]
MFC r211648:
  It seems some newer RTL8139 controllers provides only memory space
  register mapping. I'm not sure whether it comes from the fact that
  controllers live behind certain PCI brdge(PLX PCI 6152 33BC) and
  the bridge has some issues in handling I/O space register mapping.
  Unfortunately it's not possible to narrow down to an exact
  controller that shows this issue because RealTek used the same PCI
  device/revision id again. In theory, it's possible to check parent
  PCI bridge device and change rl(4) to use memory space register
  mapping if the parent PCI bridge is PLX PCI 6152. But I didn't try
  to do that and we wouldn't get much benefit with added complexity.

  Blindly switching to use memory space register mapping for rl(4)
  may make most old controllers not to work. At least, I don't want
  to take potential risk from such change. So use I/O space register
  mapping by default but give users chance to override it via a
  tunable. The tunable to use memory space register mapping would be
  given by adding the following line to /boot/loader.conf file.

  dev.rl.%d.prefer_iomap="0"

  This change makes P811B quad-port work with this tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211106:
yongari [Mon, 30 Aug 2010 21:18:27 +0000 (21:18 +0000)]
MFC r211106:
  Document newly added controller AR8151 and AR8152.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212023 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211105:
yongari [Mon, 30 Aug 2010 21:15:40 +0000 (21:15 +0000)]
MFC r211105:
  Add support for Atheros AR8151/AR8152 PCIe gigabit/fast ethernet
  controller. These controllers are known as L1D(AR8151) and
  L2CB/B2(AR8152). This change adds supports for the following
  controllers.
   o AR8151 v1.0(L1D) gigabit ethernet controller
   o AR8151 v2.0(L1D) gigabit ethernet controller
   o AR8152 v1.1(L2CB) fast ethernet controller
   o AR8152 v2.0(L2CB2) fast ethernet controller
  These controllers have the same feature of AR8131/AR8132 and
  support improved power saving control. The user visible change at
  this moment is reduced jumbo frame size from 9KB to 6KB. Many
  thanks to Atheros for continuing to support FreeBSD.

  HW donated by: Atheros Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212021 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211103:
yongari [Mon, 30 Aug 2010 21:11:45 +0000 (21:11 +0000)]
MFC r211103:
  Add F1 PHY found on Atheros AR8151 v2.0 PCIe gigabit ethernet
  controller.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212019 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211047-211048,211051-211053,211285:
yongari [Mon, 30 Aug 2010 21:07:26 +0000 (21:07 +0000)]
MFC r211047-211048,211051-211053,211285:
r211047:
  Controller does not seem to support more than 1024 bytes DMA burst.
  Limit DMA burst size to be less than or equal to 1024 bytes.

r211048:
  Do not touch CMB TX threshold register when CMB is not used.
  Note, alc(4) does not use CMB at all due to silicon bug.

r211051:
  Always disable ASPM L0s and enable L1 before entering into WOL
  suspend state.  Also disable master clock after PHY power down,
  this is supposed to save more power. The master clock should be
  enabled if WOL is active.

r211052:
  Remove unnecessary assignment.

r211053:
  Cache PCIY_PMG and PCIY_EXPRESS capability pointer to softc and use
  it instead of calling pci_find_extcap().

r211285:
  Make sure to disable RX MAC in alc_stop_mac(). Previously there
  was a logic error which it always enabled RX MAC.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212017 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211046:
yongari [Mon, 30 Aug 2010 20:59:13 +0000 (20:59 +0000)]
MFC r211046:
  Marvell model number 0x06 is 88E1101 PHY.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212015 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210905:
yongari [Mon, 30 Aug 2010 20:56:12 +0000 (20:56 +0000)]
MFC r210905:
  Reflect default Tx interrupt moderation timer value change(50ms -> 1ms).

git-svn-id: svn://svn.freebsd.org/base/stable/8@212013 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210904:
yongari [Mon, 30 Aug 2010 20:49:51 +0000 (20:49 +0000)]
MFC r210904:
  Reduce Tx interrupt moderation timer from 50ms to 1ms. The default
  value resulted in poor performance for UDP packets. With this
  change, UDP bulk transfer performance is more than 940Mbps.

  While I'm here fix a wrong register definition.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212011 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210665:
delphij [Mon, 30 Aug 2010 18:23:48 +0000 (18:23 +0000)]
MFC r210665:

In rdmsr_safe, use zero extend (by doing a 32-bit movl over
eax to itself) instead of a sign extend.

Discussed with: stas

git-svn-id: svn://svn.freebsd.org/base/stable/8@212005 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r211823
jkim [Mon, 30 Aug 2010 17:34:59 +0000 (17:34 +0000)]
MFC: r211823

Check opcode for short jump as well.  Some option ROMs do short jumps
(e.g., some NVIDIA video cards) and we were not able to do POST while
resuming because we only honored long jump.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212003 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211342:
jh [Mon, 30 Aug 2010 14:44:22 +0000 (14:44 +0000)]
MFC r211342:

- Check that strtoul(3) succeeds to convert the entire string in a few
  places.
- In getasciilabel(), set the disk type only when a valid type is given.

PR: bin/86765

git-svn-id: svn://svn.freebsd.org/base/stable/8@212000 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208752, r209590:
attilio [Mon, 30 Aug 2010 10:30:35 +0000 (10:30 +0000)]
MFC r208752, r209590:
Protect periph drivers list and rearrange things to minimize the chance of
stepping oneself during probing.
Don't blindly decrement a periph probe count.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@211993 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210181: fix typo.
maxim [Mon, 30 Aug 2010 07:11:13 +0000 (07:11 +0000)]
MFC r210181: fix typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211989 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210000: correct path to include file.
maxim [Mon, 30 Aug 2010 07:09:40 +0000 (07:09 +0000)]
MFC r210000: correct path to include file.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211988 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209972: restore missed flag in the synopsis.
maxim [Mon, 30 Aug 2010 07:06:27 +0000 (07:06 +0000)]
MFC r209972: restore missed flag in the synopsis.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211987 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209926: fix typo.
maxim [Mon, 30 Aug 2010 07:04:19 +0000 (07:04 +0000)]
MFC r209926: fix typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRecord merge info for r211960.
davidxu [Sun, 29 Aug 2010 08:19:07 +0000 (08:19 +0000)]
Record merge info for r211960.
-This line, and those below, will be ignored--
> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

_M   libthr

git-svn-id: svn://svn.freebsd.org/base/stable/8@211961 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211833: Decrease rdlock count only when thread unlocked
davidxu [Sun, 29 Aug 2010 08:15:57 +0000 (08:15 +0000)]
MFC r211833: Decrease rdlock count only when thread unlocked
a reader lock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211335:
kib [Sun, 29 Aug 2010 08:10:34 +0000 (08:10 +0000)]
MFC r211335:
Add convenience defines for hidden and default/exported attributes.

MFC r211741:
Use preferred spelling for the __attribute__.

MFC r211868:
Use private namespace for visibility keyword.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211959 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211340: Correct the return code from _dns_gethostby*()
ume [Sun, 29 Aug 2010 03:53:17 +0000 (03:53 +0000)]
MFC r211340: Correct the return code from _dns_gethostby*()
to correspond with h_errno.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRecord mergeinfo for r211276.
ume [Sat, 28 Aug 2010 17:52:53 +0000 (17:52 +0000)]
Record mergeinfo for r211276.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211942 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211276:
ume [Sat, 28 Aug 2010 17:06:22 +0000 (17:06 +0000)]
MFC r211276:
- When there is no room for returning the result, nss backend
  have to return ERANGE and terminate with NS_RETURN.
- When gethostbyname_r(3) and the friends end with an error,
  set errno to the value nss backend returns, and return errno
  value.

PR: kern/131623

git-svn-id: svn://svn.freebsd.org/base/stable/8@211938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211295,211314,211546:
bschmidt [Sat, 28 Aug 2010 07:21:15 +0000 (07:21 +0000)]
MFC r211295,211314,211546:
Introduce IEEE80211_C_RATECTL, drivers which use the ratectl framework
should set this capability. Initialize ni_txrate after txparams have
been setup. Some drivers calculate various things prior to association
based on ni_txrate and rely on it being nonzero.

PR: kern/149185

git-svn-id: svn://svn.freebsd.org/base/stable/8@211921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210624 and r210833:
delphij [Sat, 28 Aug 2010 00:48:40 +0000 (00:48 +0000)]
MFC r210624 and r210833:

Improve cputemp(4) driver wrt newer Intel processors, especially
Xeon 5500/5600 series:

 - Utilize IA32_TEMPERATURE_TARGET, a.k.a. Tj(target) in place
   of Tj(max) when a sane value is available, as documented
   in Intel whitepaper "CPU Monitoring With DTS/PECI"; (By sane
   value we mean 70C - 100C for now);
 - Print the probe results when booting verbose;
 - Replace cpu_mask with cpu_stepping;
 - Use CPUID_* macros instead of rolling our own.

Catch known CPUs before using IA32_TEMPERATURE_TARGET.
This way we would have an opportunity to hide the
Tj(target) value doesn't seem right stuff if we know
it's not working there.

Add temperature value for Core2 Duo Extreme Mobile that
I have access to.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211914 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC of -r210382 to note that foreground fsck should be run after
mckusick [Sat, 28 Aug 2010 00:30:57 +0000 (00:30 +0000)]
MFC of -r210382 to note that foreground fsck should be run after
a filesystem related panic. Also -r210933 by joel to fix typos
and spelling mistakes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211912 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC of -r210382 to note that foreground fsck should be run after
mckusick [Sat, 28 Aug 2010 00:27:47 +0000 (00:27 +0000)]
MFC of -r210382 to note that foreground fsck should be run after
a filesystem related panic. Also -r210933 and -r211397 by joel
to fix typos and spelling mistakes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211451:
bz [Fri, 27 Aug 2010 21:52:05 +0000 (21:52 +0000)]
MFC r211451:

  When calculating the expected memory size for userspace, also take the
  number of syncache entries into account for the surplus we add to account
  for a possible increase of records in the re-entry window.

  Discussed with: jhb, silby

git-svn-id: svn://svn.freebsd.org/base/stable/8@211901 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 210774,210935:
jhb [Fri, 27 Aug 2010 18:55:24 +0000 (18:55 +0000)]
MFC 210774,210935:
- Tweak the logic to disable CLFLUSH in virtual environments to work around
  problems with flushing the local APIC register range so that it checks
  vm_guest directly.
- Add Xen to the list of virtual vendors.  In the non PV (HVM) case this
  fixes the virtualization detection successfully disabling the CLFLUSH
  instruction.

git-svn-id: svn://svn.freebsd.org/base/stable/8@211891 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 211433:
jhb [Fri, 27 Aug 2010 18:50:12 +0000 (18:50 +0000)]
MFC 211433:
Ensure a minimum "slop" of 10 extra pcb structures when providing a
memory size estimate to userland for pcb list sysctls.  The previous
behavior of a "slop" of n/8 does not work well for small values of n
(e.g. no slop at all if you have less than 8 open UDP connections).

git-svn-id: svn://svn.freebsd.org/base/stable/8@211889 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206622,207939,208593,208732,209031: mdoc cleanup
uqs [Fri, 27 Aug 2010 10:47:17 +0000 (10:47 +0000)]
MFC r206622,207939,208593,208732,209031: mdoc cleanup

- order prologue by Dd/Dt/Os
- fix prologue
- remove empty lines and other garbage
- uppercase document title

git-svn-id: svn://svn.freebsd.org/base/stable/8@211872 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211464:
andre [Fri, 27 Aug 2010 10:15:45 +0000 (10:15 +0000)]
MFC r211464:

  If a TCP connection has been idle for one retransmit timeout or more
  it must reset its congestion window back to the initial window.

  RFC3390 has increased the initial window from 1 segment to up to
  4 segments.

  The initial window increase of RFC3390 wasn't reflected into the
  restart window which remained at its original defaults of 4 segments
  for local and 1 segment for all other connections.  Both values are
  controllable through sysctl net.inet.tcp.local_slowstart_flightsize
  and net.inet.tcp.slowstart_flightsize.

  The increase helps TCP's slow start algorithm to open up the congestion
  window much faster.

  Reviewed by: lstewart
  MFC after: 1 week

git-svn-id: svn://svn.freebsd.org/base/stable/8@211870 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f