The holding buffer logic needs to be used for _all_ transmission, not
just "when the queue is busy."

After talking with the MAC team, it turns out that the linked list
implementation sometimes will not accept a TxDP update and will
instead re-read the link pointer.  So even if the hardware has
finished transmitting a chain and has hit EOL/VEOL, it may still
re-read the link pointer to begin transmitting again.

So, always set ATH_BUF_BUSY on the last buffer in the chain (to
mark the last descriptor as the holding descriptor) and never
blank the axq_link pointer.

Tested:

* AR5416, STA mode

TODO:

* much more thorough testing with the pre-11n NICs, just to verify
  that they behave the same way.
* test TDMA on the 11n and non-11n hardware.


git-svn-id: svn://svn.freebsd.org/base/head@250229 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libkvm: Use O_CLOEXEC instead of separate fcntl(F_SETFD) call.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250230 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libkvm: Make second /dev/null file descriptor close-on-exec as well.

MFC after:	1 week


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


git-svn-id: svn://svn.freebsd.org/base/head@250233 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add entry for errno ECAPMODE.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@250234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Introduce and use new flag -L to mount for mounting only late filesystems.

Previously, rc.d/mountlate mounted *all* filesystems, causing problems with
background NFS mounts being mounted twice.

PR:		conf/137629
Submitted by:	eadler (original concept)
Reviewed by:	mjg
Approved by:	hrs


git-svn-id: svn://svn.freebsd.org/base/head@250235 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Completely rewrite the interface to smbdev switching from dev_clone
to cdevpriv(9). This commit changes the semantic of mount_smbfs
in userland as well, which now passes file descriptor in order to
to mount a specific filesystem istance.

Reviewed by:	attilio, ed
Tested by:	martymac


git-svn-id: svn://svn.freebsd.org/base/head@250236 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Overhaul locking in netsmb, getting rid of the obsolete lockmgr() primitive.
This solves a long standing LOR between smb_conn and smb_vc.

Tested by:	martymac, pho (previous version)


git-svn-id: svn://svn.freebsd.org/base/head@250237 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change VM_OBJECT_LOCK/UNLOCK() -> VM_OBJECT_WLOCK/WUNLOCK() to reflect
the recent switch of the vm object lock to a rwlock.

Reported by:	attilio


git-svn-id: svn://svn.freebsd.org/base/head@250238 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Kill yet another reference to UserConfig


git-svn-id: svn://svn.freebsd.org/base/head@250239 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Fix exit status when ip6addrctl_verbose=yes [*]
- Use the absolute pathname for ip6addrctl.
- Use "install" instead of "add" to reduce the number of invocations.

Reported by:	Tatsuki Makino [*]
PR:		conf/175006 [*]
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250240 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a few xargs tests related to -0, -n and quoting.


git-svn-id: svn://svn.freebsd.org/base/head@250242 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
If the kernel is compiled with VMIMAGE support, the first attempt of
mounting smbfs share will cause a panic. Fix setting setting/restoring
vnet context when needed.

PR:		kern/168077
Submitted by:	dteske


git-svn-id: svn://svn.freebsd.org/base/head@250243 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mdoc: missing comma in .Dd macro.


git-svn-id: svn://svn.freebsd.org/base/head@250244 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document that the return type is different from 1003.1-2008.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250245 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use unified method for accessing / updating cached rule pointers.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250246 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing vdrop() in error case.

Submitted by:	Fahad (mohd.fahadullah@isilon.com)
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250247 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos.


git-svn-id: svn://svn.freebsd.org/base/head@250250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use FF02:0:0:0:0:2:FF00::/104 prefix for IPv6 Node Information Group
Address.  Although KAME implementation used FF02:0:0:0:0:2::/96 based on
older versions of draft-ietf-ipngwg-icmp-name-lookup, it has been changed
in RFC 4620.

The kernel always joins the /104-prefixed address, and additionally does
/96-prefixed one only when net.inet6.icmp6.nodeinfo_oldmcprefix=1.
The default value of the sysctl is 1.

ping6(8) -N flag now uses /104-prefixed one.  When this flag is specified
twice, it uses /96-prefixed one instead.

Reviewed by:		ume
Based on work by:	Thomas Scheffler
PR:			conf/174957
MFC after:		2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250251 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
EABI unwinder enhancements... When it's time to stop unwinding, don't
exit the loop until after printing info about the current frame.  Also,
if executing the unwind function for a frame doesn't change the values of
any registers, log that and exit the loop rather than looping endlessly.


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