Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1841900rwb; Wed, 5 Oct 2022 05:44:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5QC/cV+vV18vgXDZyu7Y169YCoglAyNVcYlm6qUcSho5PUnYK2vVY3eh3P412QIAZS2/T6 X-Received: by 2002:a17:90b:2d85:b0:20a:d20e:a5fe with SMTP id sj5-20020a17090b2d8500b0020ad20ea5femr4897600pjb.96.1664973892637; Wed, 05 Oct 2022 05:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664973892; cv=none; d=google.com; s=arc-20160816; b=KZ34H4Ao7646gUgFbYsdExk7YnrTTbwWuTlOCt4lFlX78PEsoIpxv8hGzcnHGKdS3Z 5+JlZZyN/nT1MQjfsXV8pi3qepcB1bapMkUUTZ4Wxprb430TNh2qmQ2rxWl7lXfetW2J YHoi+pyYKij4zHQ61xvRZTg0hkZdB0rDds8x9aVdE7nKBkfhM7CRngwABiWQdCKb8FI+ bEbD43/7HWmydECzqGj6NF58emY5Uw9BBCw5DJMGAFjpNBKlo2qXo91oyiO7oa7pJjZ3 yPHbkDbnPaLdiMznadedo1IEjTeuFEZo496A8h4prOiL+6vH/7M68je/IfKDO+0rOoAu SrwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:dkim-signature; bh=PQjzUBP8kM997Xe6KE3m2VcZfm7s/1qmyU9fX1px1k0=; b=tqqfy4/U+27/pMFv/C2TRpl8xeK2wRguV8mCrnwLiHMe/PGIGq8kX+70bOLnyZRT4a 4bqZ1kd07IDG4hq4bpJpjv2ihJHbDtCT2Iaajuyad3OCUJo+2zVP7yuB+gxP2JDSyUVC XF0URl3WF3Fm4ueO9GfawruaqQFUvN98+8YTrLW27irUY3InS2wv8cV2bazk0Kp6G5Is DKQll93qvwbT6H59X2Fylm9iVzDHuRH0mwnEhEzcsx8ICJUpO3OFWaXc59OhZ/UntI1Z 0vggdZPK3t0ZmQjP4YdoNkNwCtBVtVvdJhbL4nTQGZTCWNs1EI7FIaVBvEMZvRnaqUtQ 6UPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HinmYluY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020a17090ac09300b0020ad777f645si2210222pjs.118.2022.10.05.05.44.42; Wed, 05 Oct 2022 05:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HinmYluY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbiJEMkJ (ORCPT + 61 others); Wed, 5 Oct 2022 08:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiJEMkI (ORCPT ); Wed, 5 Oct 2022 08:40:08 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB3517A89 for ; Wed, 5 Oct 2022 05:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=PQjzUBP8kM997Xe6KE3m2VcZfm7s/1qmyU9fX1px1k0=; t=1664973607; x=1666183207; b=HinmYluYGeY9uDpKvnczRMJ6BBCM0RAyXRHiu6P4knHXJeP gMEd9YWJbh+T4Cnm7FjEJnfx7V+TVHZDQF+nHigMff977tpDVzVVt9FexD1l9BzWqOch20FLEoiEp Mbc5zvMX6NUPReVCAZispjU7OqNsJmlTLiAQKY4oao0hCOPw97N6z3uNyGB41V9isBljVDQAxb/T4 qLYF5Vsn76mVR2XlFE1mpUmpqcRiaCxLUDsR96WWjKwjcp39PU9MuPlij9ak9g6XdADTzSrrSQZgx bROJz4wcRhmyBJSZ+34WL4KRyZouRDggD4+j+s472k3+3d4r8tQy2n/xEzive08w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1og3gw-00G23p-2O; Wed, 05 Oct 2022 14:40:02 +0200 Message-ID: Subject: Re: [PATCH] wifi: mac80211: Use internal TX queues for all drivers From: Johannes Berg To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , Alexander Wetzel , linux-wireless@vger.kernel.org Date: Wed, 05 Oct 2022 14:40:01 +0200 In-Reply-To: <875ygyihhm.fsf@toke.dk> References: <20220926161303.13035-1-alexander@wetzel-home.de> <96e9ad692842853cfe92a7e5de18136baf20a492.camel@sipsolutions.net> <875ygyihhm.fsf@toke.dk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2022-10-05 at 14:26 +0200, Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > void ieee80211_handle_wake_tx_queue(struct ieee80211_hw *hw, > > struct ieee80211_txq *txq) > > { > > ... *local =3D from_hw(hw); > > ... *sdata =3D from_vif(txq->vif); > >=20 > > wake_tx_push_queue(local, sdata, txq); > > } > >=20 > > Actually ... I wonder why you'd here - in waking a single TXQ - use > > ieee80211_next_txq() at all, Toke, what do you think? >=20 > Well, this patch does almost exactly the same as the ath9k driver does, > for instance. Really, the wake_tx_queue() is a signal to the driver to > start transmitting on the *hardware* queue that the txq points to. For > some drivers (like Intel, right?) that's a 1-to-1 mapping, for others > there are multiple TXQs being scheduled on the same HW-TXQ. So I think > it's probably the right thing to do to just call next_txq(); if there's > only a single TXQ scheduled it should be pretty cheap to do so. Oh OK. So then the logic Alexander had makes sense. >=20 > This logic has implications for putting "urgent" frames (like PS(?)) on > TXQs as well, of course, but that needs to be handled somehow anyway... But that probably then anyway needs to be handled in next_txq()? johannes