Thread View: muc.lists.freebsd.bugs
2 messages
2 total messages
Started by bugzilla-noreply
Thu, 12 Nov 2026 21:48
[Bug 300730] rtw89: RTL8852BT high latency with duplicate TX sequence allocation
Author: bugzilla-noreply
Date: Thu, 12 Nov 2026 21:48
Date: Thu, 12 Nov 2026 21:48
76 lines
5012 bytes
5012 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300730
Bug ID: 300730
Summary: rtw89: RTL8852BT high latency with duplicate TX
sequence allocation
Product: Base System
Version: 15.2-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: denis@lemire.name
Created attachment 277237
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277237&action=edit
LinuxKPI: defer native TX sequence allocation (one functional line)
On a Realtek RTL8852BT using rtw89_8852bte, TX sequence numbers are
allocated during native net80211 encapsulation and then allocated again
in LinuxKPI TX preparation. This was accompanied by high LAN latency.
Environment:
- FreeBSD 15.2-PRERELEASE (stable/15), amd64.
- PCI 10ec:b520, subsystem 103c:88e9; driver rtw89_8852bte.
- Station mode, same AP, channel 149 and 80 MHz width for both runs.
Observed:
For all 40 identified ICMP requests, the WiFi header sequence advanced
by one between LinuxKPI enqueue and final TX preparation. For example,
probe 0 changed from sequence 3208 to 3209. The earlier value was consumed
without being transmitted for that frame.
net80211 can assign a sequence number during encapsulation when
IEEE80211_FEXT_SEQNO_OFFLOAD is absent. lkpi_80211_txq_tx_one() then calls
ieee80211_output_seqno_assign() again before encryption. LinuxKPI attach
does not set the flag that tells native encapsulation to defer allocation.
Proposed fix in linuxkpi_ieee80211_ifattach():
ic->ic_flags_ext |= IEEE80211_FEXT_SEQNO_OFFLOAD;
With that ownership change:
Before After
LAN ping mean (ms) 742.532 1.991
LAN ping maximum (ms) 1245.550 13.888
Replies/probes 40/40 40/40
Afterward, allocator tracing recorded one allocation per probe and none
before enqueue, for all 40 probes. Both runs used the same
AP/channel/width and unchanged rtw89 module. The flag was the only
functional A/B change; an allocator trace event was also added for
validation.
Reproduction: associate this adapter, run `ping -c 40 -i 0.1 <wired-peer>`
on the LAN, and trace sequence allocation/header values at native
encapsulation, LinuxKPI enqueue and final TX preparation. Rebuild and
reboot with the flag enabled, then repeat the same probe run.
The attached patch contains only this ownership change and is based on
CURRENT 1555dff3bf5619278c80ba843555ac2c84d671c3. It applies cleanly there;
that exact CURRENT revision has not been runtime-tested with this patch
alone. The before/after measurements above are the stable/15 test.
The AP's internal behavior was not observed directly. No claim is made
for other adapters or fragmented/injected traffic.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300730] rtw89: RTL8852BT high latency with duplicate TX sequence allocation
Author: bugzilla-noreply
Date: Thu, 12 Nov 2026 23:02
Date: Thu, 12 Nov 2026 23:02
17 lines
2605 bytes
2605 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300730
Mark Linimon <linimon@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |wireless@FreeBSD.org
Component|kern |wireless
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads