MFC: r249069
Trailing whitespace cleanup along with 80 column enforcemnt.
MFC: r249428
Cosmetic change: Fix a comment reference for Ivy Bridge *Xeon*
MFC: r249460
Improve/correct a comment. We now support a lot more cpu types.

Approved by:	sbruno (mentor)


git-svn-id: svn://svn.freebsd.org/base/stable/9@250038 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249525:
Rewrite origin_subst_one() to get rid of the wrong limit on the length
of the resulting string.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250040 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249719:
  Since we didn't break the loop, we should set i to -1 to start from the
  beginning.

  Submitted by:	Steven Hartland


git-svn-id: svn://svn.freebsd.org/base/stable/9@250043 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249294:
  Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats.

MFC r249528,249546:
  Add accounting to the source address selection algorithm for cases, when
  it fails to select an address, also add several another counters to
  the statistics.

MFC r249543,249552:
  Replace hardcoded numbers.

MFC r249544:
  Use IP6S_M2MMAX macro.

MFC r249545:
  Replace hardcoded numbers. Also use interface-local scope name instead
  of node-local.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix build.
- pass a format string to printf
- catch up with constifying uz_name


git-svn-id: svn://svn.freebsd.org/base/stable/9@250045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a bug that allows NFS clients to issue READDIR on files.

PR:		kern/178016
Security:	CVE-2013-3266
Security:	FreeBSD-SA-13:05.nfsserver
Approved by:	so


git-svn-id: svn://svn.freebsd.org/base/stable/9@250060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r248253:
 Add missed `_load' to the `if_foo_load="YES"' line.

PR:		docs/176915
Submitted by:	Dmitry Afanasiev <KOT@MATPOCKuH.Ru>


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

Loosen restrictions for quoted strings.  Now we can use more complex strings
and "escaped" quote characters.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a bug that allows NFS clients to issue READDIR on files.

(files missing from previous commit)

PR:		kern/178016
Security:	CVE-2013-3266
Security:	FreeBSD-SA-13:05.nfsserver
Approved by:	so


git-svn-id: svn://svn.freebsd.org/base/stable/9@250070 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246826:
 Add support of passing SCM_BINTIME ancillary data object for PF_LOCAL
 sockets.

PR:		kern/175883
Submitted by:	Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>


git-svn-id: svn://svn.freebsd.org/base/stable/9@250072 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243314:
 Zero the whole struct not just the size of a pointer.

MFC r246670:
 Major update for unix_cmsg.

PR:		bin/131567
Submitted by:	Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>


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

Add preliminary support for IBM/Lenovo TrackPoint.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250078 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249996:
	Add missing static qualifiers


git-svn-id: svn://svn.freebsd.org/base/stable/9@250084 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC of 249789:

Fix error check.

Submitted by: Andrey Chernov (ache@)


git-svn-id: svn://svn.freebsd.org/base/stable/9@250094 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249858:
Merge vendor bugfix for a possible deadlock related to async destroy
and improve write performance by introducing a new lock protecting
tx_open_txg.

Illumos ZFS issues:
  3642 dsl_scan_active() should not issue I/O to determine if async
       destroying is active
  3643 txg_delay should not hold the tc_lock


git-svn-id: svn://svn.freebsd.org/base/stable/9@250098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve error handling when unwrapping received data.

Submitted by:	Rick Macklem


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

Use the system MAKEOBJDIRPREFIX when running make targets in
mergemaster.  This allows bootstrap verions of tools to be used.

Add a note to UPDATING about this change.

This commit is a partial backout of r248531 in that it removes an
accidentally committed change to mergemaster.

Discussed with:	jhb
Sponsored by:	DARPA, AFRL


git-svn-id: svn://svn.freebsd.org/base/stable/9@250118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245752,246913,247162,250119

Replace all known uses of ln in the build process with appropriate
install -l invocations via new INSTALL_LINK and INSTALL_SYMLINK
variables.

Sponsored by:	DARPA, AFRL


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

Simplify and fix a bug in cc_ack_received()'s "are we congestion window limited"
logic (refer to [1] for associated discussion). snd_cwnd and snd_wnd are
unsigned long and on 64 bit hosts, min() will truncate them to 32 bits and could
therefore potentially corrupt the result (although under normal operation,
neither variable should legitmately exceed 32 bits).

[1] http://lists.freebsd.org/pipermail/freebsd-net/2013-January/034297.html

Submitted by:	jhb


git-svn-id: svn://svn.freebsd.org/base/stable/9@250140 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245328:
Freeze device queue before returning errors to CAM.  This is required
for proper error recovery, including keeping original request order.


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