Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8308299rwl; Tue, 10 Jan 2023 11:39:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXvM+8PemYkVnzilwUsuHpL2FCiU36V5vPu5XrAzl/6RQqz3fYpp/3UqIKQ2pNwSEcrRjVSK X-Received: by 2002:a05:6a21:6da8:b0:af:d295:e2f0 with SMTP id wl40-20020a056a216da800b000afd295e2f0mr129076638pzb.27.1673379580473; Tue, 10 Jan 2023 11:39:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673379580; cv=none; d=google.com; s=arc-20160816; b=F0a8GisK+y2zmSJTSnO1o22amU4jNSdxZdTXmbsaCmNof+NKTjFocTJtF+XubYMckF aq4cxYYfhfItzxxPz9NGoWdKJ4RTPYWuTmYGBkk6dIlhGmtVlLaCf36EFQkqSn1v+zrQ j3PUraagXYKpVwpsGH6D5AhzkaACxy0QLET+1P7nIcE6O6zfpA8MYEyqRZwBkmcio7EB JHu5+I3uc77DpH+CaFQ4K6lNK+GX50Yn0lRtv5pr2Qe41S6HogyJ1AEDLDnJFJoTl8wI kznGHuaR3BLfBYvgZba8aYxi/NzPZw7Ygj7PgYon7DUcB4JEhLFsdgBMUgCbmquypJML wBGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1mQE4IAjk+VflFgV1WCqXh4GbPZobVdOWuXM0Q7eR7g=; b=NxNzrc9SKw2cgXal3q+JuN4RIYYGR8r80ia/p49pwQoZnn4artR9IDYmTVW/yfBnuG Aagg8sKE34o9QJILVBlR1ctPF4N0qvyKusKA7mZSjhbHF7e8+raW2eR5SZ/nWEqYAQxB 8VnTq80Hoo25cNZPjNawLyfru5zIWmACRbtrsESLb50uhFkR5MaAFFBzf5IWqYyw24Hh AiwvENc5N3EydyM8WuhsksNMFSSRv2Nx8sweVyZbVgGlvOEJyHZYjrP6MN8oz2F54ZV4 HsbYcPCdqxaY722+CjQ7g5dqxdWWcASPSVIJT3tw8WwN579v7hFX8Qjz9cIvK+wVfpEp NkYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zJQhm/Z5"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi13-20020a17090b4b4d00b0021f249ab6acsi16470280pjb.139.2023.01.10.11.39.32; Tue, 10 Jan 2023 11:39:40 -0800 (PST) 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=@linaro.org header.s=google header.b="zJQhm/Z5"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231672AbjAJTfb (ORCPT + 65 others); Tue, 10 Jan 2023 14:35:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232203AbjAJTfP (ORCPT ); Tue, 10 Jan 2023 14:35:15 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92C6F1EEFC for ; Tue, 10 Jan 2023 11:35:11 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id g10so9572866wmo.1 for ; Tue, 10 Jan 2023 11:35:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1mQE4IAjk+VflFgV1WCqXh4GbPZobVdOWuXM0Q7eR7g=; b=zJQhm/Z5X90cjpUls6+rGTHaltG8jCZ8mstEOyA4QP+xDMnGbKNiaK8iuhpR3LTNMi ET95if+UNbkKYln5bdw/euNRmgIwnd0/bLiLJJ4XHf/WF8SMn6EaVeanamSLpJciVS+8 CVHx1RHrbsyAuBHzFIZhdAPMztjp0eCPd9q3FLrlSiljRhoDeJFhWx720N6bchJhLjxi bYsLT6aQ4LG8uFxx54KAy4bkWqWSFdL37F3dL4gxyCPHfEeH3EbEVBztmYr9VWD+urYb 0VcvCzWg8+POzUQ4Luz4Jc9/0ntMU1zDGcRpT92eq8J0ziSPXzqgjV2k5maxDKlz2QCm IZ8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1mQE4IAjk+VflFgV1WCqXh4GbPZobVdOWuXM0Q7eR7g=; b=EbZ4CyffuVb5wunrpp3S6rMlL9sbA4nJ/pTplznkYiiSGJ12Y9FqKgFbf17YA03/ND QxKmi2hWgbH+2gFWksS2Lp4/J4NsA3p7pA5MZIYV+MS0yDfJ3+uLfkpDFG4t0y2rDS5f NRnXUV5f3c0goy2ghdPGQUXz3bgmkOiJuJYTor/sp0LOs98jgXHYogfXj4zEvVZiAXVE KXhcHicW7ANh9lF8KRN/34TpZcvR0EQFt9dignPQh/UjMDtXxfXsB9wBAmXIIPguTb8o Lgur2xvls44NJt6QzWDd/bLKN+sz6aC7gjC0wXztICQnFLYKoN2cW/HAb0Z/VEu5Nf6c JDFw== X-Gm-Message-State: AFqh2kr5GuGx1dbr0VRacL5DF8rk1FHDLMAIrhxh6zNDjoe8pKte7//5 wqPG4RTPLq0PJp8j1k9mJkL4mgWWKd7YuMYTcSQ= X-Received: by 2002:a05:600c:3844:b0:3d3:4406:8a3a with SMTP id s4-20020a05600c384400b003d344068a3amr60384278wmr.30.1673379310200; Tue, 10 Jan 2023 11:35:10 -0800 (PST) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id i8-20020a05600c354800b003cf894dbc4fsm17197868wmq.25.2023.01.10.11.35.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Jan 2023 11:35:09 -0800 (PST) Message-ID: Date: Tue, 10 Jan 2023 19:35:09 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] wifi: mac80211: Proper mark iTXQs for resumption Content-Language: en-US To: Alexander Wetzel , linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net References: <20221230121850.218810-1-alexander@wetzel-home.de> From: Bryan O'Donoghue In-Reply-To: <20221230121850.218810-1-alexander@wetzel-home.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 30/12/2022 12:18, Alexander Wetzel wrote: > When a running wake_tx_queue() call is aborted due to a hw queue stop > the corresponding iTXQ is not always correctly marked for resumption: > wake_tx_push_queue() can stops the queue run without setting > @IEEE80211_TXQ_STOP_NETIF_TX. > > Without the @IEEE80211_TXQ_STOP_NETIF_TX flag __ieee80211_wake_txqs() > will not schedule a new queue run and remaining frames in the queue get > stuck till another frame is queued to it. > > Fix the issue for all drivers - also the ones with custom wake_tx_queue > callbacks - by moving the logic into ieee80211_tx_dequeue() and drop the > redundant @txqs_stopped. > > @IEEE80211_TXQ_STOP_NETIF_TX is also renamed to @IEEE80211_TXQ_DIRTY to > better describe the flag. > > Fixes: c850e31f79f0 ("wifi: mac80211: add internal handler for wake_tx_queue") > Signed-off-by: Alexander Wetzel From the right address this time Tested-by: Bryan O'Donoghue