Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2609417imm; Mon, 10 Sep 2018 03:58:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYpLXT7RMLgmTbIx7U8umghW04ni61+RLN0Hr4Wp1vZHGJ4w6DEcdAC4e6fe+1m1gSm586v X-Received: by 2002:a17:902:7402:: with SMTP id g2-v6mr21208842pll.321.1536577114099; Mon, 10 Sep 2018 03:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536577114; cv=none; d=google.com; s=arc-20160816; b=KfuvTi7nO+BQ9AYd9l4IvA5WVz2lp+MaJWGiMpHTmV70jzj5QQDiBfwmIoC58fjvTM OJ1BjFL3XsLLelmXjpldG6pWbaD5+WXsR+Wf4EIO04RvIvCmUeWvcRDFl+On+36YGvZ/ R29GfxZZGu4gYj5nz0muDrCi99tT/SMnTU1aSFX99/Xc5HKKsSePAYhbnt33fnXPOYHa 7PM9ayUS5cFbjDvMe3t6XbnAKNMoPL6Nz7JZPhfYeXzmNW+aNOMg63ut23GLt7T3GbtC us7Cy3KebqCrw+gsYRK/jKtp18PkF1IDNs77O80eoh1Xb61uhnh2zqudDL+KXfOiNY5V trtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=JhJux/TrATQkJFJbUXC7Z4/qxmcZumGsJj8M0WMpyl4=; b=aQhaCy7tfI+xoBrA4KISIDmkDny1IVOCJENGdwogRv5s3owDf99yKebsSxxuoxEb7/ Fl7HbTVYC9mqj/Q4buDNsQhavonXWQgK6T2u3H+ULw8rMiPY4PZ8/xi/Ws/hxOY7MGyp QGQ8S/fjF+fpYJhu+QUAWAeYaTC4U8QJ0XyzTbYP2VDInNadx5Hzkly8hQciTH1oxEkn F4ghElualfRlBCCc6cqIEAdh65fiX/UGE7VIpkErqfUpvdG5mBJqSIyVW9Ptel2GRh+r 2ReTnf56+wKSAJynAKGBxWdAVrJIjxdEIBLaM11F+YhBiN9AvUl5lSLRZse1+3jpftt6 CMiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nsGTibra; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si17603810pga.618.2018.09.10.03.58.19; Mon, 10 Sep 2018 03:58:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=nsGTibra; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727949AbeIJPun (ORCPT + 99 others); Mon, 10 Sep 2018 11:50:43 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:39761 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727096AbeIJPun (ORCPT ); Mon, 10 Sep 2018 11:50:43 -0400 Received: by mail-io0-f196.google.com with SMTP id l7-v6so250367iok.6; Mon, 10 Sep 2018 03:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JhJux/TrATQkJFJbUXC7Z4/qxmcZumGsJj8M0WMpyl4=; b=nsGTibrarKXen4g84DV5C6qZJldDPR7JD6Lzcc45VC/iYo6wBBX75tcmf6DdQ9EPgJ VfkP2AehIPxEWN/Ueago+A+nK3VjKwxxEGtmXPPsXY7S/QxD2v0N7sTXuj+SWfWxJcNw +X4e9+z8/E6t6SQ8DWH78AA2r/CiRoKPhD6hNWU9d52/f8bGmaxBYbZeWVURRrtadEeY TrtLmzEamjbwcaj89z9j1Ky2vLvqkNnfBd8OODJGnShU53ohmc2e5K4l71Oq6wQVqwQ8 J/a+XlqSp4YXOiJk5ULmA5HdO38Z852z3xE6fgLfCYMkBkiWerc30tewCnrVBLOVfa+6 cn0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JhJux/TrATQkJFJbUXC7Z4/qxmcZumGsJj8M0WMpyl4=; b=iLmoQS5tAeaC2XwqSXKkZUzIdsw6VFlkHDnOSiHlAyfgbyGCdaEaK2ryxLJOFl71AP 1uiwNHYuYvK7D6yTDGO4Tz+oWALnPgm+OlveHz+aaBW/UYUrq+kH4YgC+QapZfjtfUOK FeStrRTLqQyB8w9OYeF0+tST/omYtgi7mvfg33Bq7+5pxWuZQ0A2vxRXFoBxD6rorqlx GF5GEW8O9WUzXz0LhRYfB0sdF2NlniA4iXAt+kWat3O7/GBB/aDixyrLSXTYMeJYcllv lVM2kitzckGowscHKlCLt7Mi86LHwkoKJh0NCCfiODiRqTjDGCj/xScgACgu82k8wHRK 0Srw== X-Gm-Message-State: APzg51A5b6exgI9Efz0OV4rsRwXHOrFJaQL+PYyUzqf3rFxXRqtvJNeB iokjwZMJTFI+xBMc14mOVUyly0ksxyBbSUUmkh4= X-Received: by 2002:a6b:c8ce:: with SMTP id y197-v6mr15918464iof.295.1536577033987; Mon, 10 Sep 2018 03:57:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:7315:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 03:56:33 -0700 (PDT) In-Reply-To: References: <1536462862-11767-1-git-send-email-laoar.shao@gmail.com> <1536462862-11767-2-git-send-email-laoar.shao@gmail.com> From: Yafang Shao Date: Mon, 10 Sep 2018 18:56:33 +0800 Message-ID: Subject: Re: [PATCH v2 net-next 2/2] tcp: fix the error count of tcpInSegs To: Eric Dumazet Cc: David Miller , netdev , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 10, 2018 at 2:32 AM, Eric Dumazet wrote: > On Sat, Sep 8, 2018 at 8:14 PM Yafang Shao wrote: >> >> In RFC1213, the tcpInSegs is the total number of segments received. >> While currently it is the total number of SKBs received. >> The number of SKBs may be not equal with the numer of segments because of >> GRO. >> So fix this error count. >> > > We have discussed this in the past and the consensus was it was too > late to change this. > > IP counters have the same issue, so after your patch, we would have > quite a difference between transport and network layers. > > Adding all these max_t(u16, 1, skb_shinfo(skb)->gso_segs)) everywhere add a cost May be we could give a comment here why we do it like this, otherwise it may make a misunderstanding. Thanks Yafang