Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2856369ybc; Mon, 25 Nov 2019 05:23:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyvsJ6dQUT/PM+H9S69tfmYg3VV0UsMXDphrCaCYUFiZZFbsaBbQS0t7ES9OV7TWEQoPllU X-Received: by 2002:a50:e88a:: with SMTP id f10mr12957617edn.277.1574688190942; Mon, 25 Nov 2019 05:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574688190; cv=none; d=google.com; s=arc-20160816; b=Nia6ZlDMQ0x6iE/4tRarTFvTO//D/dIFsAEgAmH9+NESJsdNzb00usKl2mTkyLU2lQ 0BNV4ZDGowsktHcVOZLw58RIKnMGHqCuBWyM/MUR4ThQTTLzDcOd3XNe0aHe9shNcUG9 UZBIzchxFBsm0Qk5M3iUmPtcNSubE0qZqKmyaiN19aNp6kDKq0q7Otz9NbHkTMgK20jp KAL5KcM5C93W33xgz+AbN0uultSzh9k/n/5pQd3Vjn9YSBtqfhq3ROy7pVaHYMbirE17 pujI0RnOwbf2IXuVc13cBpVrteItv7PnkqO5gcJRBQkCMM43BQpMQk0Gqpe9e9YPCrup +lyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=TvVjkbK5Pxcy/QCzEdMHsrrTVxWi7TI4TX5tiwijjKg=; b=LLOG9MjZdKF2H2IXWvqts9YUuuE+2lSGFOuLv4XoztfCo8T2HUH1+7mgndERjOdEmm iFfSt02n08PJK2JSsv+dm22Ke+P7C8AotGnmyAFNX2YUl4FnfG+kziLTCdvPa7QGpjpz 6Ta/Y8KRbFL8Yg4aKG7bH1l8WbqAPzKNNKCYlTWb7XQHD0J7YwDz+1sT3v5JABQJNqoM zOjTThbjONELtDRXLleMhOUpYDPq53PdjKUI78JGK2uBqj2LL8DczatOGtMTquA06fd6 yQ9bpDDaA0nM5MSYs7dBdIte/O1AWazMAR+OhJLnQ8RkM9B5HupuuL6MBiPHVShP+qEJ PZcQ== ARC-Authentication-Results: i=1; mx.google.com; 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 4si6099862edc.4.2019.11.25.05.22.44; Mon, 25 Nov 2019 05:23:10 -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; 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 S1727790AbfKYNWG (ORCPT + 99 others); Mon, 25 Nov 2019 08:22:06 -0500 Received: from dispatch1-us1.ppe-hosted.com ([148.163.129.52]:37734 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbfKYNWG (ORCPT ); Mon, 25 Nov 2019 08:22:06 -0500 X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us2.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 1BD88700068; Mon, 25 Nov 2019 13:22:03 +0000 (UTC) Received: from [10.17.20.203] (10.17.20.203) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 25 Nov 2019 13:21:53 +0000 Subject: Re: [PATCH v2 net-next] net: core: use listified Rx for GRO_NORMAL in napi_gro_receive() To: Alexander Lobakin , Paolo Abeni CC: Johannes Berg , Nicholas Johnson , David Miller , , , , , , , , , , , , , , , 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> From: Edward Cree Message-ID: Date: Mon, 25 Nov 2019 13:21:49 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Originating-IP: [10.17.20.203] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-25064.003 X-TM-AS-Result: No-5.287000-8.000000-10 X-TMASE-MatchedRID: O/y65JfDwwv4ECMHJTM/ufZvT2zYoYOwC/ExpXrHizxQKAQSutQYXKTG zvndj/1xPEoGb8keCDpTvVffeIwvQ1Bbc4CjRSHyPaBTJyy84wXr4zRSn2nRLl7OLL/a8shj5Yn xWopAGWjWsfhGDQA5PSxOtaOcroMgwG9P01lFxWXnzlXMYw4XMAGLeSok4rrZC24oEZ6SpSk6XE E7Yhw4Fp5wSB09cXN2QCZtfbHlpu54jp5HPmPu0F/duMvqpsu6zuXIl1Bx0YydgRgbr8pwokojB pGsa9cji/EsGInbj2bR4t5pWXMyjuL59MzH0po2K2yzo9Rrj9wPoYC35RuihKPUI7hfQSp5eCBc UCG1aJiUTGVAhB5EbQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.287000-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-25064.003 X-MDID: 1574688125-yGbiBUDO3EwM Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 25/11/2019 12:02, Alexander Lobakin wrote: > I'm not very familiar with iwlwifi, but as a work around manual > napi_gro_flush() you can also manually flush napi->rx_list to > prevent packets from stalling: > > diff -Naur a/drivers/net/wireless/intel/iwlwifi/pcie/rx.c b/drivers/net/wireless/intel/iwlwifi/pcie/rx.c > --- a/drivers/net/wireless/intel/iwlwifi/pcie/rx.c    2019-11-25 14:55:03.610355230 +0300 > +++ b/drivers/net/wireless/intel/iwlwifi/pcie/rx.c    2019-11-25 14:57:29.399556868 +0300 > @@ -1526,8 +1526,16 @@ >      if (unlikely(emergency && count)) >          iwl_pcie_rxq_alloc_rbs(trans, GFP_ATOMIC, rxq); > > -    if (rxq->napi.poll) > +    if (rxq->napi.poll) { > +        if (rxq->napi.rx_count) { > +            netif_receive_skb_list(&rxq->napi.rx_list); > + > +            INIT_LIST_HEAD(&rxq->napi.rx_list); > +            rxq->napi.rx_count = 0; > +        } > + >          napi_gro_flush(&rxq->napi, false); > +    } > >      iwl_pcie_rxq_restock(trans, rxq); >  } ... or we could export gro_normal_list(), instead of open-coding it  in the driver? -Ed