OSDN Git Service

mac80211: optimize station connection monitor
authorFelix Fietkau <nbd@nbd.name>
Tue, 8 Sep 2020 12:36:56 +0000 (14:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2020 10:19:04 +0000 (12:19 +0200)
commit9abf4e49830d606f18a05111cfa96b8f0b724c7d
tree255de87f6e6f169d02efb2513527a4dc887f4dec
parent1ff4e8f2dec8b145b451f05320e4f9e01d254ae2
mac80211: optimize station connection monitor

Calling mod_timer for every rx/tx packet can be quite expensive.
Instead of constantly updating the timer, we can simply let it run out
and check the timestamp of the last ACK or rx packet to re-arm it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20200908123702.88454-9-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/rx.c
net/mac80211/sta_info.h
net/mac80211/status.c