提交 2a4e675d 编写于 作者: T Toke Høiland-Jørgensen 提交者: Johannes Berg

mac80211: Export fq memory limit information in debugfs

Add memory limit, usage and overlimit counter to per-PHY 'aqm' debugfs
file.
Signed-off-by: NToke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 097b065b
...@@ -89,13 +89,19 @@ static ssize_t aqm_read(struct file *file, ...@@ -89,13 +89,19 @@ static ssize_t aqm_read(struct file *file,
"R fq_flows_cnt %u\n" "R fq_flows_cnt %u\n"
"R fq_backlog %u\n" "R fq_backlog %u\n"
"R fq_overlimit %u\n" "R fq_overlimit %u\n"
"R fq_overmemory %u\n"
"R fq_collisions %u\n" "R fq_collisions %u\n"
"R fq_memory_usage %u\n"
"RW fq_memory_limit %u\n"
"RW fq_limit %u\n" "RW fq_limit %u\n"
"RW fq_quantum %u\n", "RW fq_quantum %u\n",
fq->flows_cnt, fq->flows_cnt,
fq->backlog, fq->backlog,
fq->overmemory,
fq->overlimit, fq->overlimit,
fq->collisions, fq->collisions,
fq->memory_usage,
fq->memory_limit,
fq->limit, fq->limit,
fq->quantum); fq->quantum);
...@@ -128,6 +134,8 @@ static ssize_t aqm_write(struct file *file, ...@@ -128,6 +134,8 @@ static ssize_t aqm_write(struct file *file,
if (sscanf(buf, "fq_limit %u", &local->fq.limit) == 1) if (sscanf(buf, "fq_limit %u", &local->fq.limit) == 1)
return count; return count;
else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1)
return count;
else if (sscanf(buf, "fq_quantum %u", &local->fq.quantum) == 1) else if (sscanf(buf, "fq_quantum %u", &local->fq.quantum) == 1)
return count; return count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册