Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5154126rwe; Tue, 18 Apr 2023 02:55:20 -0700 (PDT) X-Google-Smtp-Source: AKy350bkY8TK+tvm7xY76i1+qiXWwoXKxm3iOGlsTympen+zoJHLBp+a4dKaXWU9vCzP/nhaSbCX X-Received: by 2002:a17:903:1206:b0:19e:4bc3:b1ef with SMTP id l6-20020a170903120600b0019e4bc3b1efmr1751494plh.64.1681811720056; Tue, 18 Apr 2023 02:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681811720; cv=none; d=google.com; s=arc-20160816; b=eY9FkGTd6wmGCuf02ce6YY/EECsYDl0x29uP41FJ7S3Y1m0BjnjsO57+KWUGgZASyT LZgRvSQABV8+EOLEtk0Ng8lTmygRCYUPICB0vZ1KMLYl5mxMvQtQcz+5EaiPiwrzR0Zv u3eIYaE97ZYx/fKXtQbnN9ipHUkkrjcx+fi/cKx35Z8eSwFKqENWFQ5ueG4l0P8SgWuo Ui8ZYeI/wg0dkCRSFQ5YnZPyZLhmb5AniCAxBkw8LZy/33RE6AmwEmO4xC80ApDLN1z6 KHQntyg0TzF0NcYL/Abyq5OtPZbitIn+Xc0/KqwmWKiclRw755VbL7AOnPG2lGPQIxXa cZQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=EL/LVRgnCU+H58QIAhOB1fmH0r40YqxBGw/oXGKnlIM=; b=tCxdeOezD8nN8PV6CMgy+ZUvFFwI0ZTAy8xoVhnKrlSH1PoEHi6qlfYTKVrvH7zIwa wldGBU8GzEouLhDiy7hyt07GzEx9hpi7puHxSQgJmyDpDRyTd/vDcxIK6kvKXISjQ/3m zvKc/d4tgpyMtRohLDehligT+JWu1VFMi5Uqi5w4S05fHE40wBHc8ySNoOg7nfGMLR91 wq4w6OKsTWH7r7ljWw6CXtKk0mTvfHsP414lbOrXi4Z4V1qS5GMhqjguUFaxba4D78Ui Ky/V7SFGwflM3hnXDOpRTbDHpL2ot/xdIEXBJKufzKHX0OruLqnVOprRdR9ZNQTBqc/L 7pVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=T9KtAsID; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a170902bd8d00b001a27afc07efsi13279739pls.367.2023.04.18.02.55.12; Tue, 18 Apr 2023 02:55:20 -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=fail header.i=@nbd.name header.s=20160729 header.b=T9KtAsID; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbjDRJtD (ORCPT + 63 others); Tue, 18 Apr 2023 05:49:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbjDRJtB (ORCPT ); Tue, 18 Apr 2023 05:49:01 -0400 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89D291729 for ; Tue, 18 Apr 2023 02:48:56 -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=EL/LVRgnCU+H58QIAhOB1fmH0r40YqxBGw/oXGKnlIM=; b=T9KtAsID4kuFbipSt3j2y3O6j6 7tA8Pbxa+Ecmyi9EmEfIlb1NDyIKTvxV2xX7jUKHhGxfaPK11ARUrsn2RBbD5VqrYk4ClCB15mkS3 jIes66Y2aJSTEvb2PO79LkC/5fZU7fKxeT78c8KCDbzok4ty2KJlWJVRkt6TebCj+AEA=; Received: from p54ae9730.dip0.t-ipconnect.de ([84.174.151.48] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1pohxG-00Fwil-Jf for linux-wireless@vger.kernel.org; Tue, 18 Apr 2023 11:48:54 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 2/3] wifi: mt76: dma: use napi_build_skb Date: Tue, 18 Apr 2023 11:48:52 +0200 Message-Id: <20230418094853.95197-2-nbd@nbd.name> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230418094853.95197-1-nbd@nbd.name> References: <20230418094853.95197-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Improves performance by using bulk allocation Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c index 6c0174313d09..465190ebaf1c 100644 --- a/drivers/net/wireless/mediatek/mt76/dma.c +++ b/drivers/net/wireless/mediatek/mt76/dma.c @@ -853,7 +853,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget) !(dev->drv->rx_check(dev, data, len))) goto free_frag; - skb = build_skb(data, q->buf_size); + skb = napi_build_skb(data, q->buf_size); if (!skb) goto free_frag; -- 2.39.0