From nobody Mon Jun 26 12:09:05 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QqRTZ1zFzz4k79M; Mon, 26 Jun 2023 12:09:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QqRTZ1M3cz3kML; Mon, 26 Jun 2023 12:09:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z9eES1opOEZTjFzyPO8Bxcngbgt+PTVYvUT0CkSj/1Q=; b=BMoQmc5zXQh/HHYWIr1OWKlCl9/kXiWiMQo1ety1ebeL8bUG8QWDLGqEQ+FcQdGA1gH+6R uu6+HPyf3+/Y52pKHSM4zb+9uiHPL2OlJS5hHIsbccY/P/8jv229SHDhUJhA1NTTfVVYVd VGVRmaIiatEm2TPED089d6XWjyttnjXvCOfgKItfltIV2ha14qbTjVtf+bFcGq6nsolGfS JRw5F2x4wPGj9gsJESA4YGvDT09BC3cNlI9891qwtftL+iLRHzl3NGPy57z1kfVi54XoyT DDYvMhuv2MO/IjfddWVelqOnVxVRBTEPlBQOUsVXvPOrEldRyBM2ha0bP4NJiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z9eES1opOEZTjFzyPO8Bxcngbgt+PTVYvUT0CkSj/1Q=; b=uoIKoCYQ08QJsdeGG4alxrU2Yodkdr28gL0dl3bxojBW3xNxwHBNCTCIlsRaIKbAU7Xqn3 RpjOG/TespWfplH2oHwsju7wK4vXZeS7+IdpkNuvCtM5IRJaYf7LJUgFcceoqac07EiBzu SjBu6ZPOQuui45zlqsylREEpn6Hivz/+adLsovNEKAQPvS/euYKVDJsiGJd2hmQOnpCspu oXbiab+4IXZeeKsCRyGkBpVXBrPGY3+o1WegNuula14M2lq/+TDAO8GkFaPGaPAyjYDWOy z45yRhfNrPVzcC/hLKcPBaD2FrfW/NkvhpL+VFQESAVigMm7TVS9vmMcImfm5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687781346; a=rsa-sha256; cv=none; b=WzGLlm5PPlHFy6/PKi0qSLFS01ZMCdB4KwmIneoTSoIb32U0+bFI88xCqDpAZuTU/mmU7O ggtdgmAm+2fIFkiY2H3BBun1aoONDwGmVz2DiYpj/2QhGoAqL2Dsr1KCUPiG3PW7aob3JU NGQ0ALoqgEa+cdNoIh8ScnwLnChSFVwnHUwuEy/QRGXz+YtRgfY9MLra0IIZRYy7Ke/TXR lE/ZveesIFlM/DySytZwYUWboGrxgYRoG8V9/mXvfG+ntzCxIcF/sFRibzF39lI71+jHzL p5UPA+jxiue44Ddhz1ztzBse8aKj4LQOFiVpvqq/ki1OBCVC6N5pw4dE1t9Imw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QqRTZ0Rfrz18TY; Mon, 26 Jun 2023 12:09:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35QC95Md083652; Mon, 26 Jun 2023 12:09:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35QC95FK083651; Mon, 26 Jun 2023 12:09:05 GMT (envelope-from git) Date: Mon, 26 Jun 2023 12:09:05 GMT Message-Id: <202306261209.35QC95FK083651@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 992075d8f9ed - stable/13 - LinuxKPI: 802.11: initialize txq List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 992075d8f9edb9db87bc1361227bebdec7222d86 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=992075d8f9edb9db87bc1361227bebdec7222d86 commit 992075d8f9edb9db87bc1361227bebdec7222d86 Author: Bjoern A. Zeeb AuthorDate: 2023-06-10 22:18:38 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-06-26 09:26:15 +0000 LinuxKPI: 802.11: initialize txq In 5a9a0d7803382321b5f9fff1deae5fb08463cf1a we omitted the initialization of the per-hw txq settings. Fix this. Sponsored by: The FreeBSD Foundation Fixes: 5a9a0d7803382321b5f9fff1deae5fb08463cf1a (cherry picked from commit a5ae63edd59453f23d51a0cc61922bd3e1e4cce4) --- sys/compat/linuxkpi/common/src/linux_80211.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index eefa3de54125..adf8391bbe9c 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -3521,6 +3521,7 @@ linuxkpi_ieee80211_alloc_hw(size_t priv_len, const struct ieee80211_ops *ops) struct ieee80211_hw *hw; struct lkpi_hw *lhw; struct wiphy *wiphy; + int ac; /* Get us and the driver data also allocated. */ wiphy = wiphy_new(&linuxkpi_mac80211cfgops, sizeof(*lhw) + priv_len); @@ -3534,6 +3535,10 @@ linuxkpi_ieee80211_alloc_hw(size_t priv_len, const struct ieee80211_ops *ops) LKPI_80211_LHW_SCAN_LOCK_INIT(lhw); sx_init_flags(&lhw->lvif_sx, "lhw-lvif", SX_RECURSE | SX_DUPOK); TAILQ_INIT(&lhw->lvif_head); + for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { + lhw->txq_generation[ac] = 1; + TAILQ_INIT(&lhw->scheduled_txqs[ac]); + } /* * XXX-BZ TODO make sure there is a "_null" function to all ops