Fix possible spurious sbunlock in sctp_sorecvmsg.

Reviewed by:	tuexen
Approved by:	trasz (mentor)
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242680 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Extend the prior commit to use the generic SCSI command building
  function use that for JBOD and Thunderbolt disk write command.  Now
  we only have one implementation in mfi.
- Fix dumping on Thunderbolt cards.  Polled IO commands do not seem to
  be normally acknowledged by changing cmd_status to MFI_STAT_OK.
  In order to get acknowledgement of the IO is complete, the Thunderbolt
  command queue needs to be run through.  I added a flag MFI_CMD_SCSI
  to indicate this command is being polled and to complete the
  Thunderbolt wrapper and indicate the result.  This flag needs to be
  set in the JBOD case in case if that us using Thunderbolt card.
  When in the polling loop check for completed commands.
- Remove mfi_tbolt_is_ldio and just do the check when needed.
- Fix an issue when attaching of disk device happens when a device is
  already scheduled to be attached but hasn't attached.
- add a tunable to allow raw disk attachment to CAM via:
        hw.mfi.allow_cam_disk_passthrough=1
- fixup aborting of commands (AEN and LD state change).  Use a generic
  abort function and only wait the command being aborted not both.
  Thunderbolt cards don't seem to abort commands so the abort times
  out.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242681 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The first line must contain "Content-Type:". Move the $FreeBSD$
keyword line to the comment block underneath.

Submitted by:	Garrett Cooper <yanegomi@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242683 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove -L<path> from LDADD, it doesn't belong there.
Add it to LDFLAGS instead.

Submitted by:   Garrett Cooper <yanegomi@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Hook in new files menusets.4th and manual.

Approved by:	adrian (co-mentor) (implicit)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242688 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add new HAL configuration features for the updated AR9300 HAL.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242689 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Disable my software queue TIM and PS handling for now.

ps-poll is totally broken in its current form.

This should unbreak things enough to let people use PS-POLL devices,
but leave it in place for me to finish PS-POLL handling.


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242691 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo; s/ouput/output


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
It may happen that pfsync holds the last reference on a state. In this
case keys had already been freed. If encountering such state, then
just release last reference.

Not sure this can happen as a runtime race, but can be reproduced by
the following scenario:

- enable pfsync
- disable pfsync
- wait some time
- enable pfsync


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242693 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge rev. 1.125 from OpenBSD:
  date: 2009/06/12 02:03:51;  author: dlg;  state: Exp;  lines: +59 -69
  rewrite the way states from pfsync are merged into the local state tree
  and the conditions on which pfsync will notify its peers on a stale update.

  each side (ie, the sending and receiving side) of the state update is
  compared separately. any side that is further along than the local state
  tree is merged. if any side is further along in the local state table, an
  update is sent out telling the peers about it.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Patch to improve USB serial console.

MFC after:	1 weeks
Submitted by:	Bruce Evans


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242695 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document all of the options that wpa_supplicant accepts.

PR:		docs/171755
Reviewed by:	gavin
Approved by:	gabor (mentor)
MFC after:	5 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242696 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add devd.conf(5) and devd(8) to SEE ALSO xrefs.  Give users a pointer to
seemingly mysterious actions that are not done by ifconfig itself, but
by devd triggering on events caused by ifconfig.

PR:		docs/173405
Submitted by:	Mateusz Kwiatkowski <mateusz.kwiatkowski@atlashost.eu>
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't compile in my (not yet committed) ath_alq code unless ATH_DEBUG_ALQ
is defined.

This will unbreak ATH_DEBUG builds.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Minor cosmetic changes to bring atmel's initarm and the default
initarm for FDT closer together.  More to follow.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The tty_inwakeup callback appears to be called both locked and unlocked.
Handle the required locking automatically for now.

MFC after:	1 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242702 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add lock asserts instead of "auto-locking".

MFC after:	1 weeks
Suggested by:	ed @


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242703 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove fifteen-year-old notes on media selection (suggested by simon@).
Add commas after "e.g." and "i.e.".  Change "silent" to "silence" in
wireless create section (reviewed by adri@).

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@242704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Actually change "silent" to "silence" this time (reviewed by adri@).

MFC after:	1 week


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