MFV:	r250336

Fix for _INI regression introduced in version 20130328.


git-svn-id: svn://svn.freebsd.org/base/head@250341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add libusb_get_port_path wrapper

This follows the libusbx API reference at
http://libusbx.sourceforge.net/api-1.0/group__dev.html

Reviewed by: hselasky@


git-svn-id: svn://svn.freebsd.org/base/head@250342 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Implement STBC receive frame statistics.

The AR9280 and later can receive STBC.  This adds some statistics
tracking to count these frames.

A patch to athstats will be forthcoming.


git-svn-id: svn://svn.freebsd.org/base/head@250346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert a previous commit - this is causing hardware errors.

I'm not sure why this is failing.  The holding descriptor should be being
re-read when starting DMA of the next frame.  Obviously something here
isn't totally correct.

I'll review the TX queue handling and see if I can figure out why this
is failing.  I'll then re-revert this patch out and use the holding
descriptor again.


git-svn-id: svn://svn.freebsd.org/base/head@250355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This shouldn't have made it into this commit, sorry.


git-svn-id: svn://svn.freebsd.org/base/head@250356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update copyright date.


git-svn-id: svn://svn.freebsd.org/base/head@250357 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix-up r250338 by completing the removal of VM_NDOMAIN in favor of
MAXMEMDOM.
This unbreak builds.

Sponsored by:	EMC / Isilon storage division
Reported by:	adrian, jeli


git-svn-id: svn://svn.freebsd.org/base/head@250361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
A driver for Intel Rapid Start Technology ACPI device.
Note that it is just for 'Advanced' configuration for Rapid start technology.


git-svn-id: svn://svn.freebsd.org/base/head@250363 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Manual page for acpi_rapidstart(4) driver.

----
> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

AM   acpi_rapidstart.4


git-svn-id: svn://svn.freebsd.org/base/head@250364 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
When the accept queue is full print the number of already pending
new connections instead of by how many we're over the limit, which
is always 1.

Noticed by:	jmallet
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250365 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
s/Numer/Number/

Submitted by:	Jeremy Chadwick <jdc@koitsu.org>


git-svn-id: svn://svn.freebsd.org/base/head@250371 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
According to the documentation, on Linux, cancel_delayed_work() does not
do drain (flush_workqueue() in Linux terms) but instead returns true if
the work was removed before it is run, or false otherwise.

Simulate this by removing the taskqueue_drain() and return the value
derived from taskqueue_cancel()'s return value.

This would solve a witness warning caused by calling taskqueue_drain()
with a non-sleepable lock held, like:

taskqueue_drain with the following non-sleepable locks held:
exclusive rw lle (lle) r = 0 (0xfffffe001450b410) locked @
/usr/src/sys/netinet/in.c:1484
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffff848d4f7690
kdb_backtrace() at kdb_backtrace+0x39/frame 0xffffff848d4f7740
witness_warn() at witness_warn+0x4a8/frame 0xffffff848d4f7800
taskqueue_drain() at taskqueue_drain+0x3a/frame 0xffffff848d4f7840
set_timeout() at set_timeout+0x4a/frame 0xffffff848d4f7860
netevent_callback() at netevent_callback+0x16/frame 0xffffff848d4f7870
arpintr() at arpintr+0x9b5/frame 0xffffff848d4f7930

This do not affect kernel without OFED compiled in.

Reported by:	Garrett Cooper <yaneurabeya gmail com>
		(who also tested an earlier version of this patch,
		but bugs are mine)
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250374 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
No need to set if_mtu since it automatically updated by ether_ifattach().
Use  if_initbaudrate() to set baudrate.
Add IFCAP_LINKSTATE to if_capabilities.

Submitted by:	David C Somayajulu <davidcs@freebsd.org>
Approved by:	George Neville-Neil <gnn@freebsd.org>


git-svn-id: svn://svn.freebsd.org/base/head@250375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow the use of lowercase 'yes'

PR:		bin/178422
Submitted by:	Garrett Cooper <yaneurabeya@gmail.com>


git-svn-id: svn://svn.freebsd.org/base/head@250377 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make errbuf optional, so if a caller is not interested in an error
message she can pass NULL (procstat(1) already does this).

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250378 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
HAST module for bsnmpd(1).

Reviewed by:	harti, pjd
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250379 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Register OID for HAST module.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250380 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add the ability to change the vlan operation mode.

This adds a vlan capability field to etherswitch_info structure and some
definitions of ports flags.

It adds the support to global config parameters which right now is used
only to switch between the vlan modes, but it is intended to be extended
to support the setup of others parameters (STP, mirror, etc.).

Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>
Reviewed by:	ray


git-svn-id: svn://svn.freebsd.org/base/head@250381 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add vlan configuration support to etherswitchcfg.

This adds the support to the config keyword (vlan operation mode), ports
flags, prints the vlan mode and vlan capabilities. It also adds some basic
information to usage() and support the keyword 'help' as a shortcut to
usage(). The manual page is also updated with the new options.

Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>
Reviewed by:	ray


git-svn-id: svn://svn.freebsd.org/base/head@250382 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correctly mark the CPU port.

Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>
Reviewed by:	ray


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