[PATCH v5 6/6] ath10k: reporting estimated tx airtime for fairness

2018-12-18 Thread Rajkumar Manoharan
From: Kan Yan Transmit airtime will be estimated from last tx rate used. Firmware report tx rate by peer stats. Airtime is computed on tx path and the same will be reported to mac80211 upon tx completion. This change is based on Kan's orginal commit in Chromium tree ("CHROMIUM: ath10k:

[PATCH v5 5/6] ath10k: migrate to mac80211 txq scheduling

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen ath10k maintains common txqs list for all stations. This txq management can be removed by migrating to mac80211 txq APIs and let mac80211 handle txqs reordering based on reported airtime. By doing this, txq fairness maintained in ath10k i.e processing N frames per

[PATCH v5 0/6] Move TXQ scheduling and airtime fairness into mac80211

2018-12-18 Thread Rajkumar Manoharan
All, Sorry for the long delay. Here is the consolidated series of mac80211, ath9k and ath10k changes for moving TXQ scheduling and airtime fairness into mac80211 and support airtime fairness. Three main APIs are defined for TXQ scheduling. - ieee80211_next_txq - ieee80211_return_txq -

[PATCH v5 2/6] cfg80211: Add airtime statistics and settings

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen This adds TX airtime statistics to the cfg80211 station dump (to go along with the RX info already present), and adds a new parameter to set the airtime weight of each station. The latter allows userspace to implement policies for different stations by varying their

[PATCH v5 4/6] ath9k: Switch to mac80211 TXQ scheduling and airtime APIs

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen This moves the ath9k driver to use the mac80211 TXQ scheduling and airtime accounting APIs, removing the corresponding state tracking inside the driver. Signed-off-by: Toke Høiland-Jørgensen [rmano...@codeaurora.org: fixed checkpatch error and warnings]

[PATCH v5 3/6] mac80211: Add airtime accounting and scheduling to TXQs

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen This adds airtime accounting and scheduling to the mac80211 TXQ scheduler. A new callback, ieee80211_sta_register_airtime(), is added that drivers can call to report airtime usage for stations. When airtime information is present, mac80211 will schedule TXQs

[PATCH v5 1/6] mac80211: Add TXQ scheduling API

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen This adds an API to mac80211 to handle scheduling of TXQs. The interface between driver and mac80211 for TXQ handling is changed by adding two new functions: ieee80211_next_txq(), which will return the next TXQ to schedule in the current round-robin rotation, and

Re: [PATCH v4 3/6] mac80211: Add airtime accounting and scheduling to TXQs

2018-12-18 Thread kbuild test robot
Hi Toke, I love your patch! Perhaps something to improve: [auto build test WARNING on mac80211/master] [also build test WARNING on v4.20-rc7] [cannot apply to next-20181218] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

[PATCH v4 5/6] ath10k: migrate to mac80211 txq scheduling

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen ath10k maintains common txqs list for all stations. This txq management can be removed by migrating to mac80211 txq APIs and let mac80211 handle txqs reordering based on reported airtime. By doing this, txq fairness maintained in ath10k i.e processing N frames per

[PATCH v4 6/6] ath10k: reporting estimated tx airtime for fairness

2018-12-18 Thread Rajkumar Manoharan
From: Kan Yan Transmit airtime will be estimated from last tx rate used. Firmware report tx rate by peer stats. Airtime is computed on tx path and the same will be reported to mac80211 upon tx completion. This change is based on Kan's orginal commit in Chromium tree ("CHROMIUM: ath10k:

[PATCH v4 4/6] ath9k: Switch to mac80211 TXQ scheduling and airtime APIs

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen This moves the ath9k driver to use the mac80211 TXQ scheduling and airtime accounting APIs, removing the corresponding state tracking inside the driver. Signed-off-by: Toke Høiland-Jørgensen [rmano...@codeaurora.org: fixed checkpatch error and warnings]

[PATCH v4 2/6] cfg80211: Add airtime statistics and settings

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen This adds TX airtime statistics to the cfg80211 station dump (to go along with the RX info already present), and adds a new parameter to set the airtime weight of each station. The latter allows userspace to implement policies for different stations by varying their

[PATCH v4 3/6] mac80211: Add airtime accounting and scheduling to TXQs

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen This adds airtime accounting and scheduling to the mac80211 TXQ scheduler. A new callback, ieee80211_sta_register_airtime(), is added that drivers can call to report airtime usage for stations. When airtime information is present, mac80211 will schedule TXQs

[PATCH v4 1/6] mac80211: Add TXQ scheduling API

2018-12-18 Thread Rajkumar Manoharan
From: Toke Høiland-Jørgensen This adds an API to mac80211 to handle scheduling of TXQs. The interface between driver and mac80211 for TXQ handling is changed by adding two new functions: ieee80211_next_txq(), which will return the next TXQ to schedule in the current round-robin rotation, and

[PATCH v4 0/6] Move TXQ scheduling and airtime fairness into mac80211

2018-12-18 Thread Rajkumar Manoharan
All, Sorry for the long delay. Here is the consolidated series of mac80211, ath9k and ath10k changes for moving TXQ scheduling and airtime fairness into mac80211 and support airtime fairness. Three main APIs are defined for TXQ scheduling. - ieee80211_next_txq - ieee80211_return_txq -

Re: [Make-wifi-fast] [PATCH v3 3/6] mac80211: Add airtime accounting and scheduling to TXQs

2018-12-18 Thread Toke Høiland-Jørgensen
Johannes Berg writes: > On Thu, 2018-11-15 at 09:10 -0800, Toke Høiland-Jørgensen wrote: >> Louie Lu writes: >> >> > Hi Rajkumar, Toke, >> > >> > I found the series (v3,4/6) remove the debugfs remove reset station's >> > airtime method, and didn't added at here. >> > >> > Not sure how to

Re: [Make-wifi-fast] [PATCH v3 3/6] mac80211: Add airtime accounting and scheduling to TXQs

2018-12-18 Thread Dave Taht
Johannes Berg writes: > On Thu, 2018-11-15 at 09:10 -0800, Toke Høiland-Jørgensen wrote: >> Louie Lu writes: >> >> > Hi Rajkumar, Toke, >> > >> > I found the series (v3,4/6) remove the debugfs remove reset >> > station's >> > airtime method, and didn't added at here. >> > >> > Not sure how

Re: [Make-wifi-fast] [PATCH v3 3/6] mac80211: Add airtime accounting and scheduling to TXQs

2018-12-18 Thread Johannes Berg
On Thu, 2018-11-15 at 09:10 -0800, Toke Høiland-Jørgensen wrote: > Louie Lu writes: > > > Hi Rajkumar, Toke, > > > > I found the series (v3,4/6) remove the debugfs remove reset station's > > airtime method, and didn't added at here. > > > > Not sure how to help this kind of situation, do I