Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2803464ybc; Mon, 25 Nov 2019 04:32:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxhk4uEsBuXxSqaJeOqADsC8G0vetap87VqIzLr5rCgaXFzg82WDtwIJoGmwPNJ0+KnZWAY X-Received: by 2002:a17:906:6043:: with SMTP id p3mr37159322ejj.103.1574685133730; Mon, 25 Nov 2019 04:32:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574685133; cv=none; d=google.com; s=arc-20160816; b=purfcaLXib8p+TX/EW/95h/G08/rfARPzr8+ZC03981cLI8qwp/tZrg+Y05Kb+q2AF 57jK5yjGg70n73RqlmPK1b0EOu8/lUDBo2bw09uI6AxVmcxNL/OOqAIqnsTMtJDZpHFu c/pRjp+HMp2DkoLCZs0HYKHn+MxnWndWR1Hm8gCZ7ZiJf3p8wSOk+u0QkfBWpe76924y Kvzrh26zcpUx1i/QIDrMydyhGkSYcfZu4Oh9OA/AXFJ9rZ5oqYxqNjpHjucn29WD2ZFL nbjD6es6pWkw94TFQ2VWvL+aZNc18c0vwa6LVTXCzNKWiQcmT+Foj4Dybf58wP8m7Hp2 Zezg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :message-id:in-reply-to:date:references:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=Qc8RaXGYVncKgeh8MDTOtG+rwe9m2aXhbh+Q7GUS7rg=; b=FDo9Ga5YvpIEJKizI6m4aF4i22RnQpZfkvBGzSTVDOoi5fL9EqN2Di70c2zx2brbF3 XEjRYS4ZC6eWUXUOcqBzK0IbKbsOEe1SQNKZdOWI2knomM/ap/DjlPIqXjkxNq+kdYW7 I2TUmCiXcZQeJxNoVOMUjFt5sabV/eWDwjttQnMNyYFhPkshtnJK7kYX0hKwTAyZMQw+ S1kxGOjR/P3tN7rKXYTKeKWAKVIAxo5E74uZWSDGJAf9H5ioFW4GiuREdLHRPHLSDLz1 vDCX5CQVe0I/TWQhclRh199BJYNPYMTYI7psKIUowgnlCe6aDHaSjxQZR/lmuq9spl/c b/mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=mLjUl6Gx; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=EElOjMlB; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si4545852ejv.235.2019.11.25.04.31.36; Mon, 25 Nov 2019 04:32:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=mLjUl6Gx; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=EElOjMlB; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727111AbfKYMLM (ORCPT + 99 others); Mon, 25 Nov 2019 07:11:12 -0500 Received: from a27-185.smtp-out.us-west-2.amazonses.com ([54.240.27.185]:55104 "EHLO a27-185.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfKYMLM (ORCPT ); Mon, 25 Nov 2019 07:11:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1574683870; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; bh=WA8L41etKerEMPhjYhfgg3Lt6XxJcn9BfYkWy5icFe8=; b=mLjUl6GxoW/wRN3ZqrC367pGr9y4jV9HigYWQU2sW625FJKw1J04bx38dNjo6q6N BtbL/k4zi3ig+003k7BwJKgWDqiMRrxyxNvFV+XVK8hl8ITF0TEwQYMfhJJagtcXl2T 58NcuxSYtw5o/f1iXPlFSHtpJFPPrJvYqx+f98jA= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1574683870; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Feedback-ID; bh=WA8L41etKerEMPhjYhfgg3Lt6XxJcn9BfYkWy5icFe8=; b=EElOjMlBWBaXPq9Do5BLtt7WQftCI8aw9rjLMpDv/SQIOf/9CVqKPTH6jCUBhrfe cn6O+afjP7F597M4F3a5amFKnlhOYvq5JMhe06b232uhb3e40Q0N26+Q1ZR6/5yGy0X sYEX2/JekMlolXHqhhN9ACz0zk2GSZmYR4/uA/Qw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0ECF5C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Paolo Abeni Cc: Johannes Berg , Alexander Lobakin , Edward Cree , Nicholas Johnson , David Miller , jiri@mellanox.com, edumazet@google.com, idosch@mellanox.com, petrm@mellanox.com, sd@queasysnail.net, f.fainelli@gmail.com, jaswinder.singh@linaro.org, ilias.apalodimas@linaro.org, linux-kernel@vger.kernel.org, emmanuel.grumbach@intel.com, luciano.coelho@intel.com, linuxwifi@intel.com, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH v2 net-next] net: core: use listified Rx for GRO_NORMAL in napi_gro_receive() References: <20191014080033.12407-1-alobakin@dlink.ru> <20191015.181649.949805234862708186.davem@davemloft.net> <7e68da00d7c129a8ce290229743beb3d@dlink.ru> <746f768684f266e5a5db1faf8314cd77@dlink.ru> <3147bff57d58fce651fe2d3ca53983be@dlink.ru> <414288fcac2ba4fcee48a63bdbf28f7b9a5037c6.camel@sipsolutions.net> Date: Mon, 25 Nov 2019 12:11:10 +0000 In-Reply-To: (Paolo Abeni's message of "Mon, 25 Nov 2019 12:42:44 +0100") Message-ID: <0101016ea2790643-5f91d22f-e322-497e-8c58-34f5942bd2af-000000@us-west-2.amazonses.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SES-Outgoing: 2019.11.25-54.240.27.185 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Paolo Abeni writes: > On Mon, 2019-11-25 at 12:05 +0100, Johannes Berg wrote: >> On Mon, 2019-11-25 at 13:58 +0300, Alexander Lobakin wrote: >> >> > Agree. I mean, we _can_ handle this particular problem from networking >> > core side, but from my point of view only rethinking driver's logic is >> > the correct way to solve this and other issues that may potentionally >> > appear in future. >> >> Do tell what you think it should be doing :) >> >> One additional wrinkle is that we have firmware notifications, command >> completions and actual RX interleaved, so I think we do want to have >> interrupts for the notifications and command completions? > > I think it would be nice moving the iwlwifi driver to full/plain NAPI > mode. The interrupt handler could keep processing extra work as it does > now and queue real pkts on some internal queue, and than schedule the > relevant napi, which in turn could process such queue in the napi poll > method. Likely I missed tons of details and/or oversimplified it... Sorry for hijacking the thread, but I have a patch pending for ath10k (another wireless driver) which adds NAPI support to SDIO devices: https://patchwork.kernel.org/patch/11188393/ I think it does just what you suggested, but I'm no NAPI expert and would appreciate if someone more knowledgeable could take a look :) -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches