]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r238071:
dim [Fri, 6 Jul 2012 17:42:34 +0000 (17:42 +0000)]
MFC r238071:

Fix clang warning, introduced in the recent dtrace import.

Approved by: re (kib)

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

11 years agoMFC r237581:
bjk [Fri, 6 Jul 2012 03:56:45 +0000 (03:56 +0000)]
MFC r237581:
  Explicitly mention that setting the change and expiry times to zero is
  equivalent to leaving the time unset. [1]

  Wordsmith in the compat support section.

  Use a full path to nologin(8) in the context of setting it as a user's shell,
  keeping a separate cross-reference.

PR: docs/169354 [1]
Approved by: re (hrs), hrs (mentor)

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

11 years agoMFC r237777
ache [Fri, 6 Jul 2012 01:32:53 +0000 (01:32 +0000)]
MFC r237777

Call set_terminal_mode() after video mode change, not before, because
video mode change always reset terminal mode to xterm.
It allows things like 'vidcontrol -T cons25 80x30' works as supposed,
and allows 'allscreens_flags="-T cons25 80x30"' in /etc/rc.conf too.

Approved by:    re (hrs)

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

11 years agoMFC r237636:
trasz [Thu, 5 Jul 2012 16:02:14 +0000 (16:02 +0000)]
MFC r237636:

Add manual page for bxe(4).

Approved by: re (kib)

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

11 years agoMFC r237661:
kib [Thu, 5 Jul 2012 15:41:31 +0000 (15:41 +0000)]
MFC r237661:
Add a test for number of CPUs configured/online.

Approved by: re (kensmith)

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

11 years agoMFC r238022:
mav [Thu, 5 Jul 2012 15:39:30 +0000 (15:39 +0000)]
MFC r238022:
Remove 14 not very useful characters " HDA CODEC PCM" from HDA pcm
device names to shorten them. PulseAudio reported to have problems with
names longer then 63 chars and at least in XMMS long names are inconvinient.

Approved by: re (kib)

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

11 years agoMFC r237660:
kib [Thu, 5 Jul 2012 15:38:32 +0000 (15:38 +0000)]
MFC r237660:
Optimize the handling of SC_NPROCESSORS_CONF, by using auxv AT_NCPU
value if present.

Approved by: re (kensmith)

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

11 years agoMFC r238015:
mav [Thu, 5 Jul 2012 15:35:59 +0000 (15:35 +0000)]
MFC r238015:
Add IDs for some USB controllers I have around. Just a cosmetics.

Approved by: re (kib)

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

11 years agoMFC r237659:
kib [Thu, 5 Jul 2012 15:34:55 +0000 (15:34 +0000)]
MFC r237659:
Ensure that for the object which is a dependency for some filtee,
relocations are performed before the object's initializer is called.

Approved by: re (kensmith)

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

11 years agoMFC r238011:
mav [Thu, 5 Jul 2012 15:32:31 +0000 (15:32 +0000)]
MFC r238011:
Restore GPIO config quirks handling, lost during last big refactoring.
This fixes sound from speakers on some laptops, including MacBook Pro.

Approved by: re (kib)

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

11 years agoMFC r237572:
trasz [Thu, 5 Jul 2012 13:45:23 +0000 (13:45 +0000)]
MFC r237572:

Add missing MLINKS for whatever -> if_whatever.

Approved by: re (kib)

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

11 years agoMFC r237901:
delphij [Wed, 4 Jul 2012 00:54:16 +0000 (00:54 +0000)]
MFC r237901:

tws(4) is interfaced with CAM so move it to the same section.

Reported by: joel
Approved by: re (kib)

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

11 years agoDo not enable IFCAP_TSO6 in cxgb(4) and cxgbe(4) in stable/9. The
np [Tue, 3 Jul 2012 22:17:36 +0000 (22:17 +0000)]
Do not enable IFCAP_TSO6 in cxgb(4) and cxgbe(4) in stable/9.  The
kernel code in 9 isn't quite ready for TSO6 yet.

This is a direct commit to stable/9.  IFCAP_TSO6 works properly in head
and there is no need to disable it over there.

Approved by: re (kib)

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

11 years agoMFC r238008:
wblock [Tue, 3 Jul 2012 16:49:38 +0000 (16:49 +0000)]
MFC r238008:

Add reference to portsnap(8).

Submitted by: Tim Kientzle
Approved by: re

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

11 years agoMFC 237878:
ken [Tue, 3 Jul 2012 15:37:36 +0000 (15:37 +0000)]
MFC 237878:

  r237878 | ken | 2012-06-30 23:32:26 -0600 (Sat, 30 Jun 2012) | 6 lines

  Now that the mps(4) driver is endian-safe, add it to the powerpc 32-bit
  GENERIC config file.

Requested by: nwhitehorn
Approved by: re (kensmith)

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

11 years agoMFC r237848:
kib [Tue, 3 Jul 2012 08:40:20 +0000 (08:40 +0000)]
MFC r237848:
Remove stray blank line.

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

11 years agoMFC 237847:
kib [Tue, 3 Jul 2012 08:23:22 +0000 (08:23 +0000)]
MFC 237847:
Do not test ki_stat as mask.

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

11 years agoMFC r237844, r237845, r237846:
kib [Tue, 3 Jul 2012 08:21:56 +0000 (08:21 +0000)]
MFC r237844, r237845, r237846:
Minor tweaks.

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

11 years agoMFC r238054:
np [Tue, 3 Jul 2012 07:03:14 +0000 (07:03 +0000)]
MFC r238054:
Fix inverted test that resulted in incorrect multicast hw programming.

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

11 years agoMFC r237852
thompsa [Tue, 3 Jul 2012 01:45:28 +0000 (01:45 +0000)]
MFC r237852

 Add the same check as vlan(4) where we ignore the ifnet departure event if the
 interface is just being renamed.

PR: kern/169557

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

11 years agoMFC r238038:
dougb [Mon, 2 Jul 2012 22:18:29 +0000 (22:18 +0000)]
MFC r238038:

Unfortunately the change in r237958 resulted in s/install/instclean/ due to
the aggressive pattern matching of the :C modifier. I tested build and
install in 2 phases, however with different solutions, resulting in the
breakage. Mea culpa.

The solution is to break out the all: target. This causes a few lines of
code duplication, but now the all: target works as it should, and the
other targets continue to work as they did before.

While I'm here, add a ===> header line to the start of each port build
to make it easier to find/more clear in the logs.

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

11 years agoMFC r238028:
np [Mon, 2 Jul 2012 22:04:09 +0000 (22:04 +0000)]
MFC r238028:
Instruct the firmware not to provision resources for TCP offload if the
kernel is being built without TCP_OFFLOAD.  But never override
toecaps_allowed if it has been set manually.

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

11 years agoMFC r237245, r237250, r237251, r237273, r237330
sbruno [Mon, 2 Jul 2012 21:59:10 +0000 (21:59 +0000)]
MFC r237245, r237250, r237251, r237273, r237330

Document support for Intel Enhanced Speedstep Tech interface
of cpufreq(4) via a new man page est(4)

Document the two exposed tuneables of est(4).

Numerous cleanups and mdoc updates from reviewers. Thanks to mav, joel,
wblock, hrs, gjb

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

11 years agoMFC: r237547
marius [Mon, 2 Jul 2012 19:56:31 +0000 (19:56 +0000)]
MFC: r237547

Fix size of the bcopy when extracting ethernet address

Obtained from: DragonFly

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

11 years agoMFC: r237546
marius [Mon, 2 Jul 2012 19:19:07 +0000 (19:19 +0000)]
MFC: r237546

Correct sizeof usage

Obtained from: DragonFly

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

11 years agoMFC: r237842
marius [Mon, 2 Jul 2012 19:13:38 +0000 (19:13 +0000)]
MFC: r237842

Switch back to the 4BSD scheduler for now. There is some more or less
recent regression with ULE, causing processes to get stuck in getblk
as well as interrupt handler execution delays to rise above the command
timeout of mpt(4).

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

11 years agoMFC r237085
alc [Mon, 2 Jul 2012 17:37:40 +0000 (17:37 +0000)]
MFC r237085
  Correctly identify the function in a KASSERT().

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

11 years agoMFC r236534
alc [Mon, 2 Jul 2012 17:22:38 +0000 (17:22 +0000)]
MFC r236534
  Various small changes to PV entry management.

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

11 years agoMFC: r237657, r237658, r237666
jkim [Mon, 2 Jul 2012 16:00:38 +0000 (16:00 +0000)]
MFC: r237657, r237658, r237666

Merge OpenSSL 0.9.8x and regen manual pages.

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

11 years agoMerge r237736 from HEAD:
bms [Mon, 2 Jul 2012 11:46:47 +0000 (11:46 +0000)]
Merge r237736 from HEAD:
  Kick the current-state report timer when a V1 group report would
  be triggered.

Submitted by: rpaulo@

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

11 years agoMFC: r236623: RAID is an acronym
obrien [Mon, 2 Jul 2012 10:16:14 +0000 (10:16 +0000)]
MFC: r236623: RAID is an acronym

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

11 years ago* Avoid race conditions with 'make -j<N>'.
obrien [Mon, 2 Jul 2012 10:14:12 +0000 (10:14 +0000)]
* Avoid race conditions with 'make -j<N>'.
  (partially MFC r236337 (in spirit))

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

11 years agoMerge r237735 from HEAD:
bms [Mon, 2 Jul 2012 10:07:32 +0000 (10:07 +0000)]
Merge r237735 from HEAD:
  Fix a typo in MLD query exponent processing.

Submitted by: rpaulo@

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

11 years agoRevert r223540 - it broke the simple 'make -C kerberos5' build.
obrien [Mon, 2 Jul 2012 10:06:13 +0000 (10:06 +0000)]
Revert r223540 - it broke the simple 'make -C kerberos5' build.

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

11 years agoMerge r237734 from HEAD:
bms [Mon, 2 Jul 2012 10:06:00 +0000 (10:06 +0000)]
Merge r237734 from HEAD:
  In MLDv2 general query processing, do not enforce the strict check
  on query origins.

Submitted by: Gu Yong

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

11 years agoMFC: r235939: consitently use "__LP64__"
obrien [Mon, 2 Jul 2012 10:00:28 +0000 (10:00 +0000)]
MFC: r235939: consitently use "__LP64__"

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

11 years agoMFC: r235879: style.Makefile(5)
obrien [Mon, 2 Jul 2012 09:47:38 +0000 (09:47 +0000)]
MFC: r235879: style.Makefile(5)

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

11 years agoMFC: r228114 r228116 r234690: install a readline/tilde.h
obrien [Mon, 2 Jul 2012 09:35:28 +0000 (09:35 +0000)]
MFC: r228114 r228116 r234690: install a readline/tilde.h

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

11 years agoAllow building on FreeBSD 7.
obrien [Mon, 2 Jul 2012 09:25:08 +0000 (09:25 +0000)]
Allow building on FreeBSD 7.

Note that "HAVE_GETLINE" should be #undef'ed in config.h as were not using
the libc interface -- however that leads to redundant redeclaration compiler
warnings between the internal file.h and <stdio.h>.

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

11 years agoMFC: r234449: update file(1) to version 5.11.
obrien [Mon, 2 Jul 2012 08:48:58 +0000 (08:48 +0000)]
MFC: r234449: update file(1) to version 5.11.

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

