Debugging changes!

* That lock isn't actually held during reset - just the whole TX/RX path
  is paused.  So, remove the assertion.

* Log the TX queue status - how many hardware frames are active in the
  MAC and whether the queue is active.


git-svn-id: svn://svn.freebsd.org/base/head@250041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
A transition period of more than two years is more than enough:
Remove the compatibility code added in 2011-02-10.

This change is not intended for MFC

Reviewed by:	imp


git-svn-id: svn://svn.freebsd.org/base/head@250048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
explicitly mark some variables as const


git-svn-id: svn://svn.freebsd.org/base/head@250049 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing braces.

Submitted by:	Sascha Wildner <saw online de>
Obtained from:	DragonFly
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250050 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
whitespace changes:
remove $Id$ lines, and add blank lines around some #if / #elif /#endif


git-svn-id: svn://svn.freebsd.org/base/head@250052 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Only cleanup CMI-related state on detach if the system supports CMI.

PR:		kern/163268
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250053 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
whitespace - document alternative locking under linux


git-svn-id: svn://svn.freebsd.org/base/head@250054 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a bug that allows NFS clients to issue READDIR on files.

PR:		kern/178016
Security:	CVE-2013-3266
Security:	FreeBSD-SA-13:05.nfsserver


git-svn-id: svn://svn.freebsd.org/base/head@250055 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a -Z option which zeroes unused blocks.  It can be combined with -E,
in which case unused blocks are first zeroed and then erased.

Reviewed by:	mckusick
MFC after:	3 weeks


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


git-svn-id: svn://svn.freebsd.org/base/head@250057 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Properly terminate the result string for intermediate results, to
allow the final strcpy() to start at the intended place.

Reported and tested by:	pgj
Pointy hat to:	kib
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@250075 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a new driver to support the Intel Non-Transparent Bridge(NTB).

The NTB allows you to connect two systems with this device using a PCI-e
link. The driver is made of two modules:
 - ntb_hw which is a basic hardware abstraction layer for the device.
 - if_ntb which implements the ntb network device and the communication
   protocol.

The driver is limited at the moment to CPU memcpy instead of using DMA, and
only Back-to-Back mode is supported. Also the network device isn't full
featured yet. These changes will be coming soon. The DMA change will also
bring in the ioat driver from the project branch it is on now.

This is an initial port of the GPL/BSD Linux driver contributed by Jon Mason
from Intel. Any bugs are my contributions.

Sponsored by: Intel
Reviewed by: jimharris, joel (man page only)
Approved by: jimharris (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@250079 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
xenstore/xenstore.c:
	Prevent access to invalid memory region when listing an empty
	directory in the XenStore.

Reported by:	Bei Guan
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250081 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Sync from git - ah_config is in 'ath_hal', not 'ath_hal_private' on
FreeBSD.


git-svn-id: svn://svn.freebsd.org/base/head@250082 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use a separate mutex for the receive path instead of overloading the softc
mutex for this purpose.

Reviewed by:	grehan


git-svn-id: svn://svn.freebsd.org/base/head@250083 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Reset some more softc state when the guest resets the virtio network device.

Obtained from:	NetApp


git-svn-id: svn://svn.freebsd.org/base/head@250086 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Oh wow.. disassociate/disown any connection with cvs.


git-svn-id: svn://svn.freebsd.org/base/head@250087 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Pass a format string to kproc_create() [1] and thus fix the build with
-DBKTR_NEW_MSP34XX_DRIVER and -Wformat-security.
This also allows to eliminates a superfluous malloc/snprintf/free on
intermediate buffer.

PR:		kern/175546
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250088 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cxgbe(4): Some updates to shared code.

Obtained from:	Chelsio
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Provide accurate ifmedia information so that 40G ports/transceivers are
  displayed properly in ifconfig, etc.

- Use the same number of tx and rx queues for a 40G port as for a 10G port.

MFC after:	1 week


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