From: Felix Fietkau <nbd@nbd.name>
To: Julius Bairaktaris <julius@bairaktaris.de>,
Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
"John Crispin" <john@phrozen.org>,
"Vasanthakumar Thiagarajan"
<vasanthakumar.thiagarajan@oss.qualcomm.com>,
"Vasanthakumar Thiagarajan" <vthiagar@qti.qualcomm.com>,
"Toke Høiland-Jørgensen" <toke@toke.dk>
Subject: Re: [PATCH wireless-next] wifi: mac80211: find the station of a freed 802.3 frame for AQL
Date: Mon, 23 Nov 2026 09:45:26 +0100 [thread overview]
Message-ID: <8d674f7c-68db-474f-8cb1-5645542db0ac@nbd.name> (raw)
In-Reply-To: <20261122150541.3117507-1-julius@bairaktaris.de>
On 22.11.26 16:05, Julius Bairaktaris wrote:
> ieee80211_report_used_skb() returns a frame's pending airtime to the
> station found from the 802.11 header. An encap offloaded frame starts
> with its 802.3 header instead, so the lookup finds no station, the
> station keeps the charge, and once its leaked airtime exceeds its limit
> ieee80211_txq_airtime_check() stops scheduling it until it reassociates.
> Drivers with AQL and encap offload reach this through
> ieee80211_free_txskb() wherever they drop a frame without knowing its
> station, for example when firmware recovery returns the frames it held.
>
> Look up an encap offloaded frame's station with
> ieee80211_lookup_ra_sta(), as ieee80211_subif_start_xmit_8023() did on
> transmit.
>
> Fixes: 50ff477a8639 ("mac80211: add 802.11 encapsulation offloading support")
> Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
I think this is the wrong approach. The driver reporting tx status for
802.3 frames without a station pointer cannot possibly work in 4 address
mode (since the Ethernet addresses do not identify the sta).
Please fix the driver instead to keep track of the sta and pass it to
mac80211 on tx status. This has the extra benefit of being more
efficient by avoiding an extra lookup.
- Felix
prev parent reply other threads:[~2026-11-23 8:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 15:05 Julius Bairaktaris
2026-11-23 8:45 ` Felix Fietkau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8d674f7c-68db-474f-8cb1-5645542db0ac@nbd.name \
--to=nbd@nbd.name \
--cc=johannes@sipsolutions.net \
--cc=john@phrozen.org \
--cc=julius@bairaktaris.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=toke@toke.dk \
--cc=vasanthakumar.thiagarajan@oss.qualcomm.com \
--cc=vthiagar@qti.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®