Add a missing break.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
When flushing packets from the powersave queue, make sure that
m_nextpkt is NULL before passing it up to the parent transmit
method.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254236 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add optional support for default override of standard setup; but only if
corresponding functions are provided. If override function does not exist,
boot remains unmodified. This patch should not result in any changes.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254237 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct an EHCI register write.

MFC after:	1 week
Reported by:	aseem.jolly@gmail.com


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254238 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix some signed comparison compile warnings.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254241 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Try to fix build of 32-bit compatibility USB support for FreeBSD and
Linux targets without breaking the existing IOCTL API.

- Remove some not-needed header file inclusions.

- Wrap a long line.

MFC after:	1 week
Reported by:	Damjan Jovanovic <damjan.jov@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254243 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Give up on using iconv to convert to UTF-8 at build time.  I don't see any
practical way to make iconv(1) as a build tool.  Instead pre-convert.
This gives us UTF-8 nvi catalogs even on systems without iconv enabled.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254244 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
It seems the pre-commit checker doesn't detect illegal character sets. Fix.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254245 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make the features a 64-bit value instead of 32-bit.
This will allow an easier integration of the support
for NDATA.
While there, do also some minor cleanups.
Obtained from:	rrs@
MFC after: 2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254248 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Temporarily revert sendmail 8.14.7 change to getipnodebyname() flags to
prevent problems between the resolver and Microsoft DNS servers with
AAAA lookups.  The upstream open source project will work on a more
permanent fix for the next release.  Issue noted by Pavel Timofeev.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254251 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the formatting of the error message.

The G_MIRROR_DEBUG() macro already appends a newline. Also, most of the
log messages emitted by gmirror start with an uppercase letter.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254252 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
r253460 accidentally some moderately expensive debugging code, even
when debugging isn't enabled.  Work around this.

Submitted by:	mav
Obtained from:	Netflix
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254253 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add brace missing in r254253.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254257 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make check for unknown login class actually work.  Previously, using the "-c" option
with login class not defined in login.conf(5) would silently fail, resulting in using
the default login class.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254259 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add read-only support for extents in ext2fs.

Basic support for extents was implemented by Zheng Liu as part
of his Google Summer of Code in 2010. This support is read-only
at this time.

In addition to extents we also support the huge_file extension
for read-only purposes. This works nicely with the additional
support for birthtime/nanosec timestamps and dir_index that
have been added lately.

The implementation may not work for all ext4 filesystems as
it doesn't support some features that are being enabled by
default on recent linux like flex_bg. Nevertheless, the feature
should be very useful for migration or simple access in
filesystems that have been converted from ext2/3 or don't use
incompatible features.

Special thanks to Zheng Liu for his dedication and continued
work to support ext2 in FreeBSD.

Submitted by:	Zheng Liu (lz@)
Reviewed by:	Mike Ma, Christoph Mallon (previous version)
Sponsored by:	Google Inc.
MFC after:	3 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254260 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Blank m_nextpkt before passing it up.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254261 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve the MSIX setup code in the drivers, thanks to Marius for
the changes. Make sure that pci_alloc_msix() does give us the vectors
we need and fall back to MSI when it doesn't, also release any that
were allocated when insufficient.

MFC after: 3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254262 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI
command register.  The lazy BAR allocation code in FreeBSD sometimes
disables this bit when it detects a range conflict, and will re-enable
it on demand when a driver allocates the BAR.  Thus, the bit is no longer
a reliable indication of capability, and should not be checked.  This
results in the elimination of a lot of code from drivers, and also gives
the opportunity to simplify a lot of drivers to use a helper API to set
the busmaster enable bit.

This changes fixes some recent reports of disk controllers and their
associated drives/enclosures disappearing during boot.

Submitted by:	jhb
Reviewed by:	jfv, marius, achadd, achim
MFC after:	1 day


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Alter the mq_start routine to do a TRYLOCK and call to the locked routine
rather than just queueing. The former code was an attempt at getting
UDP performance up, but there have been customer reports of problems with it,
so the ixgbe approach seems the best solution for now.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@254264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make sure bootonly.iso for -BETAs and -RCs use the releases/
directory on the FTP mirrors to fetch distributions, since
these are always pushed to releases/ during the release cycle.

MFC after:	3 days
X-MFC-To:	stable/9, releng/9.2


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