From patchwork Tue Aug 15 13:06:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 9901849 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5EAAC602C9 for ; Tue, 15 Aug 2017 13:07:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 512A2205F7 for ; Tue, 15 Aug 2017 13:07:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 461C726E46; Tue, 15 Aug 2017 13:07:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA78826E3A for ; Tue, 15 Aug 2017 13:07:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751460AbdHONG6 (ORCPT ); Tue, 15 Aug 2017 09:06:58 -0400 Received: from mail-by2nam03on0073.outbound.protection.outlook.com ([104.47.42.73]:15232 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751071AbdHONG4 (ORCPT ); Tue, 15 Aug 2017 09:06:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=66J/CAYIEbnasE/AFcV68/WM/wW0sLs+JJtLOhqFEfQ=; b=ZP1uq84d3cQURzH2KLFJ3XacW5pq4SFnMHCnBZcyy+fWbsOvRDSk7Qvbg/QUMFaOV+dboKjEvpmVSo3ieMwNDE85gy0cdmqLI2rACx+a6JHbrwT5U1hOA3C5XMe7FOnf6TzJaC1E2SelEejkf3RQH1apiZt/YSuNSFlttNsbQQI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; Received: from bars.quantenna.com (195.182.157.78) by BLUPR05MB1924.namprd05.prod.outlook.com (10.162.224.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.12; Tue, 15 Aug 2017 13:06:54 +0000 From: Sergey Matyukevich To: linux-wireless@vger.kernel.org Cc: Igor Mitsyanko , Avinash Patil , Sergey Matyukevich Subject: [PATCH 2/9] qtnfmac: switch to napi_gro_receive Date: Tue, 15 Aug 2017 16:06:32 +0300 Message-Id: <20170815130638.31718-3-sergey.matyukevich.os@quantenna.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170815130638.31718-1-sergey.matyukevich.os@quantenna.com> References: <20170815130638.31718-1-sergey.matyukevich.os@quantenna.com> MIME-Version: 1.0 X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: AM5PR0602CA0021.eurprd06.prod.outlook.com (10.175.46.159) To BLUPR05MB1924.namprd05.prod.outlook.com (10.162.224.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b1dee5d3-6091-4f09-f7cc-08d4e3de8108 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BLUPR05MB1924; X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1924;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TrpuU/FBeBBcEnSMm4xbtLRSIXAbocVSC/pP9javkPz5wJoAxY3j+ddFBgyMIAXTdJdqmyunThdcMTyupv6nKY9uAhj1BiJ361XBHWnMhddE0SkCM0VqbMZS/61nR31uK0Gfj0LJFecmJPbgHGhRxyMt0ARxqXvLmmeHqEa2hELKRj9kTiSdGuEP8zyptHrM8MZdfzljPTVsYkVHSHhSH4HZLSIvFaGqv0qEfVSm+m2jZTseXcvL9sqQgdrYLsVnx9j47l7Fcb59pst78fIie+MBXEPMInDjqaoI9WceWjcSXPoHVjx2HOqTWruOMzcgtvQ05cBy0NH22+fgoZaNNiWm1Bb5cqC6oXEYZmzY; 4:rwg77Fq2tTOPU8snrkiO9z/+6bna8RHiyBqsadrsNG8Z5VqtfdMbsAzO9idFSGkSSzv3OZcK6lfsggpqtlbgLlUcJ20FjNS8/fbtjlmVaUvlEpgHmlnEwfXVZrjyVtvA+vxws2xUVEKMjSQhfMCBTt9EV42wn7kxDZoFAT4aOK6mnH7Me1ZupZ4wz1rnarH+c2WrRxfxroaMdioQgZ4i/MBog4tSDqnqlPaquMiQ4ihmRHbmz2ub50Lvr/UUwP4n X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR05MB1924; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR05MB1924; X-Forefront-PRVS: 04004D94E2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39830400002)(189002)(199003)(86362001)(478600001)(4326008)(305945005)(25786009)(101416001)(2906002)(47776003)(7736002)(66066001)(81156014)(81166006)(8676002)(50226002)(103116003)(189998001)(50986999)(69596002)(76176999)(97736004)(50466002)(2361001)(2351001)(33646002)(6486002)(1076002)(48376002)(106356001)(105586002)(36756003)(5660300001)(68736007)(53936002)(110136004)(107886003)(42186005)(6666003)(7350300001)(2950100002)(5003940100001)(6116002)(53416004)(6916009)(3846002)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR05MB1924; H:bars.quantenna.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR05MB1924; 23:2FmEpfY9NMc6CMceATK/TYWCVmSbtH6QuC1FwWleT?= =?us-ascii?Q?ew9h4h/+amqlD16flrmPbtRrkIa1JuimYl62BFnrX9LW0w3CTNG1z68ORCXj?= =?us-ascii?Q?TCHZANwnQe+eiDfJVY/6nMgqSvslsbqIUMleFr1JPnaij9/YY1p8GXWrSCgP?= =?us-ascii?Q?t8HXq7buU6J+YAayRMCTJOrGkKJkc8BxS1yxpL4LSlhsW5x3Pk6fuvdDXvqz?= =?us-ascii?Q?mZd4sxxCwYT/5RhQcvUULpmNFq94xky1+baY2AY0+6kBlmf3NbWLW2mJx3C4?= =?us-ascii?Q?N1DYi2IcUJPqO+NyRLkvTn/85P8FYqAbD00uk3miD+eBVbaYJkbZzT9xYRpx?= =?us-ascii?Q?zAG69nSWUYgVzyhWM0An1IKQ6K/kPTR7/UXV81vVuZ796eJ9RKMHmST4n0ln?= =?us-ascii?Q?uekkngxWwOkIbYNjqiWWdZTY0AsBwHhuqe+mSBl+T14peGYXo3ptA6+vuUZJ?= =?us-ascii?Q?HE51wKXWiF3x0JVvxvvemDg/9oOk2xwvqlN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Yr2fYtOhW8ciI5wmKaCOJqChgQrFcK4n89ByxLMlXsG6qf8dRUFQTr0wkRw88HfV3TrKb5ZEb7N0oYGY+V3EX7OgcSD5wsx5cTdyKV+dyWaZpsHTlRHBNcOaCAOs1PHW0Dp9n4OfFXB1oitDUn7Wm4nzleYc+QLy2cEV5m1uXrPSQe/ngJvkSa5SiO6B7fmtvuhZvsZbX6xm8f2zSN6zmzVuuZScHOtx57ndoNnqJTH8A==; 5:UuQ3aOwTlYiuVprmwC8MCr9sOmuqYs+weykd+m+vO472ThRxX9I5+BQZQFCAJawOTZgZzVUHMg6E1AlXegyJ+V1T3iDwhoeZlcrEybjVNNlACNRNEpWB7LN+obJHDFEyqh6bqawrHWo7SWvHfBBUZw==; 24:dmymsUvZ+rn1iCg4f3v980NgdGI8LJToiHgWOcD/GK2CEImNKjqLBJgJHcjLU1kdS+K5agFG0zdr+mllQ1YUOSjfjK31//c5FtNoFx/J0/o=; 7:glARDq1o72KY9lzlHu15nWN+wbvvaa7exD6EXp0DTMRdMSaeY417Lmb5LLKZTepXIEsSsK5juZNT5wF1UxxJ4ha0iCMdNao748R2jBNR7DxMEZc3A1M9KEadUcPr8a3Fwd0Y8m+WNT0efy8KyUQDiVKoF2PGdbNkZS5ugreo1ZsD8C2e+5ii5U5RJCDjLM5fNZTdrx1sasK3go4gxAfUKcm1JoGH+gvmWazHEQzfH80= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 13:06:54.6300 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR05MB1924 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use napi_gro_receive() rather than netif_receive_skb() in qtnfmac driver. Signed-off-by: Sergey Matyukevich --- drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c index ae8acc1bf291..08b35dc30bc8 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c +++ b/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c @@ -762,7 +762,7 @@ static int qtnf_rx_poll(struct napi_struct *napi, int budget) ndev->stats.rx_bytes += skb->len; skb->protocol = eth_type_trans(skb, ndev); - netif_receive_skb(skb); + napi_gro_receive(napi, skb); } else { pr_debug("drop untagged skb\n"); bus->mux_dev.stats.rx_dropped++;