]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix RX u64 stats consistency on 32-bit platforms
authorJohannes Berg <johannes.berg@intel.com>
Thu, 31 Mar 2016 17:02:09 +0000 (20:02 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Apr 2016 11:18:17 +0000 (13:18 +0200)
commita84933d87f38cacce532e2812dba641841890871
tree6d18031607d94831c71dba87fec4abfb990c6465
parent475a7e1986aaf59077b796ed80294839b05abd5d
mac80211: fix RX u64 stats consistency on 32-bit platforms

On 32-bit platforms, the 64-bit counters we keep need to be protected
to be consistently read. Use the u64_stats_sync mechanism to do that.

In order to not end up with overly long lines, refactor the tidstats
assignments a bit.

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