Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   dyoung
Date:           Tue Aug 10 00:57:22 UTC 2004

Modified Files:
        src/sys/dev/ic: an.c ath.c atw.c awi.c wi.c
        src/sys/net80211: ieee80211.c ieee80211_input.c ieee80211_node.c
            ieee80211_node.h ieee80211_output.c ieee80211_proto.c
            ieee80211_var.h

Log Message:
Make the node table into an LRU cache: least-recently used nodes
are at the end of the node queue.  Change the reference-counting
discipline: ni->ni_refcnt indicates how many times net80211 has
granted ni to the driver.  Every node in the table with ni_refcnt=0
is eligible to be garbage-collected.  The mere presence of a node
in the table does not any longer indicate its auth/assoc state;
nodes have a ni_state variable, now.  A sysctl,
net.link.ieee80211.maxnodecache, controls the maximum LRU cache
size.

While I am here, patch ieee80211_find_node_for_beacon to do a "best
match" by bssid/ssid/channel, not a "perfect match."  This keeps
net80211 from caching duplicate nodes in the table.


To generate a diff of this commit:
cvs rdiff -r1.30 -r1.31 src/sys/dev/ic/an.c
cvs rdiff -r1.34 -r1.35 src/sys/dev/ic/ath.c
cvs rdiff -r1.78 -r1.79 src/sys/dev/ic/atw.c
cvs rdiff -r1.64 -r1.65 src/sys/dev/ic/awi.c
cvs rdiff -r1.185 -r1.186 src/sys/dev/ic/wi.c
cvs rdiff -r1.31 -r1.32 src/sys/net80211/ieee80211.c
cvs rdiff -r1.34 -r1.35 src/sys/net80211/ieee80211_input.c
cvs rdiff -r1.32 -r1.33 src/sys/net80211/ieee80211_node.c
cvs rdiff -r1.13 -r1.14 src/sys/net80211/ieee80211_node.h
cvs rdiff -r1.16 -r1.17 src/sys/net80211/ieee80211_output.c
cvs rdiff -r1.15 -r1.16 src/sys/net80211/ieee80211_proto.c
cvs rdiff -r1.17 -r1.18 src/sys/net80211/ieee80211_var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index