From patchwork Wed May 4 16:33:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 12838172 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35607C433EF for ; Wed, 4 May 2022 16:33:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353494AbiEDQhC (ORCPT ); Wed, 4 May 2022 12:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353501AbiEDQhA (ORCPT ); Wed, 4 May 2022 12:37:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 087D746B1E for ; Wed, 4 May 2022 09:33:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 408D6B82794 for ; Wed, 4 May 2022 16:33:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C381CC385A5; Wed, 4 May 2022 16:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651682001; bh=si/jNKIZjWSD/yUoWGMbT7rlQSbsfPJ27eDg3wHOTDU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X1LQ1trrmK7l2ixEtDc9/JShSJkVrmkvVHDTlNjwgic9sYRN91ix7vzGkH96Irq1i NGhO8krj95jR0BZbXM+wdZ+32Gw5pP6CSqOucLiaerzRgBnhAIg/VjitPi9D8Q68Im Pp0g2ObO7BWRbhrZyemeWxLiVA3c6nITQI+Ry+eZ3oTvnoaPvvxV9O76EO+MEPKf+/ ERY8mzUAoonEoBmzymzRJDV++7qpW+8+q5VjJwlUz4ksngfq2nuKP6s76jhXjivF3C xryWO9K26jOtIhxcdnPQxP/uLltYCR6S6DcugjwnP5jDxaL3Omr6hebK7MaZdIJBCg E/xjyoxFqoZZQ== From: Jakub Kicinski To: kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, Jakub Kicinski , imitsyanko@quantenna.com, geomatsi@gmail.com Subject: [PATCH wireless-next 3/3] wifi: qtnfmac: switch to netif_napi_add_weight() Date: Wed, 4 May 2022 09:33:16 -0700 Message-Id: <20220504163316.549648-4-kuba@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220504163316.549648-1-kuba@kernel.org> References: <20220504163316.549648-1-kuba@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org qtnfmac chooses its own magic NAPI weight so switch to the new API created for those who don't use NAPI_POLL_WEIGHT. Signed-off-by: Jakub Kicinski --- CC: imitsyanko@quantenna.com CC: geomatsi@gmail.com CC: kvalo@kernel.org CC: linux-wireless@vger.kernel.org --- drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c | 4 ++-- drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c index 840728ed57b2..8c23a77d1671 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c +++ b/drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c @@ -1146,8 +1146,8 @@ static int qtnf_pcie_pearl_probe(struct qtnf_bus *bus, unsigned int tx_bd_size, } tasklet_setup(&ps->base.reclaim_tq, qtnf_pearl_reclaim_tasklet_fn); - netif_napi_add(&bus->mux_dev, &bus->mux_napi, - qtnf_pcie_pearl_rx_poll, 10); + netif_napi_add_weight(&bus->mux_dev, &bus->mux_napi, + qtnf_pcie_pearl_rx_poll, 10); ipc_int.fn = qtnf_pcie_pearl_ipc_gen_ep_int; ipc_int.arg = ps; diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c index 9534e1b33780..d83362578374 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c +++ b/drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c @@ -1159,8 +1159,8 @@ static int qtnf_pcie_topaz_probe(struct qtnf_bus *bus, } tasklet_setup(&ts->base.reclaim_tq, qtnf_reclaim_tasklet_fn); - netif_napi_add(&bus->mux_dev, &bus->mux_napi, - qtnf_topaz_rx_poll, 10); + netif_napi_add_weight(&bus->mux_dev, &bus->mux_napi, + qtnf_topaz_rx_poll, 10); ipc_int.fn = qtnf_topaz_ipc_gen_ep_int; ipc_int.arg = ts;