mac80211: provide race-free 64-bit traffic counters
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Feb 2013 09:55:21 +0000 (10:55 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 7 Mar 2013 13:32:18 +0000 (14:32 +0100)
commit560d268220d3416a2d473bcc906ea2ccbf51e4ec
tree4cc83a5346d70fc14ec1874d9ad5c9714b64a0a0
parent87f59c70ce6d1abeaaf97594835be29f746b81a0
mac80211: provide race-free 64-bit traffic counters

Make the TX bytes/packets counters race-free by keeping
them per AC so concurrent TX on queues can't cause lost
or wrong updates. This works since each station belongs
to a single interface. While at it also make the bytes
counters 64-bit.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/sta_info.h
net/mac80211/tx.c