Always report that we support REPORT TARGET PORT GROUPS command.

Without clustering support we any way have only one group of permanently
active ports, but that gives us one more supported VMWare feature. ;)

Solaris' Comstar also reports it even when only one port is present.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271606 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use gic_decode_fdt() rather than a local routine to parse fdt interrupt
properties.  Move fdt_pic_table and fdt_fixup_table into imx6_machdep.c,
which means imx6 doesn't need imx_common.c anymore.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pages

Many thanks to Warren Block for his reviews, corrections and additions.

Reviewed by:	Warren Block <wblock@FreeBSD.org>
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make net.inet.ip.sourceroute, net.inet.ip.accept_sourceroute, and
net.inet.ip.process_options vnet-aware.  Revert changes in r271545.

Suggested by:	bz


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271610 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove incorrect props


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a brief description of CTLFLAG_VNET flag. Since the VIMAGE is
absolutely not documented, I see no reason in long descriptions
here.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add comments describing r271604 change.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
r271256 fixed one segfault condition but introduced another due to the
wrong operator being used in the tty check.

Reported by:	avg@
MFH:		3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Provide the unique implementation for the VOP_GETPAGES() method used
by ffs and ext2fs.  Remove duplicated call to vm_page_zero_invalid(),
done by VOP and by vm_pager_getpages().  Use vm_pager_free_nonreq().

Reviewed by:	alc (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	6 weeks (after r271596)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Upgrade to OpenPAM Ourouparia.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use generic SYSCTL_* macro instead of deprecated SYSCTL_VNET_*.

Suggested by:	glebius


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271628 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
xen: don't set suspend/resume methods for the PIRQ PIC

The suspend/resume of event channels is already handled by the xen_intr_pic.
If those methods are set on the PIRQ PIC they are just called twice, which
breaks proper resume. This fix restores migration of FreeBSD guests to a
working state.

Sponsored by: Citrix Systems R&D


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The private peripheral interrupts start at offset 16, not 0.  Also, use
names rather than inline mystery constants for these offsets.

Pointed out by:	andrew


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271630 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove redundant declaration. vnode.h should be included before vnode_pager.h.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271631 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Three improvements to vnode_pager_generic_getpages():

Eliminate an exclusive object lock acquisition and release on the expected
execution path.

Do page zeroing before the object lock is acquired rather than during the
time that the object lock is held.

Use vm_pager_free_nonreq() to eliminate duplicated code.

Reviewed by:	kib
MFC after:	6 weeks
Sponsored by:	EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271634 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add stricter checking of some mmap() arguments:
- Fail with EINVAL if an invalid protection mask is passed to mmap().
- Fail with EINVAL if an unknown flag is passed to mmap().
- Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to mmap().
- Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous
  mappings.

Reviewed by:	alc, kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D698


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271635 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Chunk IDs are 8 bit entities, not 16 bit.
Thanks to Peter Kasting from Google for drawing
my attention to it.

MFC after: 3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add quirks to disable READ CAPACITY (16) for PNY USB 3.0 Flash Drives.

Submitted by:	Sean Fagan <sef@ixsystems.com>
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271644 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Set DROP_EN on each RX queue if transmit flow-control is disabled.

This allows the NIC to drop frames on the receive queue and not
cause the MAC to block on receiving to _any_ queue.

Tested:

igb0@pci0:5:0:0:        class=0x020000 card=0x152115d9 chip=0x15218086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'I350 Gigabit Network Connection'
    class      = network
    subclass   = ethernet

Discussed with: Eric Joyner <eric.joyner@intel.com>

MFC after:	1 week
Sponsored by:	Norse Corp, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a double-free of mbufs in rx_ixgbe_discard().

fmp->buf at the free point is already part of the chain being freed,
so double-freeing is counter-productive.

Submitted by:	Marc De La Gueronniere <mdelagueronniere@verisign.com>
MFC after:	1 week
Sponsored by:	Verisign, Inc.


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