Search Linux Wireless

[RFC PATCH] mac80211: sta_cleanup timer handling

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

 



The sta_cleanup timer is used to expire frames in the sta structure ps_tx_buf 
-list. To perform this, the timer is executed periodically.

The timer is executed periodically, regardless if there are frames in the
buffer or not. As a result, the system gets periodically woken up for no
reason at all, wasting precious resources.

This patch proposes a simple fix. It prevent rescheduling the sta_cleanup
timer if on the particular invocation the ps_tx_buf buffers for all sta's 
were empty. On the TX path, the timer is restarted upon queueing frames to
those buffers.

Due to the way checking is performed, this approach will "leak" a few 
unnecessary invocations of the timer handler, but in the big picture those
do not matter.

Comments are appreciated.

Juuso Oikarinen (1):
  mac80211: Prevent running sta_cleanup timer unnecessarily

 net/mac80211/sta_info.c |   13 ++++++++++---
 net/mac80211/tx.c       |    7 +++++++
 2 files changed, 17 insertions(+), 3 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux