Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2655846pxa; Mon, 24 Aug 2020 22:31:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX6YgR4OtIeUQv6p7/soAmdTUbgbyDWtNcr0BbmPKwfc2xaY8G+xNcp478jwFRG8eI0PV7 X-Received: by 2002:a50:8e58:: with SMTP id 24mr8779700edx.199.1598333509593; Mon, 24 Aug 2020 22:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598333509; cv=none; d=google.com; s=arc-20160816; b=vuxlCXAmfdztq1B7jfmj3jFFLikpVWnlZeswK9F8cU0cLgisyKh52/LWE3erc3TiYv Q0/pXPzntmzY7jzNyx5UTw1pc3o1StpCTOwsPvVGDQv6BulV8hVm79I9KkJUyYFSMwrr G2IVhtFcxIyRnxMSylZTFvyLb406TY/994ZfNxGiLYZnHbrvnPOLTDazaQR1UeA9Z59U LBFaVFIsksDyoxMYgmQH2S59j+YhjfGj9BaHlnnHIM4FQCK4y2IBJKs9ggSZqbOYWAgU QEfHZtEG5GOb2ScvRjCN9iFeHTzsFNl6mjakAHWxD1TXrS/yZKfw89n2bY6ZLrbUZW9i /i+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=rA1DOLXwQ59WC5TTbobxF30UxtUDddp+8OTrnM1mI7g=; b=tF9mgvx58k7mDEA7PFIkVlEid/OPUWdg6c3W0vO8nHTSvh/2a/96JmabEOecOm9CIi Ce4HEwZvk75+5Zhe0GIqlBvYgMmqTCveCF5OrecTfwxnZoLDLNh3zrVqY+dFNXWZcaLG tG4rCAVwRAO1Bm/2ga5cbywCxcymEHWOOngBNuE1Jkf2oZd/Y68FXPw5W5sKqPotcELG 9LZ4p0JKxeTf3caloiEII178MbmLIBbVeiC7J3yh3bqRO7UvnbnStcgErP1KrWaSehsX vLg9wSfuOygRTNTL/YkGr7PO0em+WRJZMUZ2UDzkEUiEq/7ixPOARt3dO4AiKk4F2/8P EnUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=XyBCJrsh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si4566531eju.169.2020.08.24.22.31.25; Mon, 24 Aug 2020 22:31:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=XyBCJrsh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbgHYF3Z (ORCPT + 99 others); Tue, 25 Aug 2020 01:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728653AbgHYF3R (ORCPT ); Tue, 25 Aug 2020 01:29:17 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCA48C061799 for ; Mon, 24 Aug 2020 22:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=rA1DOLXwQ59WC5TTbobxF30UxtUDddp+8OTrnM1mI7g=; b=XyBCJrsh8tNXN9PBGYQsWRoQE1 KIyZQXlVd5bb8OF+sKFr2xS7z6ffUylGmERKfwBbsO9xhGVxgQSkrIUymx8teD8y4+1bh0e4NB7Ho KEc6DboUAKTeFCK6l2KyDicQOCej49CB3uICZwKdjY/MIPlhjdEZdEEQb5npUvO8iyJE=; Received: from p5b206497.dip0.t-ipconnect.de ([91.32.100.151] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kARWB-0006jr-OQ for linux-wireless@vger.kernel.org; Tue, 25 Aug 2020 07:29:11 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 4/9] mt76: mt7915: schedule tx tasklet in mt7915_mac_tx_free Date: Tue, 25 Aug 2020 07:29:04 +0200 Message-Id: <20200825052909.36955-4-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200825052909.36955-1-nbd@nbd.name> References: <20200825052909.36955-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The previous scheduling round may have been limited by AQL. More frames might be available after the tx free run. Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7915/dma.c | 2 -- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c index f6c18a08d414..34e90bb08f0a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c @@ -96,8 +96,6 @@ static int mt7915_poll_tx(struct napi_struct *napi, int budget) mt7915_tx_cleanup(dev); - tasklet_schedule(&dev->mt76.tx_tasklet); - if (napi_complete_done(napi, 0)) mt7915_irq_enable(dev, MT_INT_TX_DONE_ALL); diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index 06bb8d0103ba..9c920c9f4d2b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -936,6 +936,7 @@ void mt7915_mac_tx_free(struct mt7915_dev *dev, struct sk_buff *skb) dev_kfree_skb(skb); mt7915_mac_sta_poll(dev); + tasklet_schedule(&dev->mt76.tx_tasklet); } void mt7915_tx_complete_skb(struct mt76_dev *mdev, enum mt76_txq_id qid, -- 2.28.0