freebsd-src/sys
Sam Leffler 0a915fad5d MFp4 changes to fix locking issues and correct reference
count handling of station entries in hostap mode:

Input path:

o driver is now expected to find the node associated with the
  sender of a received frame; use ic_bss if none is located
o driver passes the (referenced) node into ieee80211_input for
  use within the wlan module and is responsible for cleaning up
  on return
o the antenna state is no longer passed up with each frame; this
  is now considered driver-private state and drivers are responsible
  for keeping it in the driver-private part of a node

Output path:

Revamp output path for management frames to eliminate redundant
locking that causes problems and to correct reference counting
bogosity that occurs when stations are timed out due to inactivity
(in AP mode).  On output the refcnt'd node is stashed in the pkthdr's
recvif field (yech) and retrieved by the driver.  This eliminates
an unref/ref scenario and related node table unlock/lock due to the
driver looking up the node.  This is particularly important when
stations are timed out as this causes a lock order reversal that
can result in a deadlock.  As a byproduct we also reduce the overhead
for sending management frames (minimal).  Additional fallout from
this is a change to ieee80211_encap to return a refcn't node for
tieing to the outbound frame.  Node refcnts are not reclaimed until
after a frame is completely processed (e.g. in the tx interrupt
handler).  This is especially important for timed out stations as
this deref will be the final one causing the node entry to be
reclaimed.

Additional semi-related changes:
o replace m_copym use with m_copypacket (optimization)
o add assert to verify ic_bss is never free'd during normal operation
o add comments explaining calling conventions by drivers for frames
  going in each direction
o remove extraneous code that "cannot be executed" (e.g. because
  pointers may never be null)
2003-08-19 22:17:04 +00:00
..
alpha Fixup the ELF branding information to point to the new home of rtld. 2003-08-17 08:08:38 +00:00
amd64 Fixup the ELF branding information to point to the new home of rtld. 2003-08-17 08:08:38 +00:00
arm Style sync. 2003-08-03 07:50:19 +00:00
boot FICL doesn't build on PowerPC yet, so disable. 2003-08-16 02:48:20 +00:00
cam Remove all USB quirks that only specify DA_Q_NO_6_BYTE. They are no longer 2003-08-06 17:30:03 +00:00
coda Add a "int fd" argument to VOP_OPEN() which in the future will 2003-07-26 07:32:23 +00:00
compat Whitespace cleanup. 2003-08-18 13:30:15 +00:00
conf Add ptrace_machdep.c. 2003-08-15 18:01:10 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r118812, 2003-08-12 04:56:45 +00:00
crypto Use __FBSDID(). 2003-06-10 21:44:29 +00:00
ddb Further cleanup <machine/cpu.h> and <machine/md_var.h>: move the MI 2003-08-16 16:57:57 +00:00
dev MFp4 changes to fix locking issues and correct reference 2003-08-19 22:17:04 +00:00
fs Add pfs_visible() checks to pfs_getattr() and pfs_getextattr(). This 2003-08-19 10:26:41 +00:00
geom Replace a panic with a .1Hz retry loop. 2003-08-13 12:35:25 +00:00
gnu Add a "int fd" argument to VOP_OPEN() which in the future will 2003-07-26 07:32:23 +00:00
i4b Undo agressive inlining which GCC previously wisely ignored. 2003-07-23 17:58:41 +00:00
i386 Eliminate a possible race condition for multithreaded applications in 2003-08-19 18:20:34 +00:00
ia64 Fixup the ELF branding information to point to the new home of rtld. 2003-08-17 08:08:38 +00:00
isa Give timecounters a numeric quality field. 2003-08-16 08:23:53 +00:00
isofs/cd9660 Do not call VOP_BMAP() on our own vnodes. 2003-08-17 23:00:30 +00:00
kern Change instances of callout_init that specify MPSAFE behaviour to 2003-08-19 17:51:11 +00:00
libkern Lock down arc4random so it can be safely called w/o Giant. 2003-08-15 06:34:47 +00:00
modules Add a overhaul of the soundchip initialization for the MSP34xx chipsets 2003-08-12 09:45:34 +00:00
net Change instances of callout_init that specify MPSAFE behaviour to 2003-08-19 17:51:11 +00:00
net80211 MFp4 changes to fix locking issues and correct reference 2003-08-19 22:17:04 +00:00
netatalk - Use if_broadcastaddr from struct ifnet rather than relying on 2003-03-21 17:53:16 +00:00
netatm The number of prefixes can never be negative so use an u_int for this. 2003-07-29 13:46:43 +00:00
netgraph Add ng_atmpif: a HARP physical interface emulation. This allows one 2003-08-11 08:40:02 +00:00
netinet Change instances of callout_init that specify MPSAFE behaviour to 2003-08-19 17:51:11 +00:00
netinet6 introduced a flag bit "ND6_IFF_ACCEPT_RTADV" in the nd_ifinfo structure to 2003-08-05 14:57:11 +00:00
netipsec make sure the packets contains a complete inner header 2003-08-13 22:36:24 +00:00
netipx Use __FBSDID(). 2003-06-11 05:37:42 +00:00
netkey Use __FBSDID(). 2003-06-11 05:37:42 +00:00
netnatm Remove the last vestiges of ATM raw mode. This has not been useful for a 2003-08-06 14:34:38 +00:00
netncp size_t != int. Make this compile on 64 bit platforms (eg: amd64). 2003-07-24 01:59:18 +00:00
netsmb Reserve space for the trailing null byte in the srvname member of 2003-07-27 11:36:00 +00:00
nfs
nfsclient Remove the magic way of configuring NFS backed swap. 2003-08-15 12:04:02 +00:00
nfsserver Change idle state sleep identifier to "-" for nfsd. 2003-07-02 08:08:32 +00:00
opencrypto consolidate callback optimization check in one location by adding a flag 2003-06-30 05:09:32 +00:00
pc98 bandaide to make this build again 2003-08-16 17:22:54 +00:00
pccard Add comment point o2micro people to NEWCARD 2003-08-01 16:10:48 +00:00
pci Change instances of callout_init that specify MPSAFE behaviour to 2003-08-19 17:51:11 +00:00
posix4 Use __FBSDID(). 2003-06-11 06:34:30 +00:00
powerpc Fixup the ELF branding information to point to the new home of rtld. 2003-08-17 08:08:38 +00:00
rpc
security Attempt to simplify #ifdef logic for MAC_ALWAYS_LABEL_MBUF. 2003-08-01 15:45:14 +00:00
sparc64 Enable OFW_NEWPCI until jmg's 2003/06/21 18:26:08 PDT bus commit is fixed 2003-08-19 21:57:29 +00:00
sys correct typo in comment 2003-08-19 16:41:12 +00:00
tools Don't check the state of the vnode interlock if the specification says 2003-06-22 21:20:06 +00:00
ufs The previous change necessitates the addition of a new #include. Otherwise, 2003-08-18 17:27:08 +00:00
vm Replace a homegrown bdone()/bwait() implementation by the real thing 2003-08-18 19:47:16 +00:00
Makefile Revert exclusion for amd64 that stopped boot/ being built. 2003-06-26 03:52:48 +00:00