Fix rendering with mandoc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274934 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix rendering with mandoc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the negation (!) operator so that it binds only to the word that
immediately follows it, which means 'not' has to be reset every time an
option word or device name is processed.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add ARMV6 as an arm option.  This will cause obscure magic in config(8)
to automatically set the armv6 option when MACHINE_ARCH is armv6.  That
allows replacing ever-growing lists of cpu names as options to compile
a given file with the using either "optional armv6" or "optional !armv6".


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix rendering with mandoc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Read cs_outstanding_ctl_pdus before incrementing it for NEXUS RESET task.

This removes extra log noise on idle connection termination.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The arm PJ4B cpu is armv7 architecture, not v6.

If this feels like deja vu... the last time this was fixed in this file
only ARM_MMU_V6 was fixed, this time it's ARM_ARCH_V6 (and this time I
searched for other occurrances of pj4b in here).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274941 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
We already have "int i" in this scope.

Submitted by:	alc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274948 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix rendering of manpages with mandoc(1)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove the pidfile clause from the ctl.conf example.  Why do everyone
just copy/paste this line into their configs, it's beyond me.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274954 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Limit descriptors and enter capability mode.

Differential:	D1009
Reviewed by:	jonathan, pjd
MFC after:	2 weeks
Relnotes:	yes


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace home-grown CTL IO allocator with UMA.

Old allocator created significant lock congestion protecting its lists
of preallocated I/Os, while UMA provides much better SMP scalability.
The downside of UMA is lack of reliable preallocation, that could guarantee
successful allocation in non-sleepable environments.  But careful code
review shown, that only CAM target frontend really has that requirement.
Fix that making that frontend preallocate and statically bind CTL I/O for
every ATIO/INOT it preallocates any way.  That allows to avoid allocations
in hot I/O path.  Other frontends either may sleep in allocation context
or can properly handle allocation errors.

On 40-core server with 6 ZVOL-backed LUNs and 7 iSCSI client connections
this change increases peak performance from ~700K to >1M IOPS!  Yay! :)

MFC after:	1 month
Sponsored by:	iXsystems, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add ip_gre.h to ObsoleteFiles.inc.

Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make it possible to specify flags for autofs daemons in rc.conf.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a sysctl `net.link.tap.deladdrs_on_close' to configure whether tap
should delete configured addresses and routes when the interface is
closed.  Default is enabled (preserve current behaviour).

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add busdma sync ops before reading and after modifying the descriptor rings.

This was previously working by accident because BUSDMA_COHERENT_MEMORY has
always been set to strongly-ordered on arm.  Now we're moving towards
normal-uncacheable (what might be called write-combining on other platforms)
and using the proper sync ops will be more important.  Of course, that
opens the question of just what is the "proper" sync op for shared
concurrent dma access as opposed to accesses where the handoff of control
of the memory has well-defined sequence points that match the available
busdma sync operations.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Properly initialize the capability rights for vnodes exported to procstat
that aren't for file descriptors (cwd, jdir, tracevp, etc.).

Submitted by:	Mikhail <mp@lenta.ru>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a bus_get_domain() wrapper around BUS_GET_DOMAIN().  Use this to add
a new per-device '%domain' sysctl node that returns the NUMA domain a
device is associated with if it is associated with one.

Note that this API is still a WIP and might change before 11.0 actually
ships.

Differential Revision:	https://reviews.freebsd.org/D930
Reviewed by:	kib, adrian


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274976 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For now, disable using -fsanitize=bounds for the libc ssp tests, when
using clang 3.5.0, until the runtime support (via compiler-rt) is added.
Otherwise, this would lead to link errors about missing support
libraries.


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

LIBADD will automatically set DPADD and LDADD when needed including their
dependencies, LIBADD automatically handles private and internal libs so that
the end user Makefile does not have to care about it.

This allows to reduce overlinking on the base system leaving the framework get
the dependencies properly.

It also allows to built components binaries statically.

To use it:

Replace:
DPADD=	${LIBARCHIVE} ${LIBSSL}
LDADD=	-larchive -lssl

by:
LIBADD=	archive ssl

Differential Revision:	https://reviews.freebsd.org/D1209
Reviewed by:	brooks imp


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