ng_ether_ifnet_arrival_event: check interface type before using IFP2NG

The check is copied from vnet_ng_ether_init.
Not sure if it covers all the types that we want to support with
ng_ether.

Reported by:	markj
Discussed with:	zec
MFC after:	10 days
X-MFC with:	r246245


git-svn-id: svn://svn.freebsd.org/base/head@246324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Missed adding Makefile.config and unit-tests/Makefile should
allow FreeBSD make to do 'obj'.

Approved by:	marcel (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@246325 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Sort by MK_* knob like the comment says

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246328 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use stripesize as smallest block size if it's available.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ktr: copy content from the early static buffer if KTR_ENTRIES !=
KTR_BOOT_ENTRIES

Reported by:	glebius, jhb
Pointyhat to:	avg
MFC after:	14 days
X-MFC with:	r246282


git-svn-id: svn://svn.freebsd.org/base/head@246330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ktr: prevent possible footshooting with KTR_ENTRIES and KTR_BOOT_ENTRIES

Suggested by:	adrian
MFC after:	14 days
X-MFC with:	r246282


git-svn-id: svn://svn.freebsd.org/base/head@246331 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Rework jumbo frame handling.  QAC confirmed that the controller
requires 8 bytes alignment on RX buffer.  Given that non-jumbo
frame works on any alignments I guess this DMA limitation for RX
buffer could be jumbo frame specific one.  Also I'm not sure
whether this DMA limitation is related with 64bit DMA.  Previously
age(4) disabled 64bit DMA addressing due to silent data corruption.
So we may need more testing on re-enabling 64bit DMA in future.

While I'm here, change mbuf chaining algorithm to use fixed sized
buffer and force software checksum if controller reports length
error. According to QAC, RFD is not updated at all for jumbo frame
so it works just like alc(4) controllers.  This change also added
alignment fixup for strict alignment architectures.  Because I'm
not aware of any non-x86 machines that use age(4) controllers it's
just for completeness at this moment.

Wit this change, jumbo frame should work with age(4).

Tested by:	Christian Gusenbauer < c47g <> gmx dot at >
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add gpio driver and update dts and kernel config accordingly.

Approved by: gonzo@


git-svn-id: svn://svn.freebsd.org/base/head@246342 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
crunchgen: Permit use of alternative linkers.

Submitted by:	Pete Chou
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: Use EXT2_LINK_MAX instead of LINK_MAX

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: Use nitems().

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: Correct off-by-one errors in FFTODT() and DDTOFT().

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246349 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: Remove useless rootino local variable.

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246350 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: Remove unused em_e2fsb definition..

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: move assignment where it is not dead.

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246352 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove two dead assignments and
make use of sc more explicit and clear

Submitted by: Christoph Mallon
Approved by: gonzo@


git-svn-id: svn://svn.freebsd.org/base/head@246353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Build clang for little-endian arm by default. Due to size issues when built
with gcc disable CLANG_FULL for now.


git-svn-id: svn://svn.freebsd.org/base/head@246354 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Load the pfsync module if necessary.

Reviewed by:	glebius@
MFC after:	1 week


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


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


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