MFC r271424:

  - Add $netif_ipexpand_max to specify the upper limit for the number of
    addresses generated by an address range specification.  The default value
    is 2048.  This can be increased by setting $netif_ipexpand_max in rc.conf.

PR:	186841


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

  Bump .Dd missed in r271424


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272580 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272349, r272422 and r272479:
- Fix XHCI driver for devices which have more than 15 physical root HUB
  ports. The current bitmap array was too small to hold more than 16
  bits and would at some point toggle the context size, which then would
  trigger an enumeration fault and cause a fallback to the EHCI
  companion controller, if any.
- Make sure we always set the maximum number of valid contexts.
- Set default cycle state in case of early interrupts.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272410:
Add new USB ID.

PR:		194091


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272590 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.


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

Make sure to not skip any argument when converting from deprecated
+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR:		193994
Submitted by:	rodrigo
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r272111
fix a panic when passing ifioctl from a netmap file descriptor to
the underlying device. This needs to be merged to 10.1


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272604 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271308:
Make ZVOL writes in device mode support IO_SYNC flag.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271309:
Improve cache control support, including DPO/FUA flags and the mode page.

At this moment it works only for files and ZVOLs in device mode since BIOs
have no respective respective cache control flags (DPO/FUA).


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271311:
Add support for Mode Page Policy (0x87) VPD page.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271316: Report that DPO and FUA bits are supported after r271311.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271352: Fix minor buffer overflow reported by Coverity.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271353: Fix memory leak on error, reported by Coverity.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271354: Fix couple off-by-one range check errors, reported by Coverity.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271358: Fix array overrun, reported by Coverity.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271360: Remove uninitialized and unused variable, reported by Coverity.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271313: Oops, missed piece of r271311.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271443: Add support for Extended INQUIRY Data (0x86) VPD page.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272625 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271503: Implement range checks between UNMAP and READ/WRITE commands.

Before this change UNMAP completely blocked other I/Os while running.
Now it blocks only colliding ones, slowing down others only due to ZFS
locks collisions.

Sponsored by:	iXsystems, Inc.


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

Checksum coverage values larger than 65535 for UDPLite are invalid.
Check for this when the user calls setsockopt using UDPLITE_{SEND,RECV}CSCOV.


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