From nobody Wed Mar 4 11:13:25 2026 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 4fQqm56cn2z6TMZX for ; Wed, 04 Mar 2026 11:13:25 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fQqm55qWHz4LCq for ; Wed, 04 Mar 2026 11:13:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772622805; 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=m95nIKLfE5xKTordcLWv1ogseAVsNDxQ52d67+Sz3zA=; b=n9lwobta5JD4ssV2XxotibJYyAzMEym7xO16LR5XnarERNoxCCKOmmeHPQb4XrGxKxFC+x ZePhwvGPO2WaHBjjgZgK4hyzUamlQP9S6pzpvgXFA/aoveoG/V9m74mQJB0xQ+dzgeNfjR qS1pa29cdP4ZH2v+q+/1H7n8CODRlebkygl8FHhQ6kB3Fp/7tGvbYwqIkXyn/3HbFf43Ap VDJfJiqbrr10I2GrNdluCTbj0pxY+Pr1gJzjXi3xsFwREX7xCeLSh2gREuZSqHheyC3TTm vXqPqA72mCSmCtO0MuBmzGsHiTE9LdBZuUdhRpBxEaM27H9qKPrLN30CpE2qHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772622805; a=rsa-sha256; cv=none; b=dTSyMoYllcwRo4sdWhPQFuyJSXLPU3keOuzCAM3dRFgwkE4PpkqvGU/u2iCSMWrjPInr8H qg++bFRf7PVfk8mqBvmZ49+rhH7+uaIjD2yIKfg9xJafevp8hmCYkPdwChhIjg6egdfRaO aBloeoUld2ogXm0qHf8SmbS4FrEa1OwRVktPVXyLQhUc89feKyRq3OtGI684YoRt25ptpA VvWt7by7fmj1P23eg6lvkfBVMnEp+RFDRjzSE2rSbRc+c/jqolhP/Ded6UfquPEoNkMfBO tJoPUfhlOQ+AG9I4nonp+hRC6dMwe9Q64dMi5fLQxk4RNSwQq/y4zY4Vh0rydQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772622805; 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=m95nIKLfE5xKTordcLWv1ogseAVsNDxQ52d67+Sz3zA=; b=Ui1WTgyYy/r9zk/gEYCv8S3DyBI6C5AEMQP1kVJwS9DRXWwP5kl9trbi3QCTzzd3qEwnq7 8lJfiM4R70kGXGD19uzJAc7w3WkiJWdGc03NCe7qkAdo7OEwUbBSX84y0rTom6+NmqK/Gv bMFWgH9GNFTfkMdEPfluSz2lkN0Ep4Xqv1tr7hjbF46aB8boOpFe941Ea3YAsqVEr4ywxK C8TO3wziyiIqDdrAv7xip94OgilPmFxNXSGmnsLYRQJnPTd5AKb6Sl1i+kBXxmUVOJnpIf CgtY4r5rdriFOXsMhS1/ClvW2gXCuEsvbjsbZm1elUngaj2qQ1J+U0HgTrNsIg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fQqm55QRnzpkJ for ; Wed, 04 Mar 2026 11:13:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 409c1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 04 Mar 2026 11:13:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 3d3303b756ad - main - LinuxKPI: 802.11: move linuxkpi_ieee80211_handle_wake_tx_queue() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: 3d3303b756ad4ee3ae520f6d07df6978d049a871 Auto-Submitted: auto-generated Date: Wed, 04 Mar 2026 11:13:25 +0000 Message-Id: <69a813d5.409c1.3970f769@gitrepo.freebsd.org> The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=3d3303b756ad4ee3ae520f6d07df6978d049a871 commit 3d3303b756ad4ee3ae520f6d07df6978d049a871 Author: Bjoern A. Zeeb AuthorDate: 2026-03-04 08:11:03 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-03-04 08:21:41 +0000 LinuxKPI: 802.11: move linuxkpi_ieee80211_handle_wake_tx_queue() No functional changes. Just moved the function within the file. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/src/linux_80211.c | 76 ++++++++++++++-------------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index 20ab5a641415..7b61ff6603b7 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -8574,6 +8574,43 @@ linuxkpi_ieee80211_wake_queue(struct ieee80211_hw *hw, int qnum) spin_unlock_irqrestore(&lhw->txq_lock, flags); } +void +linuxkpi_ieee80211_handle_wake_tx_queue(struct ieee80211_hw *hw, + struct ieee80211_txq *txq) +{ + struct lkpi_hw *lhw; + + lhw = HW_TO_LHW(hw); + + LKPI_80211_LHW_TXQ_LOCK(lhw); + ieee80211_txq_schedule_start(hw, txq->ac); + do { + struct lkpi_txq *ltxq; + struct ieee80211_txq *ntxq; + struct ieee80211_tx_control control; + struct sk_buff *skb; + + ntxq = ieee80211_next_txq(hw, txq->ac); + if (ntxq == NULL) + break; + ltxq = TXQ_TO_LTXQ(ntxq); + + memset(&control, 0, sizeof(control)); + control.sta = ntxq->sta; + do { + skb = linuxkpi_ieee80211_tx_dequeue(hw, ntxq); + if (skb == NULL) + break; + ltxq->frms_tx++; + lkpi_80211_mo_tx(hw, &control, skb); + } while(1); + + ieee80211_return_txq(hw, ntxq, false); + } while (1); + ieee80211_txq_schedule_end(hw, txq->ac); + LKPI_80211_LHW_TXQ_UNLOCK(lhw); +} + /* -------------------------------------------------------------------------- */ /* This is just hardware queues. */ @@ -8675,45 +8712,6 @@ out: /* -------------------------------------------------------------------------- */ -void -linuxkpi_ieee80211_handle_wake_tx_queue(struct ieee80211_hw *hw, - struct ieee80211_txq *txq) -{ - struct lkpi_hw *lhw; - - lhw = HW_TO_LHW(hw); - - LKPI_80211_LHW_TXQ_LOCK(lhw); - ieee80211_txq_schedule_start(hw, txq->ac); - do { - struct lkpi_txq *ltxq; - struct ieee80211_txq *ntxq; - struct ieee80211_tx_control control; - struct sk_buff *skb; - - ntxq = ieee80211_next_txq(hw, txq->ac); - if (ntxq == NULL) - break; - ltxq = TXQ_TO_LTXQ(ntxq); - - memset(&control, 0, sizeof(control)); - control.sta = ntxq->sta; - do { - skb = linuxkpi_ieee80211_tx_dequeue(hw, ntxq); - if (skb == NULL) - break; - ltxq->frms_tx++; - lkpi_80211_mo_tx(hw, &control, skb); - } while(1); - - ieee80211_return_txq(hw, ntxq, false); - } while (1); - ieee80211_txq_schedule_end(hw, txq->ac); - LKPI_80211_LHW_TXQ_UNLOCK(lhw); -} - -/* -------------------------------------------------------------------------- */ - struct lkpi_cfg80211_bss { u_int refcnt; struct cfg80211_bss bss;