Add gjb as my co-mentor now that I have a full doc/www bit.

Approved by:	remko (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@245463 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove the use of the ifnet send queue and if_start() in the power
save queue code.

Instead, use if_transmit() directly - and handle the cases where frame
transmission fails.

I don't necessarily like this and I think at this point the M_ENCAP check,
node freeing upon fail and the actual if_transmit() call should be done
in methods in ieee80211_freebsd.c, but I digress slightly..

This removes one of the last few uses of if_start() and the ifnet
if_snd queue.  The last major offender is ieee80211_output.c, where
ieee80211_start() implements if_start() and uses the ifnet queue
directly.

(There's a couple of gotchas here, where the if_start pointer is
compared to ieee80211_start(), but that's a later problem.)


git-svn-id: svn://svn.freebsd.org/base/head@245464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Implement frame (data) transmission using if_transmit(), rather than
if_start().

This removes the overlapping data path TX from occuring, which
solves quite a number of the potential TX queue races in ath(4).
It doesn't fix the net80211 layer TX queue races and it doesn't
fix the raw TX path yet, but it's an important step towards this.

This hasn't dropped the TX performance in my testing; primarily
because now the TX path can quickly queue frames and continue
along processing.

This involves a few rather deep changes:

* Use the ath_buf as a queue placeholder for now, as we need to be
  able to support queuing a list of mbufs (ie, when transmitting
  fragments) and m_nextpkt can't be used here (because it's what is
  joining the fragments together)

* if_transmit() now simply allocates the ath_buf and queues it to
  a driver TX staging queue.

* TX is now moved into a taskqueue function.

* The TX taskqueue function now dequeues and transmits frames.

* Fragments are handled correctly here - as the current API passes
  the fragment list as one mbuf list (joined with m_nextpkt) through
  to the driver if_transmit().

* For the couple of places where ath_start() may be called (mostly
  from net80211 when starting the VAP up again), just reimplement
  it using the new enqueue and taskqueue methods.

What I don't like (about this work and the TX code in general):

* I'm using the same lock for the staging TX queue management and the
  actual TX.  This isn't required; I'm just being slack.

* I haven't yet moved TX to a separate taskqueue (but the taskqueue is
  created); it's easy enough to do this later if necessary.  I just need
  to make sure it's a higher priority queue, so TX has the same
  behaviour as it used to (where it would preempt existing RX..)

* I need to re-review the TX path a little more and make sure that
  ieee80211_node_*() functions aren't called within the TX lock.
  When queueing, I should just push failed frames into a queue and
  when I'm wrapping up the TX code, unlock the TX lock and
  call ieee80211_node_free() on each.

* It would be nice if I could hold the TX lock for the entire
  TX and TX completion, rather than this release/re-acquire behaviour.
  But that requires that I shuffle around the TX completion code
  to handle actual ath_buf free and net80211 callback/free outside
  of the TX lock.  That's one of my next projects.

* the ic_raw_xmit() path doesn't use this yet - so it still has
  sequencing problems with parallel, overlapping calls to the
  data path.  I'll fix this later.

Tested:

* Hostap - AR9280, AR9220
* STA - AR5212, AR9280, AR5416


git-svn-id: svn://svn.freebsd.org/base/head@245465 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add some new debugging options for the ath(4) and ath_hal(4) drivers.


git-svn-id: svn://svn.freebsd.org/base/head@245466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cxgbe/tom: Add support for fully offloaded TCP/IPv6 connections (active open).

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245467 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cxgbe/tom: Add support for fully offloaded TCP/IPv6 connections (passive open).

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245468 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not autotune ncallout to be greater than 18508.

When maxusers was unrestricted and maxfiles was allowed to autotune
much higher the result was that ncallout which was based on maxfiles
and maxproc grew much higher than was needed.

To fix this clip autotuning to the same number we would get with
the old maxusers algorithm which would stop scaling at 384
maxusers.

Growing ncalout higher is not likely to be needed since most consumers
of timeout(9) are gone and any higher value for ncallout causes the
callwheel hashes to be much larger than will even be needed for
most applications.

MFC after:      1 month

Reviewed by:	mav


git-svn-id: svn://svn.freebsd.org/base/head@245469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not require a filter-only interrupt handler for puc ports that are not
serial devices (such as printer ports).  This allows ppc devices attached
to puc to correctly setup an interrupt handler and work.

Tested by:	Andre Albsmeier  Andre.Albsmeier@siemens.com
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't define rel/acq variants of some atomic operations as the regular
version for armv6.


git-svn-id: svn://svn.freebsd.org/base/head@245475 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- More properly handle interrupted NFS requests on an interruptible mount
  by returning an error of EINTR rather than EACCES.
- While here, bring back some (but not all) of the NFS RPC statistics lost
  when krpc was committed.

Reviewed by:	rmacklem
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Only spin on the blocked_lock for SCHED_ULE+SMP, as it's done on the other
arches.


git-svn-id: svn://svn.freebsd.org/base/head@245477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use armv7_drain_writebuf() and armv7_context_switch, instead of the arm11
variants.


git-svn-id: svn://svn.freebsd.org/base/head@245478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Reports pools which have a removed l2cache disk under -x as this is what
happens when a cache device is dropped for any reason.

Reviewed by:	pjd
Approved by:	pjd (mentor)
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@245479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add D-Link DFE-520TX rev C1.

Tested by:	Ruslan Makhmatkhanov < cvs-src <> yandex dot ru >
MFC After:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add D-Link DFE-520TX (rev. C1) to HARDWARE section.

MFC After:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Avoid clobbering errno with a call to fprintf

PR:		bin/173923
Submitted by:	Garrett Cooper <yanegomi@gmail.com>
Approved by:	cperciva
MFC After:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@245491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct prefix for "locally installed things"

Approved by:	cperciva
MFC After:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@245492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused variables

Approved by:	cperciva
MFC After:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@245493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Free memory before exiting in order to silence a warning from the clang
static analyzer

Approved by:	cperciva
MFC after: 	3 days


git-svn-id: svn://svn.freebsd.org/base/head@245494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove the filtering of the acceptable mount options for nullfs, added
in r245004.  Although the report was for noatime option which is
non-functional for the nullfs, other standard options like nosuid or
noexec are useful with it.

Reported by:	Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au>
MFC after:	3 days


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