freebsd with flexible iflib nic queues
Go to file
Adrian Chadd 9afc11b224 First pass of adding transmit parameters as an option for outbound
802.11 mbufs.

The raw transmit path currently doesn't make it easy to queue
these frames:

* there's no node reference stored in the mbuf, like for the normal
  path, and
* the bpf supplied raw transmit parameters (rate, rts/cts, etc)
  are passed in as an argument, not as an mbuf tag.

In order to support driver queuing of these frames, we need to
be able to put the above into the mbuf before the driver gets it,
so the driver /can/ put it into a queue if needed.

Use an mbuf tag and for now just verbatim copy the bpf parameters
into it.  Later on it may grow to include more options but this
will do for now.

Why would you want to queue raw frames? Well, in the case of
iwn(4), we can't send the firmware frames to transmit before
we hear a beacon - the firmware will consider passive channels
as unavailable until it hears a beacon.  The firmware "passive"
channel state is cleared upon each RXON command, which is sent to
update association status.  So, when we attempt association and
authorisation, the RXON command causes the firmware to clear out
what it's already seen, and so we have to wait for a beacon before
we can transmit.

Before people get overly excited - this alone doesn't "fix" 5GHz
operation - it just makes it (more) possible.

The aim here is to convert all the drivers over to use a raw_xmit()
API that doesn't include the node and params - instead they'd get
those from the mbuf.  Then raw_xmit() becomes just a side-channel
version of the normal transmit path for management traffic.

MFC after:	2 weeks
Sponsored by:	Norse Corp, Inc.
2015-06-04 06:30:39 +00:00
bin Remove unused variable, this variable fmtstr was introduced at revision r225868 2015-06-01 06:00:04 +00:00
cddl lockstat(1): document the -V option. 2015-05-25 01:18:46 +00:00
contrib Replace the gunzip(1) system by a minimalistic zlib based implementation. 2015-06-03 13:32:28 +00:00
crypto Import new moduli from OpenBSD. Although there is no reason to distrust 2015-05-26 19:46:41 +00:00
etc Upgrade our copy of clang and llvm to 3.6.1 release. 2015-05-25 13:43:03 +00:00
games Correct grdc(1) 12-hour display between 12:00 and 13:00 2015-06-02 20:53:17 +00:00
gnu ntp is now again libreadline free, so only build libreadline for gdb 2015-05-25 20:29:35 +00:00
include Remove clause 3 and 4 from the license 2015-05-21 08:38:25 +00:00
kerberos5 Make kerberos use the same sqlite libraries as other sqlite consumer. 2015-05-20 18:56:29 +00:00
lib Remove unused variable and silence clang warnings. 2015-06-04 02:50:13 +00:00
libexec ypxfr(8): Use the correct enum member for checking yp_errno. 2015-05-31 22:20:36 +00:00
release Use the new pw(8) '-R' option to create the users/groups. 2015-06-03 19:19:25 +00:00
rescue Significant upgrades to sa(4) and mt(1). 2015-02-23 21:59:30 +00:00
sbin Remove unused variables reported by clang. 2015-06-02 09:05:45 +00:00
secure Add the openssl header for arm64. As it is based on MACHINE_CPUARCH it 2015-03-24 14:16:14 +00:00
share In r282297 \fC was wrong changed to \fCW.) when it should have been \fCW 2015-06-03 20:04:39 +00:00
sys First pass of adding transmit parameters as an option for outbound 2015-06-04 06:30:39 +00:00
tests Append to SUBDIR, not set it 2015-05-31 22:24:29 +00:00
tools Switch to mandoc's version of makewhatis(8), whatis(1), apropos(1) utilities. 2015-05-30 17:41:37 +00:00
usr.bin Replace the gunzip(1) system by a minimalistic zlib based implementation. 2015-06-03 13:32:28 +00:00
usr.sbin Document pw(8) '-R' option, added in r283961. 2015-06-03 19:17:45 +00:00
.arcconfig Phabricator: enable "history.immutable": 2015-04-30 00:27:53 +00:00
.arclint phabricator related changes: 2015-04-20 20:33:22 +00:00
COPYRIGHT Bump copyright year. 2014-12-31 10:00:43 +00:00
LOCKS
MAINTAINERS Remove cokane@ from MAINTAINERS for 3dfx(4)/tdfx(4) because their email 2014-11-25 05:25:12 +00:00
Makefile Don't add arm64 to universe builds if the user provided a TARGETS list 2015-04-28 17:13:05 +00:00
Makefile.inc1 Revert r283938 it is not needed anymore and broken 2015-06-03 13:43:04 +00:00
ObsoleteFiles.inc Create a separate kobj interface for leaf-driver PCI IOV methods. 2015-05-28 22:01:50 +00:00
README README: changes and fixups 2015-04-19 07:16:44 +00:00
UPDATING Upgrade our copy of clang and llvm to 3.6.1 release. 2015-05-25 13:43:03 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree.  See build(7)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html