MFC r247396:

Map libraries linked with -Ttext-segment=base_addr at base_addr.
Normal libraries have base address 0 and are unaffected by this change.

PR:		176216
Submitted by:	Damjan Jovanovic <damjan.jov@gmail.com>
Reviewed by:	kib


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247847 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247159
  Improvements for newer mxge nics:

  - Some mxge nics may store the serial number in the SN2 field of the
    EEPROM.  These will also have an SN=0 field, so parse the SN2 field,
    and give it precedence.

  - Skip MXGEFW_CMD_UNALIGNED_TEST on mxge nics which do not require it.
    This saves roughly 10ms per port at device attach time.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247851 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247268:
 Several cleanups and fixes to mxge:

 - Remove vestigial null pointer tests after malloc(..., M_WAITOK).

 - Remove vestigal qualhack union

 - Use strlcpy() instead of the error-prone strncpy() when parsing
   EEPROM and copying strings

 - Check the MAC address in the EEPROM strings more strictly.

 - Expand the macro MXGE_NEXT_STRING() at its only user. Due to a typo,
   the macro was very confusing.

 - Remove unnecessary buffer limit check.  The buffer is double-NUL
   terminated per construction.

PR:             kern/176369
Submitted by:   Christoph Mallon <christoph.mallon gmx.de>


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247853 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247281:

Add i/o error counters to hastd(8) and make hastctl(8) display
them.  This may be useful for detecting problems with HAST disks.

Discussed with and reviewed by: pjd


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247868 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247281, r247345:

r247281:

Add i/o error counters to hastd(8) and make hastctl(8) display
them.  This may be useful for detecting problems with HAST disks.

Discussed with and reviewed by: pjd

r247345:

Fix casting.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247382:
  RX checksum offloading on old Yukon controllers seem to cause more
  problems.  Disable RX checksum offloading on controllers that don't
  use new descriptor format but give chance to enable it with
  ifconfig(8).


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247873 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246246,246254: print compiler version in the kernel banner


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247875 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246247: x86 suspend/resume: suspend pics and pseudo-pics in reverse order


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247876 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246248: cpususpend_handler: mark AP as resumed only after fully
setting up lapic


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247879 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246245,246324: ng_ether: track interface renaming


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246532: zfs_vget, zfs_fhtovp: properly handle the z_shares_dir object


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247889 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r247854:
Fix compile warning by including ctype.h for isdigit().


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247897 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r213713 by obrien: Correct regression test to not show a false positive
when run as root.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247901 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246522: sh: Simplify mksyntax and make it fit for cross-compiling.

Now it outputs fixed files, which use constants provided by the C standard
library to determine appropriate values for the target machine.

Before, mksyntax inspected the host machine which resulted in subtle
breakage if e.g. char is signed on the host and unsigned on the target such
as when cross-compiling on x86 for ARM.

Tested by:	ian (this patch)
Submitted by:	Christoph Mallon (patch for head)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247902 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r238072,r238360,r240430,r241469,r241470,r241495,r244136,r244200

Sync VirtIO with HEAD.

 - r238072: Do not include <sys/types.h> in the local headers.
 - r238360: Various VirtIO improvements
 - r240430: No need to leak these into the includer's namespace.
 - r241469: virtqueue: Fix non-indirect virtqueues
 - r241470: Add Virtio SCSI driver
 - r241495: Fix build with PAE enabled
 - r244136: Remove duplicated lines
 - r244200: Start taskqueues threads after attach cannot fail

Approved by:	grehan (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247907 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r227652,r230450,r230461,r241470

Include/update the VirtIO man pages.

 -r227652: Initial import
 -r230450: General cleanup
 -r230461: Connect VirtIO-related manpages to the build
 -r241470: Virtio SCSI driver man page

Approved by:	grehan (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247908 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245362

    Add VirtIO to i386 and amd64 GENERIC

Approved by:	grehan (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247909 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r235360:

Provide in the association change notification the received ABORT chunk
if case of SCTP_COMM_LOST or SCTP_CANT_STR_ASSOC as required by RFC 6458.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r235402:

Ensure the user can read COMM_LOST notifications on 1-to-1 style sockets.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/8@247921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r235403:

Use ECONNABORTED in cases where the ABORT was sent to the peer.


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