From nobody Sat Jun 10 23:08:58 2023 X-Original-To: dev-commits-src-all@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 4QdttL5HvJz4d6Kv; Sat, 10 Jun 2023 23:08:58 +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 4QdttL4mqXz3NWK; Sat, 10 Jun 2023 23:08:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686438538; 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=DZtFlSG5egdhAUte5l03tyEyeHiqwZASoNAfxv/xR18=; b=tkrmG8E1uJ9qKE0Q2VmQCJ5/aHrwRsabjEYQtgE2qpav2VTXT6chpJhMf/T+jyLc3sb5cy WvYd3Z7KWGhZ8EPLfEZxnbES2avH0j6mS35W6H/dtdw9BtUehpdMkTJjMogH5gUJ0vAKrG RKNbX+y3ytd76p1e8fVUln3MPKzPk6c4JpPGCrPMyChT/gaJXRG/uL0CoWqWBW1yijm6+5 Eorm2hQkq0Ec7akkxnssyzi8g7HWmLmDvivEa+lMWtwJYtEmkPOqV0vn3+DwtFyZgH06Fy p6VtpKrUNzrWfFVQCJ2UXht6zvzOvYeTsfz8umN5EoMoT3/FJoo6Do0o/U1H0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686438538; 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=DZtFlSG5egdhAUte5l03tyEyeHiqwZASoNAfxv/xR18=; b=WwilP/btHFCVKew1YmffTnpVn1X+ZAzqtn0x0dlYKGXMQeF+kVrEVbdMyqwgNdlXsX329Z aGkhOc2v5PpS82QBxuQLqph1JcFaYIFyY+lx8K/bYPpYXRPLUkMclVpvw7+CNPh9O/T6hM gpyZ9uFXAr0FTpuQddPmMyFXn8JWjAFNR+T7b6gsE07OhTTotzICrHYBkDicUgwD6ZA9wb PXqpRVU6xxTv7BkhjfNQ0e70PwzkDrNK6aXZZSA0DMYq+o7H90dWtVC2RFexlucYnFUg8M p5zGUA32XWkOQi5snvN1fi76yzu+cZf/4u+HD6IIfU74mqJjhyWb/bLCVHqr1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686438538; a=rsa-sha256; cv=none; b=LoDWJvBNl4MoTmiB/Sr5ED70b3mVu1g8fzUyhiXCvPTctKBSWb1tR3sVcp60lU68XiD/7L r9jB0cgYiwYTDUYaA11/fcUlBPTh58FqSvixV5agGG5xXW1M21uA3fbhvm6cFRjLFMvVHe CIfhl4ENIcYBisL0vKnRyng4FoJ51dalDVF8gaNqmE1nvxdUIFl5FCm46K+mSpUlLWM12y siVm924Gztqt0whRJzvk8oAftPyP1t+2vRDlcEbHG8BIK/BfbSqYtqJHrm05+62ktBxMO6 G7SEVIVVb2KzPmMiCaUT468dvzXPVyUUDoMGPkp/TtabgAfgfkfdljgEgNPQlQ== 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 4QdttL3Cy5zbJl; Sat, 10 Jun 2023 23:08:58 +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 35AN8wsI060659; Sat, 10 Jun 2023 23:08:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35AN8wsw060658; Sat, 10 Jun 2023 23:08:58 GMT (envelope-from git) Date: Sat, 10 Jun 2023 23:08:58 GMT Message-Id: <202306102308.35AN8wsw060658@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: a5ae63edd594 - main - LinuxKPI: 802.11: initialize txq List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: a5ae63edd59453f23d51a0cc61922bd3e1e4cce4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=a5ae63edd59453f23d51a0cc61922bd3e1e4cce4 commit a5ae63edd59453f23d51a0cc61922bd3e1e4cce4 Author: Bjoern A. Zeeb AuthorDate: 2023-06-10 22:18:38 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-06-10 23:05: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 MFC after: 10 days Fixes: 5a9a0d7803382321b5f9fff1deae5fb08463cf1a --- 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 c9279581062e..5bc99a1b1ae5 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