11 years agoMFC: r232274: Document fetch(1)'s 'URL' argument.
obrien [Mon, 2 Jul 2012 08:28:16 +0000 (08:28 +0000)]
MFC: r232274: Document fetch(1)'s 'URL' argument.

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

11 years agoMFC: r228475 & r228487: Disallow various debug.kdb sysctl's when securelevel
obrien [Mon, 2 Jul 2012 08:21:15 +0000 (08:21 +0000)]
MFC: r228475 & r228487: Disallow various debug.kdb sysctl's when securelevel
is raised.

PR: 161350

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

11 years agoMFC r237748: dtrace instruction decoder: add 0x0f 0x1f NOP opcode support
avg [Mon, 2 Jul 2012 08:08:29 +0000 (08:08 +0000)]
MFC r237748: dtrace instruction decoder: add 0x0f 0x1f NOP opcode support

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

11 years agoMFC: r228199: Split sentences at period boundaries.
obrien [Mon, 2 Jul 2012 07:39:33 +0000 (07:39 +0000)]
MFC: r228199: Split sentences at period boundaries.

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

11 years agoMFC: r228193: tweak the r137233 fix to r136283 -- Code was making two send()
obrien [Mon, 2 Jul 2012 07:37:06 +0000 (07:37 +0000)]
MFC: r228193: tweak the r137233 fix to r136283 -- Code was making two send()
attempts vs. the comment documented "If we are working with a privileged
socket, then take only one attempt".  Make the code match.

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

11 years agoRecord that r228191 (ensure kldxref is run first) was MFC'ed [r231373].
obrien [Mon, 2 Jul 2012 07:22:22 +0000 (07:22 +0000)]
Record that r228191 (ensure kldxref is run first) was MFC'ed [r231373].

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

11 years agoMFC: r227526: KNF
obrien [Mon, 2 Jul 2012 07:18:27 +0000 (07:18 +0000)]
MFC: r227526: KNF

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

11 years agoMFC: r227524: improve the grep-ability output strings.
obrien [Mon, 2 Jul 2012 07:14:21 +0000 (07:14 +0000)]
MFC: r227524: improve the grep-ability output strings.

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

11 years agoMFC: r237279: install filemon.h into /usr/include for userland consumption.
obrien [Mon, 2 Jul 2012 07:11:43 +0000 (07:11 +0000)]
MFC: r237279: install filemon.h into /usr/include for userland consumption.

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

11 years agoMFC: r227518: reformat comment to be more readable in standard Xterm.
obrien [Mon, 2 Jul 2012 07:10:33 +0000 (07:10 +0000)]
MFC: r227518: reformat comment to be more readable in standard Xterm.

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

11 years agoMFC r235695, r236158, r236190, r236494
alc [Mon, 2 Jul 2012 07:01:41 +0000 (07:01 +0000)]
MFC r235695, r236158, r236190, r236494
  Replace all uses of the vm page queues lock by a r/w lock that is
  private to this pmap.c.

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

11 years agoMFC r237958:
dougb [Mon, 2 Jul 2012 06:51:49 +0000 (06:51 +0000)]
MFC r237958:

For the ports modules building code, clean WRKDIR before building. This is
important for those that use -DNO_CLEAN routinely, since it will prevent
installing stale stuff, and even more important when the port is upgraded
to a newer version. When the user doesn't use -DNO_CLEAN, this will create
an infinitesimal amount of extra work, but won't hurt anything.

This is necessary because the ports tree has flags that prevent the ususal
'update the build if newer source files exist' logic from doing what it
would do in the base.

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

11 years agoMFC: r237836
brueffer [Mon, 2 Jul 2012 06:40:11 +0000 (06:40 +0000)]
MFC: r237836

mps(4) is endian safe as of r237876.

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

11 years agoMFC r236247 (pjd):
mm [Mon, 2 Jul 2012 06:39:06 +0000 (06:39 +0000)]
MFC r236247 (pjd):
Remove unused sysctl.

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

