Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris,
etc)

MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272083 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the executed testplan count

MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272084 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add myself (jch) to calendar.freebsd and committers-src.dot

Approved by:	jhb (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272085 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Finish QCOW version 2 and stop making it conditional.

We have a different ordering for the RC block(s) and L2 tables.
This is expected to be a non-issue, because everything is found
through file offsets in the corresponding RC table and L1 table.
Files that grow organically have RC blocks and L2 tables scattered
all over the place anyway.

The reason for the difference is that mkimg needs to be able to
write to a pipe. We can't seek forward and backward to fill in
the bits in non-sequential order.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272086 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Increase the memory disk size in the following testcases to avoid mount
failures, which would cause cascade failures in the rest of the test
run:

link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t

Fail quickly in all of the testcases if mdconfig, mount, umount, etc
fails to avoid issues similar to this in the future

Submitted by: Casey Peel <cpeel@isilon.com>
MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272087 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add baseline files for QCOW2.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272088 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix NULL pointer deref in ipfw when using dummynet at layer 2.
Drop packet if pkg->ifp is NULL, which is the case here.

ref. https://github.com/HardenedBSD/hardenedBSD
commit 4eef3881c64f6e3aa38eebbeaf27a947a5d47dd7

PR 193861 --  DUMMYNET LAYER2: kernel panic

in this case a kernel panic occurs. Hence, when we do not get an interface,
we just drop the packet in question.

PR:		193681
Submitted by:	David Carlier <david.carlier@hardenedbsd.org>
Obtained from:	Hardened BSD
MFC after:	2 weeks
Relnotes:	yes


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272089 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Provide mxge_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Run through unifdef(1) with slight hand-editing after. It is obvious,
that the driver is not going to be ever improved in terms of hardware
support, it is going to be only maintained as our kernel APIs change.
Carrying all the compatibility with ancient versions of NetBSD, OpenBSD,
Linux and BSDI, as well as obsoleted FreeBSD versions has no reason.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272094 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Provide lmc_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272095 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Provide bce_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
- While here fix 3 instances of the same bug, when error counter was ++
  in one place and then assigned in other place, losing the increment.
  Achieve that storing soft errors counters in softc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ddb: allow specifying the exact address of the symtab and strtab

When the FreeBSD kernel is loaded from Xen the symtab and strtab are
not loaded the same way as the native boot loader. This patch adds
three new global variables to ddb that can be used to specify the
exact position and size of those tables, so they can be directly used
as parameters to db_add_symbol_table. A new helper is introduced, so callers
that used to set ksym_start and ksym_end can use this helper to set the new
variables.

It also adds support for loading them from the Xen PVH port, that was
previously missing those tables.

Sponsored by: Citrix Systems R&D
Reviewed by:	kib

ddb/db_main.c:
 - Add three new global variables: ksymtab, kstrtab, ksymtab_size that
   can be used to specify the position and size of the symtab and
   strtab.
 - Use those new variables in db_init in order to call db_add_symbol_table.
 - Move the logic in db_init to db_fetch_symtab in order to set ksymtab,
   kstrtab, ksymtab_size from ksym_start and ksym_end.

ddb/ddb.h:
 - Add prototype for db_fetch_ksymtab.
 - Declate the extern variables ksymtab, kstrtab and ksymtab_size.

x86/xen/pv.c:
 - Add support for finding the symtab and strtab when booted as a Xen
   PVH guest. Since Xen loads the symtab and strtab as NetBSD expects
   to find them we have to adapt and use the same method.

amd64/amd64/machdep.c:
arm/arm/machdep.c:
i386/i386/machdep.c:
mips/mips/machdep.c:
pc98/pc98/machdep.c:
powerpc/aim/machdep.c:
powerpc/booke/machdep.c:
sparc64/sparc64/machdep.c:
 - Use the newly introduced db_fetch_ksymtab in order to set ksymtab,
   kstrtab and ksymtab_size.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Provide vmxnet3_get_counter() to return counters that are not collected,
but taken from hardware.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document the new nvlist_get_parent() function.

Submitted by:	Mariusz Zaborski


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272102 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move the ARM Samsung s3c2xx0 support files into the samsung directory, to
match other platforms.

Discussed with:	andrew


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove duplicated header content

I fail at patch(1).

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add basic man page for ipheth(4).

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Cross reference cdce(4), ipheth(4) and urndis(4) from each other.

MFC after:	1 week


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

Submitted by:	Daniel Peyrolon
MFC after:	3 days


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