Make the addition of the d_gone binary compatible.  This allows
storage drivers compiled for 9.0 to work on 9.1 and preserves the ABI
for disks.

Reviewed by:	scottl, ken
Approved by:	re@ (kensmith)
MFS after:	releng/9.1 gets sorted


git-svn-id: svn://svn.freebsd.org/base/stable/9@239148 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239228: Build modules along with the XENHVM kernels.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r232197 (on behalf of phk):
Also call the low-level driver if ->c_iflag & (IXON|IXOFF|IXANY) changes.

Uftdi(4) examines (c_iflag & (IXON|IXOFF)) to control hw XON-XOFF support.
This is obviously no good, if changes to those bits are not communicated
down the stack.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r238969:
Fix kernel panic on `camcontrol reset` for specific target, caused by
uninitialized cm_targ in mpssas_action_resetdev().


git-svn-id: svn://svn.freebsd.org/base/stable/9@239415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239216, r239217:

r239216:
 - Remove a leading space that breaks rendering

r239217:
 - Fix source dataset snapshot name in Example 15.
 - Bump date.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239419 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r238183:

  Implement SIOCGIFMEDIA for if_tap(4)

  Appease certain if_tap(4) consumers by providing simulated Ethernet
  media status.

  DragonFly commit 70d9a675bf5441cc854a843ead702d08928c37f3

Obtained from:  DragonFly BSD
Sponsored by:   ADARA Networks


git-svn-id: svn://svn.freebsd.org/base/stable/9@239422 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r238183:

  Correct BUGS description of static buffer use

  Since r142667 strerror has unconditionally returned a pointer to a
  static buffer.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r238718: Quirk MS keyboard so that function keys work

  The function keys on a Microsoft Natural Egronomic Keyboard 4000 have been
  repurposed as "Help", "Undo", "Redo" etc., and a special "F Lock" key is
  required to return them to their normal purpose.

  This change enables the UQ_KBD_BOOTPROTO quirk for the MS Natural 4000
  keyboard to get the keys working again.  More extensive changes to the USB
  keyboard infrastructure would be needed to fully support the "F Lock" mode
  and the extended keys on this keyboard.

PR:             usb/116947


git-svn-id: svn://svn.freebsd.org/base/stable/9@239425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r232844: Remove extraneous log message

  When ntp switched between PLL and FLL mode it produced a log message
  "kernel time sync status change %04x".  This issue is reported in ntp
  bug 452[1] which claims that this behaviour is normal and the log
  message isn't necessary.  I'm not sure exactly when it was removed, but
  it's gone in the latest ntp release (4.2.6p5).

  [1] http://bugs.ntp.org/show_bug.cgi?id=452


git-svn-id: svn://svn.freebsd.org/base/stable/9@239427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239130: Minor style(9) improvement


git-svn-id: svn://svn.freebsd.org/base/stable/9@239428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r238844: Add version so others can depend on this module


git-svn-id: svn://svn.freebsd.org/base/stable/9@239429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r236157: Add IPPROTO_MPLS (rfc4023) IP protocol definition

There are currently no in-tree consumers; I'm adding it now for use by
vendor code.  This matches the change OpenBSD made while implementing
MPLS in gif(4).


git-svn-id: svn://svn.freebsd.org/base/stable/9@239430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r232666: Improve multi-line kernel ident parsing

  Instead of blindly grabbing the line with 'Version string' and the
  following one from the core info file, take all lines after 'Version
  string' until the one one that matches the field format in the core info
  file.  This provides compatibility with VendorBSD modifications that have
  a different kernel ident format.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r231973: Avoid error log for transfer stop w/o error code.

A number of tftp clients, including the one in Intel's pxe boot loader,
may intentionally stop a transfer using error code 0 (i.e., EUNDEF).
These are not real errors.  Avoid spamming log files with these by
logging them at level LOG_DEBUG instead.

Discussed on -hackers with an initial patch proposal; this change is an
improved approach suggested by kan@.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r230636:

  pmc_*_initialize may return NULL if the CPU is not supported, so check
  that md is not null before dereferencing it.

PR:             kern/156540


git-svn-id: svn://svn.freebsd.org/base/stable/9@239433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239019: Parse notes only after object structure had been allocated.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239095: Do not add handler to event handlers list until ithread
is created.

In rare event when fast and ithread interrupts share the same vector
and the fast handler was registered first, we can end up trying to
schedule the ithread that is not created yet. The kernel built with
INVARIANTS then triggers an assertion.

Change the order to create the ithread first and only then add the
handler that needs it to the interrupt event handlers list.

Reviewed by: jhb


git-svn-id: svn://svn.freebsd.org/base/stable/9@239436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239253: Pospone the DF_1_NODELETE processing until object DAG is
fully loaded.

Trying to up the reference from the load loop risks missing
dependencies that have not been loaded yet.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239021:

In virstor_ctl_stop(), check for a valid softc before trying to update
metadata.


git-svn-id: svn://svn.freebsd.org/base/stable/9@239441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r239233:

Correct description of minfree to kilobytes rather than blocks.

PR:		125921
Submitted by:	Andre Albsmeier <Andre.Albsmeier@siemens.com>


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