MFC r261354:
In _pthread_kill(), if passed pthread is current thread, do not send
the signal second time, by adding the missed else before if statement.

PR:	threads/186309


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260553 (by theraven):

Add missing C++11 typeinfos to the libcxxrt version script.

PR:		185663


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261644 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260871:

  If the flowid is available for the mbuf that finalised the creation
  of a syncache connection, copy it into the inp_flowid field.

  Without this, an incoming TCP connection won't have an inp_flowid marked
  until some data comes in, and this means that things like the per-CPU
  TCP timer option will choose a different CPU for the timer work.
  (It also means that if one grabbed the flowid via an ioctl from userland,
  it won't be available until some data has been received.)

Sponsored by:	Netflix, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Run ldconfig(8) rc script before building ports so
ld-elf.so.hints exists for pkg(8).

This is a direct commit to stable/10 as generate-release.sh
does not exist in head/.

PR:		186554
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261400:
  Take exclusive lock only when lle isn't NULL. We don't need write access
  to lle in most cases.

MFC r261583:
  Unlock entry before retry.

Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261515:
Fix I/O freezes in some cases, caused by r257916.

Delaying isp_reqodx update, we should be ready to update it every time
we read it.  Otherwise requests using several indexes may be requeued
ndefinitely without ever updating the variable.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261718 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261522:

Describe the use of a freebsd-boot GPT partition, brought up by Scot
Hetzel <swhetzel@gmail.com> on the -doc mailing list.

Also modify the Author section to be clear that I wrote the man page,
not gptboot.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261720 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261609:

Pull in upstream libcxxrt commit 8006101, which makes its cxxabi.h file
compilable just by itself.

PR:		kern/184019


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261727 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r261447

Fix a typo.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r261339

MLINK ixgbe.4 to {if_ix.4, ix.4}.  An update for ixgbe.4
which deals with the "ix prefix being shared by two drivers"
situation is forthcoming.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261731 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r261494

Actually install acpi_rapidstart.4.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261738 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r261487

Add qlxgbe(4) and qlxge(4) to the hardware notes.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r261496

Unbreak mount_udf by passing the correct iovec length into
nmount().  This has been broken since r247861.

PR:		bin/186193
Submitted by:	Arnot Belohlavek


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260255:

Properly document -u and -s.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261769 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260083:

Fix extremely slow operation with data digests enabled.  This was caused
by receive code waiting for data digest even when the data segment was
empty.  It didn't actually read it, but it waited until those four bytes
become available in the socket buffer, i.e. until any other PDU (e.g. NOP)
came in.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261770 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260389:

Fix a rare "truncated checksums" problem, which manifested like this:

WARNING: icl_pdu_check_data_digest: data digest check failed; got 0xf23b,
should be 0xdb7f23b

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r261500

Add a license (1) and do some cleanup.

Approved by:	Stefan Bethke (original author, by private mail) (1)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Docuemnt mount_udf(8) issue.

Submitted by:	brueffer


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261784 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261507:
Add more quirks for making builtin audio speakers work with more
MacBookPro's. Only tested with MacBookPro 9,2.

Obtained from:	Linux


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261792 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r261680:

Pull in r200899 from upstream clang trunk:

  Allow transformation of VariableArray to ConstantArray.

  In the following code:

     struct A { static const int sz; };
     template<class T> void f() { T arr[A::sz]; }

  the array 'arr' is represented as a variable size array in the template.
  If 'A::sz' gets value below in the translation unit, the array in
  instantiation can turn into constant size array.

  This change fixes PR18633.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2688

This fixes "Assertion failed: (T::isKind(*this)), function castAs"
errors, which can occur when building the security/quantis port.

Reported by:	ale


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@261794 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f