11 years agoRecord that r226343 r226347 r226348 r226349 r226353 r226388 was MFC'ed.
obrien [Mon, 2 Jul 2012 06:02:56 +0000 (06:02 +0000)]
Record that r226343 r226347 r226348 r226349 r226353 r226388 was MFC'ed.

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

11 years agoMFC r235912
alc [Mon, 2 Jul 2012 05:57:44 +0000 (05:57 +0000)]
MFC r235912
  There is no need for pmap_protect() to acquire the page queues lock
  unless it is going to access the pv lists or PMAP1/PADDR1.

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

11 years agoMFC: r229809: Don't include <sys/timeb.h>.
obrien [Mon, 2 Jul 2012 05:57:01 +0000 (05:57 +0000)]
MFC: r229809: Don't include <sys/timeb.h>.
The purpose of not including <sys/timeb.h> is to avoid the compiler
warning we put in <sys/timeb.h>.  So this change will cause CVS to
provide its own definition of 'struct timeb'.  This is only OK
because the code never calls the libc ftime(3) interface.  CVS only
uses 'struct timeb' as a convenience structure -- thus it doesn't
matter how its supplied definition does or does not match the
ftime(3) ABI.

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

11 years agoMFC r233290, r235598, r235973, r236045, r236240, r236291, r236378
alc [Mon, 2 Jul 2012 05:35:55 +0000 (05:35 +0000)]
MFC r233290, r235598, r235973, r236045, r236240, r236291, r236378
  Change pv_entry_count to a long on amd64.

  Rename pmap_collect() to pmap_pv_reclaim() and rewrite it such that it
  no longer uses the active and inactive paging queues.

  Eliminate some purely stylistic differences among the amd64, i386
  native, and i386 xen PV entry allocators.

  Eliminate code duplication in free_pv_entry() and pmap_remove_pages()
  by introducing free_pv_chunk().

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

11 years agoMFC r226843
alc [Mon, 2 Jul 2012 03:49:52 +0000 (03:49 +0000)]
MFC r226843
  Eliminate vestiges of page coloring in VM_ALLOC_NOOBJ calls to
  vm_page_alloc().  While I'm here, for the sake of consistency, always
  specify the allocation class, such as VM_ALLOC_NORMAL, as the first of
  the flags.

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

11 years agoMFC 237800:
ken [Mon, 2 Jul 2012 02:56:01 +0000 (02:56 +0000)]
MFC 237800:

  r237800 | ken | 2012-06-29 11:00:52 -0600 (Fri, 29 Jun 2012) | 7 lines

  Change the mps(4) driver to only scan a target if that is what is
  needed instead of scanning the full bus every time.

Submitted by: mav
Discussed with: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>

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

11 years agoMFC r237571:
delphij [Mon, 2 Jul 2012 02:50:10 +0000 (02:50 +0000)]
MFC r237571:

Fix a LOR acquiring the if_afdata lock while holding an rtentry lock.
Possibly do some entra work in case we would not get into the
ifa0 != NULL paths later as we already do for the mltaddr before.

XXX We should possibly error in case in6_setscope fails.

Reference: http://lists.freebsd.org/pipermail/freebsd-net/2011-September/029829.html

Submitted by: bz

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

11 years agoMFC 237730:
ken [Mon, 2 Jul 2012 02:44:00 +0000 (02:44 +0000)]
MFC 237730:

  r237730 | ken | 2012-06-28 14:48:24 -0600 (Thu, 28 Jun 2012) | 5 lines

  Now that the mps(4) driver is endian-safe, add it to the powerpc and
  sparc64 GENERIC config files.

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

11 years agoMFC 237726:
ken [Mon, 2 Jul 2012 02:36:05 +0000 (02:36 +0000)]
MFC 237726:

  r237726 | ken | 2012-06-28 13:39:30 -0600 (Thu, 28 Jun 2012) | 5 lines

  Add a loader tunable, kern.cam.ctl.disable, that will disable
  loading CTL.  This may be useful in very low memory installations.

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

