Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2025 01:52:38 GMT
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5d31e67a2003 - main - rsu: enable seqno offload
Message-ID:  <202509090152.5891qcOi058693@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=5d31e67a2003d0405b83806da22135b6c2e1390b

commit 5d31e67a2003d0405b83806da22135b6c2e1390b
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2025-06-09 02:06:19 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2025-09-09 01:46:26 +0000

    rsu: enable seqno offload
    
    Enable sequence number offload.
    
    This should both enable the sequence number offloading and disable
    the net80211 TX lock from being acquired/released/checked.
    
    Differential Revision:  https://reviews.freebsd.org/D50749
    Okayed by: bz
---
 sys/dev/usb/wlan/if_rsu.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/dev/usb/wlan/if_rsu.c b/sys/dev/usb/wlan/if_rsu.c
index 07f7b6f3a708..ce2b98a1ba55 100644
--- a/sys/dev/usb/wlan/if_rsu.c
+++ b/sys/dev/usb/wlan/if_rsu.c
@@ -576,6 +576,7 @@ rsu_attach(device_t self)
 		ic->ic_rxstream = sc->sc_nrxstream;
 	}
 	ic->ic_flags_ext |= IEEE80211_FEXT_SCAN_OFFLOAD;
+	ic->ic_flags_ext |= IEEE80211_FEXT_SEQNO_OFFLOAD;
 
 	rsu_getradiocaps(ic, IEEE80211_CHAN_MAX, &ic->ic_nchans,
 	    ic->ic_channels);
@@ -2782,6 +2783,9 @@ rsu_tx_start(struct rsu_softc *sc, struct ieee80211_node *ni,
 	if (rate != 0)
 		ridx = rate2ridx(rate);
 
+	/* Assign sequence number, A-MPDU or otherwise */
+	ieee80211_output_seqno_assign(ni, -1, m0);
+
 	if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
 		k = ieee80211_crypto_encap(ni, m0);
 		if (k == NULL) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509090152.5891qcOi058693>