Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp162747pxk; Wed, 9 Sep 2020 01:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsIG572eWqzJTyM5a9saxLo4AbMNrB+riPYG6C//VCGXcpj3HsT9XvKfwBFY8+rU+y8efv X-Received: by 2002:a05:6402:b68:: with SMTP id cb8mr3082009edb.350.1599641582847; Wed, 09 Sep 2020 01:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599641582; cv=none; d=google.com; s=arc-20160816; b=gU3y5jIomAgKANYZaDXZagcY2tnnJe55jcovbv0jsvCHENRTeLncesjSZ+so68fyHm 7ArGqLF6cxFQqD0WqJ35gwUO0bfXIJP04v1iJ9nFYwDQ4c/GeQSb7ycKFeNBn3PWZWwv Q3ZKsUCkAkb2soNZ4yetroVY6ITvTQGj6NEY1XpP12Cafduka/tTmj8UZ3v/s6f0qMVX I2kFHbrB/0pGQkhusity1vDCaTu3X4Kpcgpz+syzwHvWSKPV8Cu7GujujqMSFYe3SLB0 6S4n4obgzJvSjVwzqwjqtNNANF+/PlcnWMCfBKXPGCTd28nU0n2/KruYee7Nl8L1V+y6 IeVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yN3vCayVSf9I8W5I2bTQ/N3oBAE8jwtM/iHvr6c/9gw=; b=CoEj23X9AWI+Qj4jg12oKsy0i5bFSnNxUZXZRkqX5OWvQNQQh3CEx6Ic2LT9WPoCmC 9XOjHWVwnloJjlbUGUrTQWSdw1EpTIXWePnQ78RxzXBGSdq1Ec1Xvd8yavt6Han7XGeo aQ690xMl6FJBY1qKKso3K4W0Qm3HllfgDYuGHx3+yB9MzQP+QgxOhbk7AWn7T+0miHtV LwINMm/OEwKZR9AIlson2obLe1OZTkJd1CqL+MFI1m6YFywFEVwPjc3cBKdDHeZjMKS/ K12PKp9dFQ+svagt6JivPlfwOoDeVyXllmyzK9FuMLShBRoXoQqHvmS4cjuNlSkj5gBF ieWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pXzO2ZOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si978959edo.347.2020.09.09.01.52.40; Wed, 09 Sep 2020 01:53:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pXzO2ZOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728551AbgIIIuc (ORCPT + 99 others); Wed, 9 Sep 2020 04:50:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:43098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbgIIIua (ORCPT ); Wed, 9 Sep 2020 04:50:30 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C80A2218AC; Wed, 9 Sep 2020 08:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599641429; bh=3brvJRSqkSgs/2gqVdKI2of8iGbX+HzT97KJlz3luXY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pXzO2ZOIUIkiJTzva5kMNDyZDu71A/X4nx147Zo3tMAhVckYbbK1mqZ6OJxf+dLUz K1pYBgu/8k1pS1by1NGNXZbS85P8vtqcHmjUTYn1BTi8e5zqwgNYqTF3TBgCPz3Cpr HQng+gm3VKPXaFsSTsvHHiJooaMH7HigMCjELsmU= Date: Wed, 9 Sep 2020 10:50:39 +0200 From: Greg Kroah-Hartman To: =?utf-8?B?6rmA7ZiE7Iic?= Cc: Edward Cree , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Alexander Lobakin , "David S. Miller" Subject: Re: Re: [PATCH 5.4 086/129] net: core: use listified Rx for GRO_NORMAL in napi_gro_receive() Message-ID: <20200909085039.GA583189@kroah.com> References: <20200909063718.GA311356@kroah.com> <20200908152229.689878733@linuxfoundation.org> <20200908152234.000867723@linuxfoundation.org> <70529b6c-7b00-d760-c0c0-42f0ea5784f3@solarflare.com> <20200909072101epcms2p457639b69a22434d140c01aeecd3ef46e@epcms2p4> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200909072101epcms2p457639b69a22434d140c01aeecd3ef46e@epcms2p4> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 09, 2020 at 04:21:01PM +0900, κΉ€ν˜„μˆœ wrote: > Dear Greg, > > > > I didn't intent to gain performance from this patch. Indeed i requested this > patch to resolve the bug we are experiencing. > > > > Different from kernel 4.19, napi gro made additional data structure called > rx_list, and for some reason, the list is always used after napi_gro_flush, > which is intended to be created to flush all gro (both merged and non-merged) > packets to network stack. Network packets received from network interface are > passed to rx_list once, and the rx_list is later flushed to network stack. > However, on the other hand, napi_gro_receive doesn't insert packet to rx_list. > Instead, it flushes to network stack directly. This causes out of order because > there might be some packets in rx_list (which has groups of packets that are > not flushed to network stack yet). If the packet from the same stream remains > in rx_list, and napi_gro_receive on next packet (from the same stream) is > called, this posterior packet will arrive to network stack first, which causes > out of order. > > > > And two patches mentioned by Edward are already in the branch. The patch i am > requesting is somewhat missing in android kernel, not sure the reason why. Ah, you are right, this is odd. Edward, those patches are already in the 5.4.y tree, which makes this patch not being present odd. I'll go add it back.... thanks, greg k-h