11 years agoMFC r237568:
delphij [Mon, 2 Jul 2012 02:26:52 +0000 (02:26 +0000)]
MFC r237568:

Fetch both ECDSA and RSA keys by default in ssh-keyscan(1).

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

11 years agoMFC symbol exports for libsupcc++ and libcxxrt that correctly export new and
theraven [Sun, 1 Jul 2012 21:51:57 +0000 (21:51 +0000)]
MFC symbol exports for libsupcc++ and libcxxrt that correctly export new and
delete operators.

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

11 years agoMFC r233954, r236930
alc [Sun, 1 Jul 2012 18:27:13 +0000 (18:27 +0000)]
MFC r233954, r236930
  Micro-optimize free_pv_entry() for the expected case.

  Avoid unnecessary atomic operations for clearing PGA_WRITEABLE in
  pmap_remove_pages().

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

11 years agoMFC r237832, r237436, r237439, r237463, r237512, r237587, r237799,
np [Sun, 1 Jul 2012 13:43:30 +0000 (13:43 +0000)]
MFC r237832, r237436, r237439, r237463, r237512, r237587, r237799,
r237819, r237831.

r237832:
cxgb(4): IPv6 rx/tx hw checksum, IPv6 TSO and LRO too.

r237436:
cxgbe(4): update to firmware interface 1.5.2.0; updates to shared code.

r237439:
Do not read registers with read side effects while performing a register
dump for cxgbetool.

r237463:
Do not allocate extra vectors when adapter is not TOE
capable (or toecaps have been disallowed by the user).

r237512:
Better way to determine the status page length and rx pad boundary.

r237587:
Allow cxgbe(4) running within a VM to attach to its devices that have been
exported via PCI passthrough.

r237799:
cxgbe(4): support for IPv6 hardware checksumming (rx and tx).

r237819:
cxgbe(4): support for IPv6 TSO and LRO.

