Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5324278ybc; Wed, 27 Nov 2019 02:14:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxSc3CvhcrpmuBM+IQlAuqzdno4cZHe4sIPnuxDEzZQpgRT1+tPSJ278vxuFAnaMKAoeo9X X-Received: by 2002:a05:6402:7cd:: with SMTP id u13mr30310112edy.246.1574849661212; Wed, 27 Nov 2019 02:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574849661; cv=none; d=google.com; s=arc-20160816; b=NMsx7nQkhADS4K9P4UCCLoE0nw0/V1CfK6XbWuqubX9SKoZbFXO8L1bjkIpyxTH9tu nFBLQBbXwFXXLI5oe/nkk8HHKiOGHBj0jah+B07fmOmIjFseaGWm/fZvjZZqnu8Vb5rZ PCQNirjr8RSOIgAD9YB1GEitBvUi4T3j+rpfn4gRc9nZbY879zhthRmB0TnI7HYCeU5b Wfm8qRo7QH7Y8D/1AlFr0b7TicqHZyMTlAAqLrFth4AWqczUupWbOrSr/DyfS1SScJMQ cQHohggLL8BpIfVX0I73B3xz0Ic/zVMuXphyy+1vjABZDrzo3pmheOp/lLl9TQy3NeY/ 8HLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-filter:dkim-signature:dkim-filter; bh=lE5ZjRG9JmDTb+3gD8rd1avjZlPCQcl4MjmyxAXK12o=; b=XZvneST/1/wA01xzg36Zjl9rYqsvKTvncHhB15JkSl2P/yP/jwOeqFwTMmF364HXMt EmWmhyoQNGIyGWRqv+BEtGuvkzHrqcgJdIFABMyPayfCxUT/ppF4AGHt1XYqRN5oBg4t S3dqpA29VMwTj12Om+yK68gUinkoK58F4PrdtK1AWVhWaLefXq64V8nM2Nk7x1VefhvB BhORYPYQAnp17qjYPCGudmKz0QDb3d/W9UlSqzOkBB8ueJlfJyIUrGhtrwN+NOWGhy9W Ng8nXuE13jf9BCbGxxxvetnKdXgo3H0Jxv8oJ50J0RL856kF2VdTeqWFZ1yyv8XiMQuQ RbyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dlink.ru header.s=mail header.b=QB9oNjfy; 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 h17si8929641ejy.239.2019.11.27.02.13.49; Wed, 27 Nov 2019 02:14:21 -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=@dlink.ru header.s=mail header.b=QB9oNjfy; 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 S1726673AbfK0KMw (ORCPT + 99 others); Wed, 27 Nov 2019 05:12:52 -0500 Received: from fd.dlink.ru ([178.170.168.18]:50230 "EHLO fd.dlink.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbfK0KMw (ORCPT ); Wed, 27 Nov 2019 05:12:52 -0500 Received: by fd.dlink.ru (Postfix, from userid 5000) id 1E90F1B20138; Wed, 27 Nov 2019 13:12:49 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 fd.dlink.ru 1E90F1B20138 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dlink.ru; s=mail; t=1574849569; bh=lE5ZjRG9JmDTb+3gD8rd1avjZlPCQcl4MjmyxAXK12o=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=QB9oNjfyB6ZyhhLnx62KtkficOqyPSHP8yIDJwE2LObLbVmXPhskf5KpTlacf5Bs+ 9v2Tfn0DQvgfZcyr9ZiUUMgsvOlW4VISs7qr+g3lAIfeMasSZb/MzGIaBrW/gPdddk E5HAgR6xE5vgKT+xP05CAUgFN0NmchUGIL6Z6KtQ= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dlink.ru X-Spam-Level: X-Spam-Status: No, score=-99.2 required=7.5 tests=BAYES_50,URIBL_BLOCKED, USER_IN_WHITELIST autolearn=disabled version=3.4.2 Received: from mail.rzn.dlink.ru (mail.rzn.dlink.ru [178.170.168.13]) by fd.dlink.ru (Postfix) with ESMTP id 98EEC1B20153; Wed, 27 Nov 2019 13:12:34 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 fd.dlink.ru 98EEC1B20153 Received: from mail.rzn.dlink.ru (localhost [127.0.0.1]) by mail.rzn.dlink.ru (Postfix) with ESMTP id 420D21B22678; Wed, 27 Nov 2019 13:12:34 +0300 (MSK) Received: from mail.rzn.dlink.ru (localhost [127.0.0.1]) by mail.rzn.dlink.ru (Postfix) with ESMTPA; Wed, 27 Nov 2019 13:12:34 +0300 (MSK) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 27 Nov 2019 13:12:34 +0300 From: Alexander Lobakin To: Luciano Coelho Cc: "David S. Miller" , Edward Cree , Jiri Pirko , Eric Dumazet , Ido Schimmel , Paolo Abeni , Petr Machata , Sabrina Dubroca , Florian Fainelli , Jassi Brar , Manish Chopra , GR-Linux-NIC-Dev@marvell.com, Johannes Berg , Emmanuel Grumbach , Intel Linux Wireless , Kalle Valo , Nicholas Johnson , "Kenneth R. Crudup" , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: wireless: intel: iwlwifi: fix GRO_NORMAL packet stalling In-Reply-To: <7a9332bf645fbb8c9fff634a3640c092fb9b4b79.camel@intel.com> References: <20191127094123.18161-1-alobakin@dlink.ru> <7a9332bf645fbb8c9fff634a3640c092fb9b4b79.camel@intel.com> User-Agent: Roundcube Webmail/1.4.0 Message-ID: X-Sender: alobakin@dlink.ru Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Luciano Coelho wrote 27.11.2019 12:58: > On Wed, 2019-11-27 at 12:41 +0300, Alexander Lobakin wrote: >> Commit 6570bc79c0df ("net: core: use listified Rx for GRO_NORMAL in >> napi_gro_receive()") has applied batched GRO_NORMAL packets processing >> to all napi_gro_receive() users, including mac80211-based drivers. >> >> However, this change has led to a regression in iwlwifi driver [1][2] >> as >> it is required for NAPI users to call napi_complete_done() or >> napi_complete() and the end of every polling iteration, whilst iwlwifi >> doesn't use NAPI scheduling at all and just calls napi_gro_flush(). >> In that particular case, packets which have not been already flushed >> from napi->rx_list stall in it until at least next Rx cycle. >> >> Fix this by adding a manual flushing of the list to iwlwifi driver >> right >> before napi_gro_flush() call to mimic napi_complete() logics. >> >> I prefer to open-code gro_normal_list() rather than exporting it for 2 >> reasons: >> * to prevent from using it and napi_gro_flush() in any new drivers, >> as it is the *really* bad way to use NAPI that should be avoided; >> * to keep gro_normal_list() static and don't lose any CC >> optimizations. >> >> I also don't add the "Fixes:" tag as the mentioned commit was only a >> trigger that only exposed an improper usage of NAPI in this particular >> driver. >> >> [1] >> https://lore.kernel.org/netdev/PSXP216MB04388962C411CD0B17A86F47804A0@PSXP216MB0438.KORP216.PROD.OUTLOOK.COM >> [2] https://bugzilla.kernel.org/show_bug.cgi?id=205647 >> >> Signed-off-by: Alexander Lobakin >> --- > > We don't usually use "net: wireless: intel:" in the commit message, we > would use "iwlwifi: pcie:", but I don't care much. > > Otherwise: > > Acked-by: Luca Coelho Thank you! > Thanks a lot for the fix! > > Dave, I'm assuming you'll take this directly into your tree, right? Also please let me know if I should send v2 with Ack and fixed commit subject! > -- > Cheers, > Luca. Regards, ᚷ ᛖ ᚢ ᚦ ᚠ ᚱ