Make struct ifnet readable and comprehensible again by grouping
and ordering related variables, fields and locks next to each
other.  Add more comments to variables.

Over time 'ifnet' has accumlated a lot of additional pointers and
functionality in an unstructured way making it quite hard to read
and understand while obfuscating relationships between fields and
variables.

Quantify the structure size and how bloated it has become.

This is only a mechanical change in preparation for upcoming
work to make ifnet opaque to drivers and to separate out the
interface queuing.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix up FreeBSD tag for files not from a vendor branch

Unexpand the tag, remove the fbsd:nokeywords property and add the
svn:keywords property.  This should eliminate the gratuituous diffs
that appear on these files in projects branches.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257462 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Queisce warning about attempting to add char * together and use explicit
array indexing to indicate what is meant to be done


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257463 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Queisce warning about attempting to add char * together and use explicit
array indexing to indicate what is meant to be done


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add myself as a ports committer

Approved by:	bdrewery (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257465 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Integrate github revision 0446821e49224c6a29be28760cc9c4cc14f56d8a as
suggested by upstream

https://github.com/the-tcpdump-group/libpcap/issues/327

Quiesce assignment warnings by use of const


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove 'netstat -i' from crashinfo, as this no longer is supported.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Rate limit (to once per minute) "Listen queue overflow" message in
sonewconn().

Reviewed by:	scottl, lstewart
Obtained from:	Netflix, Inc
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257472 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Ouch, do the shift properly. An uin64_t needs the right postfix when shifting.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257473 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Respect the kern.smp.disabled tunable. When we're scanning the MADT in
ia64_probe_sapics(), we also create PCPU structures for any Local SAPICs
we encounter. When SMP is disabled, this leaves us with partially setup
PCPU structures, which typically results in panics when we're iterating
over CPUs. When SMP is disabled, we now prevent the creation of the
PCPU structures.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257475 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revamp the SoC identity numbering scheme to be more in line with the way
Freescale numbers the chips in the ID registers.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Purge the translation cache of APs before we unleash them. To that
end, make pmap_invalidate_all() global and have it only handle the
local CPU -- i.e. no rendezvous. We do not use pmap_invalidate_all
other than during initialization.
Note that the BSP already purges its TC -- it was missing for APs
only. Nonetheless, this so far seems to eliminate random problems.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add definitions for the register and data that describes the SoC type.
This isn't in the chip reference manuals, it was found in u-boot and
various old mailing list threads.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Convert the if/else list of compatible devices to the table-driven
ofw_bus_search_compatible() routine.  In addition to converting existing
strings to table entries, also add compat strings for the whole imx family.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix lock recursion, triggered by `smartctl -a /dev/adaX`.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257482 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add the Soc- / machine-dependent parts of imx6 support.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The PAL_PTCE_INFO function returns the counts and strides of the
outer and inner loop as 32-bit integers mux'd in 64-bit return
values. Change our data types for the count and stride to match
and simplify/adjust accordingly.
Note that with this change the defaults of the ptc.e parameters
have changed. Since all hardware is supposed to support the PAL
call, there should be no impact. Even ski is unaffected, because
the TC is re-initialized without considering the virtual address.
So, as long as we call ptc.e at least once, we're good. That's
what the new defaults do.
Most processor implementations need but a single ptc.e to purge
the entire TC anyway...


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Install include files for netpfil/pf when requested by the Makefile

Reviewed by:	glebius


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add dts source for imx6 SoCs and for Wandboard boards.

The imx6.dtsi is incomplete, but has enough to support devices that work
right now.  Eventually it will need to be split into several files that
account for the differences between SoCs in the imx6 family.

The board config for Wandboard Dual is untested.  Solo and Quad work, but
one one core is turned on for the quad right now (baby steps).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257486 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use LOG2_ID_PAGE_SIZE again for the identity mapping in regions 6 & 7.
Make the default translation size the same as the PBVM page size to
avoid inserting overlapping translations in the TC. That generally is
very bad.


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