r237831:
- Assign (don't OR) the CSUM_XXX bits to csum_flags in the rx checksum code.
- Fix TSO/TSO4 mixup.
- Add IFCAP_LINKSTATE to the available/enabled capabilities.

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

11 years agoBackport just the sys/{dev,modules}/cxgb{,e}/ parts of r237263, and then
np [Sun, 1 Jul 2012 12:00:36 +0000 (12:00 +0000)]
Backport just the sys/{dev,modules}/cxgb{,e}/ parts of r237263, and then
disable the TOE and iWARP modules in the Makefiles (they won't compile
without the rest of r237263).

This reduces diffs between the cxgb/cxgbe drivers in head and 9 and
makes it easy to MFC other fixes to 9.

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

11 years agoPartial MFC of r236311 (uqs@):
np [Sun, 1 Jul 2012 09:35:15 +0000 (09:35 +0000)]
Partial MFC of r236311 (uqs@):

Unbreak make depend.

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

11 years agoMFC BA/DELBA fixes:
bschmidt [Sun, 1 Jul 2012 09:30:37 +0000 (09:30 +0000)]
MFC BA/DELBA fixes:
- r234321:
  Use the M_AMPDU_MPDU flag to determine when to manually set the seqno and
  use a BA queue.
- r235686:
  Discard frames after a DELBA which where queued during an active BA
  session.
- r235687:
  remove unused vap variable
- r237647:
  Fix a TX aggregation issue, if after the last compressed BA notification
  the TX queue is empty, there won't be a TX done notification, effectly
  resulting in an mbuf leak. The correct way to handle this is to free
  up mbufs on both BA and TX done notifications up to the last sent seqno.
- r237649 (1):
  We need to defer passing the DELBA request to the firmware until the aggr
  queue is empty or the firmware will go nuts.

PR: kern/167806 (1)

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

11 years agoMFC r231317, r235963 (bz@), r234831, r234833.
np [Sun, 1 Jul 2012 09:17:55 +0000 (09:17 +0000)]
MFC r231317, r235963 (bz@), r234831, r234833.

r231317
Add IPv6 TSO (including TSO+VLAN) support to cxgb(4).

r235963 (bz@)
Allow LRO to work on IPv6 as well.
Fix the module Makefile to at least properly inlcude opt_inet6.h
and allow builds without INET or INET6.

r234831
Make sure that the firmware version is available in
dev.t4nex.X.firmware_version even if the driver fails to attach
properly.  At least it'll be easy to tell what we're dealing with.

r234833:
Change the default to not use packet counters to generate rx interrupts.
Rely solely on the timer based mechanism.

Update man page to reflect this change.

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

11 years agoMFC r237392:
tuexen [Sun, 1 Jul 2012 09:03:37 +0000 (09:03 +0000)]
MFC r237392:
Remove redundant #ifdef. Reported by gnn@.

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

11 years agoMFC r237230:
tuexen [Sun, 1 Jul 2012 09:00:29 +0000 (09:00 +0000)]
MFC r237230:
Add rate limitation for SCTP OOTB responses.

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

11 years agoMFC r237229:
tuexen [Sun, 1 Jul 2012 08:57:28 +0000 (08:57 +0000)]
MFC r237229:
Cleanup the UDP decapsulation code.

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

11 years agoMFC r236961:
tuexen [Sun, 1 Jul 2012 08:53:55 +0000 (08:53 +0000)]
MFC r236961:
Add a cmsg of type IP_TOS for UDP/IPv4 sockets to specify the TOS byte.

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

11 years agoMFC r236959:
tuexen [Sun, 1 Jul 2012 08:47:15 +0000 (08:47 +0000)]
MFC r236959:
Add a IP_RECVTOS socket option to receive for received UDP/IPv4
packets a cmsg of type IP_RECVTOS which contains the TOS byte.
Much like IP_RECVTTL does for TTL. This allows to implement a
protocol on top of UDP and implementing ECN.

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

11 years agoMFC r236958:
tuexen [Sun, 1 Jul 2012 08:32:48 +0000 (08:32 +0000)]
MFC r236958:
Deliver IPV6_TCLASS, IPV6_HOPLIMIT and IPV6_PKTINFO cmsgs (if
requested) on IPV6 sockets, which have been marked to be not IPV6_V6ONLY,
for each received IPV4 packet.

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

11 years agoMFC r236949:
tuexen [Sun, 1 Jul 2012 08:27:02 +0000 (08:27 +0000)]
MFC r236949:
Small cleanup.

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

11 years agoMFC r236640:
tuexen [Sun, 1 Jul 2012 08:23:16 +0000 (08:23 +0000)]
MFC r236640:
The cmsg_len field includes the cmsg header. So use CMSG_LEN().

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

11 years agoMFC r236522:
tuexen [Sun, 1 Jul 2012 08:21:08 +0000 (08:21 +0000)]
MFC r236522:
Remove code which is not needed.

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

11 years agoMFC r236515:
tuexen [Sun, 1 Jul 2012 08:18:40 +0000 (08:18 +0000)]
MFC r236515:
Use an existing function to get the source address.

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

11 years agoMFC r236493:
tuexen [Sun, 1 Jul 2012 08:13:20 +0000 (08:13 +0000)]
MFC r236493:
Honor sysctl for TTL.

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

11 years agoMFC r236492:
tuexen [Sun, 1 Jul 2012 08:11:15 +0000 (08:11 +0000)]
MFC r236492:
Don't request data from the IPv6 layer, which is not used.

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

11 years agoMFC r236450:
tuexen [Sun, 1 Jul 2012 08:09:05 +0000 (08:09 +0000)]
MFC r236450:
Remove an unused parameter.

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

11 years agoMFC r236391:
tuexen [Sun, 1 Jul 2012 08:06:43 +0000 (08:06 +0000)]
MFC r236391:
Small cleanups. No functional change.

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

11 years agoMFC r235990:
tuexen [Sun, 1 Jul 2012 08:04:10 +0000 (08:04 +0000)]
MFC r235990:
Undefine SCTP_PACKED before including sctp_uio.h, which doesn't
use it. Spotted by Irene Ruengeler.

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

11 years agoMFC r235903:
tuexen [Sun, 1 Jul 2012 08:01:42 +0000 (08:01 +0000)]
MFC r235903:
Add sn_send_failed_event to sctp_notification.

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

11 years agoMFC r235828:
tuexen [Sun, 1 Jul 2012 07:59:00 +0000 (07:59 +0000)]
MFC r235828:
Use consistent text at the begining of the files.

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

11 years agoMFC r235827:
tuexen [Sun, 1 Jul 2012 07:55:42 +0000 (07:55 +0000)]
MFC r235827:
Update copyright date.

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

11 years agoMFC r235557:
tuexen [Sun, 1 Jul 2012 07:53:54 +0000 (07:53 +0000)]
MFC r235557:
Use a default for max_burst of 4 and l2var of 2.
This was discussed with rrs@.

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

11 years agoMFC r235554:
tuexen [Sun, 1 Jul 2012 07:51:32 +0000 (07:51 +0000)]
MFC r235554:
Support SCTP_EOF also for 1-to-1 style sockets.

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

11 years agoMFC r235418:
tuexen [Sun, 1 Jul 2012 07:49:14 +0000 (07:49 +0000)]
MFC r235418:
Support SCTP_REMOTE_ERROR notification.

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

11 years agoMFC r235416:
tuexen [Sun, 1 Jul 2012 07:42:59 +0000 (07:42 +0000)]
MFC r235416:
Provide in the SCTP_SEND_FAILED and SCTP_SEND_FAILED_EVENT notifications
the correct ssf_error or ssfe_error as required by RFC 6458.

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

11 years agoMFC r235414,r235415:
tuexen [Sun, 1 Jul 2012 07:39:37 +0000 (07:39 +0000)]
MFC r235414,r235415:
Provide the error code in SCTP_PEER_ADDR_CHANGE notifications as
specified in RFC 6458.

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

11 years agoMFC r235412:
tuexen [Sun, 1 Jul 2012 07:36:33 +0000 (07:36 +0000)]
MFC r235412:
Remove unused constants.

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

11 years agoMFC r235403:
tuexen [Sun, 1 Jul 2012 07:34:07 +0000 (07:34 +0000)]
MFC r235403:
Use ECONNABORTED in cases where the ABORT was sent to the peer.

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

11 years agoMFC r235402:
tuexen [Sun, 1 Jul 2012 07:31:25 +0000 (07:31 +0000)]
MFC r235402:
Ensure the user can read COMM_LOST notifications on 1-to-1 style sockets.

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

11 years agoMFC r235360:
tuexen [Sun, 1 Jul 2012 07:28:15 +0000 (07:28 +0000)]
MFC r235360:
Provide in the association change notification the received ABORT chunk
if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458.

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

11 years agoMFC r237718:
mav [Sun, 1 Jul 2012 06:41:39 +0000 (06:41 +0000)]
MFC r237718:
Fix millisecond to ticks conversion in drm_msleep().

On systems with HZ=100 it caused Intel eDP video output initialization
(and Xorg startup) to take several minutes instead of several seconds.

Reviewed by: kib

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

11 years agoMFC 237682:
ken [Sun, 1 Jul 2012 05:39:49 +0000 (05:39 +0000)]
MFC 237682:

  r237682 | ken | 2012-06-27 21:36:13 -0600 (Wed, 27 Jun 2012) | 6 lines

  Fix a typo in a panic() call.

PR: kern/169497
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>

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