Make the code to check if VMX is enabled more readable by using macros
instead of magic numbers.

Discussed with:	Chris Torek


git-svn-id: svn://svn.freebsd.org/base/head@249351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not sent 120 TEST UNIT READY requests on generic NOT READY statuses.

Some failing disks tend to return vendor-specific ASC/ASCQ codes with
NOT READY sense key.  It caused extremely long recovery attempts, repeating
these 120 TURs (it takes at least 1 minute) for every I/O request.
Instead of that use default error handling, doing just few retries.

Reviewed by:	ken, gibbs
MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@249352 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Include types.h for C99 uintXX_t types.


git-svn-id: svn://svn.freebsd.org/base/head@249355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r249354:
Merge bugfixes accepted and integrated by vendor. Underlying problems
have been reported by us and fixed in r240942 and r249196.

Illumos ZFS issues:
  3645 dmu_send_impl: possibilty of pool hold leak
  3692 Panic on zfs receive of a recursive deduplicated stream

MFC after:	8 days


git-svn-id: svn://svn.freebsd.org/base/head@249356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix libzfs to report error instead of returning zero if trying to hold or
release a non-existing snapshot of a existing dataset. In recursive case
error is reported if no snapshots with the requested name have been found.

Problem and proposed solution reported to illumos:
  3699 zfs hold or release of a non-existent snapshot does not output error

MFC after:	8 days


git-svn-id: svn://svn.freebsd.org/base/head@249357 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo.


git-svn-id: svn://svn.freebsd.org/base/head@249358 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
fuser(1) requires a filename.

Reviewed by:	lstewart
Approved by:	bcr (mentor)
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@249359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused atomic header


git-svn-id: svn://svn.freebsd.org/base/head@249360 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove EOL whitespace.


git-svn-id: svn://svn.freebsd.org/base/head@249361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
DTrace: option for time-ordered output

Merge changes from illumos:

3021 option for time-ordered output from dtrace(1M)
3022 DTrace: keys should not affect the sort order when sorting by value
3023 it should be possible to dereference dynamic variables
3024 D integer narrowing needs some work
3025 register leak in D code generation
3026 libdtrace should set LD_NOLAZYLOAD=1 to help the pid provider

This brings yet another feature implemented in upstream DTrace.
A complete description is available here:
http://dtrace.org/blogs/ahl/2012/07/28/my-new-dtrace-favorite/

This change bumps the DT_VERS_* number to 1.9.1 in
accordance to what is done in illumos.

This change was somewhat complicated because upstream is mixed many
changes in an individual commit and some of the tests don't really
apply to us.

There are also appear to be differences in timestamping with Solaris
so we had to workaround some assertions making sure no regression
happened.

Special thanks to Fabian Keil for changes and testing.

Illumos Revisions:	13758:23432da34147

Reference:
https://www.illumos.org/issues/3021
https://www.illumos.org/issues/3022
https://www.illumos.org/issues/3023
https://www.illumos.org/issues/3024
https://www.illumos.org/issues/3025
https://www.illumos.org/issues/1694

Tested by:	Fabian Keil
Obtained from:	Illumos
MFC after:	1 months


git-svn-id: svn://svn.freebsd.org/base/head@249367 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Set and display the IP fragment bit correctly when dealing with
the filter mode.

MFC after:	3 days.


git-svn-id: svn://svn.freebsd.org/base/head@249368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Add entries for alc and akoszek, alredy referenced elsewhere
- Add phk -> mux relationship, confirmed by mux@
- Add scottl -> sbruno relationship
- Move four ex-committers to the alumni section
- Sort.


git-svn-id: svn://svn.freebsd.org/base/head@249369 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cxgbe(4): Ensure that the MOD_LOAD handler runs before either t4nex or
t5nex attach to their devices.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@249370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove kernel options from the SYNOPSIS. They are already documented in the
geom(4) manual page SYNOPSIS.


git-svn-id: svn://svn.freebsd.org/base/head@249371 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix tcp_output() so that tcpcb is updated in the same manner when an
mbuf allocation fails, as in a case when ip_output() returns error.

To achieve that, move large block of code that updates tcpcb below
the out: label.

This fixes a panic, that requires the following sequence to happen:

1) The SYN was sent to the network, tp->snd_nxt = iss + 1, tp->snd_una = iss
2) The retransmit timeout happened for the SYN we had sent,
   tcp_timer_rexmt() sets tp->snd_nxt = tp->snd_una, and calls tcp_output().
   In tcp_output m_get() fails.
3) Later on the SYN|ACK for the SYN sent in step 1) came,
   tcp_input sets tp->snd_una += 1, which leads to
   tp->snd_una > tp->snd_nxt inconsistency, that later panics in
   socket buffer code.

For reference, this bug fixed in DragonflyBSD repo:

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1ff9b7d322dc5a26f7173aa8c38ecb79da80e419

Reviewed by:	andre
Tested by:	pho
Sponsored by:	Nginx, Inc.
PR:		kern/177456
Submitted by:	HouYeFei&XiBoLiu <lglion718 163.com>


git-svn-id: svn://svn.freebsd.org/base/head@249372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove contractions.


git-svn-id: svn://svn.freebsd.org/base/head@249373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Minor spelling and grammar fixes.


git-svn-id: svn://svn.freebsd.org/base/head@249375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Explain clearly why a different firmware is being installed (if/when
  it is being installed).  Improve other error messages while here.

- Select special FPGA specific configuration profile when appropriate.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@249376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add sbuf_start_section() and sbuf_end_section() functions, which can
be used for automatic section alignment.

Discussed with:	kib
Reviewed by:	kib
MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@249377 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add sbuf_start_section and sbuf_end_section to the libsbuf symbol map.

MFC after:	1 month


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