Date: Fri, 18 Apr 2025 14:37:23 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: ded3d312ba36 - stable/14 - LinuxKPI: 802.11: enable fragmentation offload Message-ID: <202504181437.53IEbNue092170@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=ded3d312ba364023e312596a67e9a0733a1e9ff6 commit ded3d312ba364023e312596a67e9a0733a1e9ff6 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2025-04-12 19:50:06 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2025-04-18 14:36:02 +0000 LinuxKPI: 802.11: enable fragmentation offload Let the hardware handle fragmentation itself and tell net80211 to save itself from it. We already call the (*set_frag_threshold) mac80211 function. This should be a NOP for all currently enabled LinuxKPI based WiFi drivers. Sponsored by: The FreeBSD Foundation (cherry picked from commit 63578bf225df37944b78febfb177e8c1c81f54e4) --- sys/compat/linuxkpi/common/src/linux_80211.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index f9f16e0a6f8f..4c1d20c7b469 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -5759,6 +5759,10 @@ linuxkpi_ieee80211_ifattach(struct ieee80211_hw *hw) lhw->scan_flags |= LKPI_LHW_SCAN_HW; } + /* Does HW support Fragmentation offload? */ + if (ieee80211_hw_check(hw, SUPPORTS_TX_FRAG)) + ic->ic_flags_ext |= IEEE80211_FEXT_FRAG_OFFLOAD; + /* * The wiphy variables report bitmasks of avail antennas. * (*get_antenna) get the current bitmask sets which can be
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202504181437.53IEbNue092170>