Try harder to make mxge safe for all combinations of INET and INET6

- Re-fix build by restoring local removed in r247151, but protected
  by #if defined(INET) || defined(INET6) so that the compile
  succeeds in the !(INET||INET6) case.

- Protect call to in_pseudo() with an #ifdef INET, to allow
  a kernel to link with mxge when INET is not compiled in.

- Also remove an errant (improperly commented) obsolete debugging printf

Thanks to Glebius for pointing out the !(INET||INET6) build issue.

Sponsored by: Myricom

MFC After: 7 days


git-svn-id: svn://svn.freebsd.org/base/head@247152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Eliminate an unused #define.


git-svn-id: svn://svn.freebsd.org/base/head@247153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add DA_Q_NO_PREVENT quirk for Kingston DataTraveler G3 1.00 USB flash.

PREVENT ALLOW MEDIUM REMOVAL commands return errors on these devices
without returning sense data. In some cases unrelated following commands
start to return errors too, that makes device to be dropped by CAM.


git-svn-id: svn://svn.freebsd.org/base/head@247154 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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.

Sponsored by: Myricom

MFC After: 7 days


git-svn-id: svn://svn.freebsd.org/base/head@247159 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bump mxge copyright.

Sponsored by: Myricom

MFC After: 7 days


git-svn-id: svn://svn.freebsd.org/base/head@247160 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Hide SEMB port of the SiI3826 Port Multiplier by default to avoid extra
errors while it tries to talk via I2C to usually missing external SEP.
There is tunable to enable it back when needed.


git-svn-id: svn://svn.freebsd.org/base/head@247161 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Back out prev. change preventing /sys/sys symlink. It appears my install
was not very recent and not acts like 'ln -h'


git-svn-id: svn://svn.freebsd.org/base/head@247162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't print an empty line for files with no attributes when -q is given for
lsextattr(8).


git-svn-id: svn://svn.freebsd.org/base/head@247164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix command timeout caused by data underrun during fetching ATAPI sense
data, introduced by r246713.  There are two places where ata_request is
filled in ATA_CAM: ata_cam_begin_transaction() and ata_cam_request_sense().
In the first case DMA should be done for addresses from the CCB. In second
case, DMA should be done to the different address, the address of the sense
buffer inside the CCB structure itself.


git-svn-id: svn://svn.freebsd.org/base/head@247165 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Pull in r172354 from upstream clang trunk:

  Refactor the x86 CPU name logic in the driver and pass -march and -mcpu
  flag information down from the Clang driver into the Gold linker plugin
  for LTO. This allows specifying -march on the linker commandline and
  should hopefully have it pass all the way through to the LTO optimizer.

  Fixes PR14697.

Pull in r175919 from upstream clang trunk:

  Driver: Pass down the -march setting down to -cc1as on x86 too.

  The assembler historically didn't make use of any target features, but this has
  changed when support for old CPUs that don't support long nops was added.

This should fix the long nops that still occurred in crt*.o, and
possibly other object files, if the system was compiled for a CPU that
does not support those, such as Geode.

Note that gcc on i386 also does not pass through any -march, -mcpu or
-mtune setting to gas, but this has not caused any trouble yet, because
gas defaults to i386.

Reported by:	lev
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@247166 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/master'