All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] wifi: mac80211: fix swapped fq_overlimit/fq_overmemory in aqm debugfs
@ 2026-08-23 19:57 Julius Bairaktaris
  2026-08-24 10:44 ` Toke Høiland-Jørgensen
  2026-09-04  7:51 ` Johannes Berg
  0 siblings, 2 replies; 3+ messages in thread
From: Julius Bairaktaris @ 2026-08-23 19:57 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Toke Høiland-Jørgensen

The aqm file prints fq_overlimit with fq->overmemory and fq_overmemory
with fq->overlimit. The fq_overmemory line was added to the format string
after fq_overlimit while its argument went in before it, and the two have
been crossed since.

The counters are not interchangeable: fq_tin_enqueue() bumps fq->overlimit
for every packet the eviction loop drops, and fq->overmemory only for the
subset dropped because the memory limit was exceeded, so overmemory is
always the smaller of the two. Reading the file to tell which limit is
binding gives the opposite answer.

Fixes: 2a4e675d887b ("mac80211: Export fq memory limit information in debugfs")
Assisted-by: Claude:claude-opus-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
---
 net/mac80211/debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c
index a4d5461f6480..014f3c872706 100644
--- a/net/mac80211/debugfs.c
+++ b/net/mac80211/debugfs.c
@@ -96,8 +96,8 @@ static ssize_t aqm_read(struct file *file,
 			"RW fq_quantum %u\n",
 			fq->flows_cnt,
 			fq->backlog,
-			fq->overmemory,
 			fq->overlimit,
+			fq->overmemory,
 			fq->collisions,
 			fq->memory_usage,
 			fq->memory_limit,
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-04  7:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-23 19:57 [PATCH v1] wifi: mac80211: fix swapped fq_overlimit/fq_overmemory in aqm debugfs Julius Bairaktaris
2026-08-24 10:44 ` Toke Høiland-Jørgensen
2026-09-04  7:51 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.