freebsd-skq/sys/net80211
Robert Watson eddfbb763d Build on Jeff Roberson's linker-set based dynamic per-CPU allocator
(DPCPU), as suggested by Peter Wemm, and implement a new per-virtual
network stack memory allocator.  Modify vnet to use the allocator
instead of monolithic global container structures (vinet, ...).  This
change solves many binary compatibility problems associated with
VIMAGE, and restores ELF symbols for virtualized global variables.

Each virtualized global variable exists as a "reference copy", and also
once per virtual network stack.  Virtualized global variables are
tagged at compile-time, placing the in a special linker set, which is
loaded into a contiguous region of kernel memory.  Virtualized global
variables in the base kernel are linked as normal, but those in modules
are copied and relocated to a reserved portion of the kernel's vnet
region with the help of a the kernel linker.

Virtualized global variables exist in per-vnet memory set up when the
network stack instance is created, and are initialized statically from
the reference copy.  Run-time access occurs via an accessor macro, which
converts from the current vnet and requested symbol to a per-vnet
address.  When "options VIMAGE" is not compiled into the kernel, normal
global ELF symbols will be used instead and indirection is avoided.

This change restores static initialization for network stack global
variables, restores support for non-global symbols and types, eliminates
the need for many subsystem constructors, eliminates large per-subsystem
structures that caused many binary compatibility issues both for
monitoring applications (netstat) and kernel modules, removes the
per-function INIT_VNET_*() macros throughout the stack, eliminates the
need for vnet_symmap ksym(2) munging, and eliminates duplicate
definitions of virtualized globals under VIMAGE_GLOBALS.

Bump __FreeBSD_version and update UPDATING.

Portions submitted by:  bz
Reviewed by:            bz, zec
Discussed with:         gnn, jamie, jeff, jhb, julian, sam
Suggested by:           peter
Approved by:            re (kensmith)
2009-07-14 22:48:30 +00:00
..
_ieee80211.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_acl.c convert MALLOC/FREE to malloc/free 2008-12-18 23:00:09 +00:00
ieee80211_action.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_action.h Revamp 802.11 action frame handling: 2009-07-05 17:59:19 +00:00
ieee80211_adhoc.c Revamp 802.11 action frame handling: 2009-07-05 17:59:19 +00:00
ieee80211_adhoc.h Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_ageq.c correctly set the tailq ptr when removing the last item in the q 2009-07-10 02:19:57 +00:00
ieee80211_ageq.h Add ieee80211_ageq; a facility for staging packets that require 2009-07-05 18:17:37 +00:00
ieee80211_amrr.c Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_amrr.h Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_crypto_ccmp.c Correct ieee80211_gettid: 2009-06-09 16:32:07 +00:00
ieee80211_crypto_none.c Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_crypto_tkip.c add tid param to ieee80211_notify_replay_failure to get the correct rsc 2009-06-05 23:10:30 +00:00
ieee80211_crypto_wep.c convert MALLOC/FREE to malloc/free 2008-12-18 23:00:09 +00:00
ieee80211_crypto.c use c99-style initializers 2009-06-07 23:16:10 +00:00
ieee80211_crypto.h add tid param to ieee80211_notify_replay_failure to get the correct rsc 2009-06-05 23:10:30 +00:00
ieee80211_ddb.c Build on Jeff Roberson's linker-set based dynamic per-CPU allocator 2009-07-14 22:48:30 +00:00
ieee80211_dfs.c protect callouts with the com lock 2009-06-09 17:12:19 +00:00
ieee80211_dfs.h Fix definition of IEEE80211_CHAN_MAX; it was defined as 255 but 2008-12-15 01:26:33 +00:00
ieee80211_freebsd.c add tid param to ieee80211_notify_replay_failure to get the correct rsc 2009-06-05 23:10:30 +00:00
ieee80211_freebsd.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_hostap.c Revamp 802.11 action frame handling: 2009-07-05 17:59:19 +00:00
ieee80211_hostap.h Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_ht.c Revamp 802.11 action frame handling: 2009-07-05 17:59:19 +00:00
ieee80211_ht.h Revamp 802.11 action frame handling: 2009-07-05 17:59:19 +00:00
ieee80211_hwmp.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_input.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_input.h split Atheros SuperG support out into it's own file that's included only 2009-03-24 20:39:08 +00:00
ieee80211_ioctl.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_ioctl.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_mesh.c Fix inline function declaration and prototype. 2009-07-13 18:23:58 +00:00
ieee80211_mesh.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_monitor.c count packets 2009-06-02 00:04:10 +00:00
ieee80211_monitor.h Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_node.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_node.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_output.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_phy.c use 1/2 and 1/4 rate phy types to simplify txtime calculation 2009-02-19 17:44:23 +00:00
ieee80211_phy.h add ieee80211_isratevalid 2009-05-29 23:39:16 +00:00
ieee80211_power.c convert MALLOC/FREE to malloc/free 2008-12-18 23:00:09 +00:00
ieee80211_power.h New ap-side power save implementation; the main change is to allow drivers 2008-10-26 01:04:46 +00:00
ieee80211_proto.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_proto.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_radiotap.c purge dead code 2009-06-08 21:16:06 +00:00
ieee80211_radiotap.h update channel flag defs to match _ieee80211.h so cpp doesn't complain 2007-12-13 01:23:40 +00:00
ieee80211_regdomain.c Add modes for 1/2 and 1/4-width channels so we have separate roaming 2009-02-19 05:21:54 +00:00
ieee80211_regdomain.h o add country codes from Atheros regulatory; these are not listed in 2009-01-27 23:09:55 +00:00
ieee80211_rssadapt.c Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_rssadapt.h Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_scan_sta.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_scan.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_scan.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_sta.c Revamp 802.11 action frame handling: 2009-07-05 17:59:19 +00:00
ieee80211_sta.h Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_superg.c distribute sysctl decls so global variables can be made static 2009-05-30 20:11:23 +00:00
ieee80211_superg.h make superg/fast-frames state dynamically-allocated (and indirect off 2009-05-02 20:16:55 +00:00
ieee80211_tdma.c o assert TDMA_MAXSLOTS is 2 so noone tries to blindly increase it 2009-05-30 19:57:31 +00:00
ieee80211_tdma.h Overhaul monitor mode handling: 2009-05-20 20:00:40 +00:00
ieee80211_var.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211_wds.c Add ieee80211_ageq; a facility for staging packets that require 2009-07-05 18:17:37 +00:00
ieee80211_wds.h Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211_xauth.c Multi-bss (aka vap) support for 802.11 devices. 2008-04-20 20:35:46 +00:00
ieee80211.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ieee80211.h Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00