[Make-wifi-fast] [PATCH v2] mac80211: Re-structure aqm debugfs output and include CoDel drops
Johannes Berg
johannes at sipsolutions.net
Mon Sep 12 05:27:47 EDT 2016
> --- a/net/mac80211/debugfs_sta.c
> +++ b/net/mac80211/debugfs_sta.c
> @@ -109,6 +109,48 @@ static ssize_t sta_last_seq_ctrl_read(struct
> file *file, char __user *userbuf,
> }
> STA_OPS(last_seq_ctrl);
>
> +#define AQM_TXQ_ENTRY_LEN 130
> +
> +static ssize_t sta_aqm_read(struct file *file, char __user *userbuf,
> + size_t count, loff_t *ppos)
> +{
> + struct sta_info *sta = file->private_data;
> + struct ieee80211_local *local = sta->local;
> + char buf[AQM_TXQ_ENTRY_LEN*(IEEE80211_NUM_TIDS+1)], *p =
> buf;
>
This is very large, I think you should dynamically allocate it.
johannes
More information about the Make-wifi-fast
mailing list