Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp812886imm; Wed, 25 Jul 2018 06:41:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeMzApB7qcs+9wGaJbOpFQjHzPfFFFzt5F5SSc6fC0xR17oWXO+gMI++nQDnDTIMZnB94Wd X-Received: by 2002:a62:1016:: with SMTP id y22-v6mr22302293pfi.109.1532526109237; Wed, 25 Jul 2018 06:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532526109; cv=none; d=google.com; s=arc-20160816; b=EAVyBc6WUNF6AvgORL86mH43uIfIqsXT42ZkS6HtWNfC8N+4t5AjORSSpDcewKmsRL aFij0QEmjGQyyEKmI4EI2bn978vNyyYAAv5WYEBGLbamCBXjHHsWcxzKC8tkHGSwo+CB gK55NGY3TVhT2MabDW5YH6t0VayDxnjon7NDj2g7MGYHZCRcn7s8XQ2571ybPUSe+fqd M4V+4zTL0iAoAWSkqdnaycY5PrC4G1Btw3P8hcpGK06i229+WkIv8WtNAQ9TWrabQOpd UeCCqMydXwk6snEO6xN6SSrj7gU2O6H6i+jP91cbMj45IBNhZ2XK6k8oq9jKyfjhGLVA HLGg== 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 :arc-authentication-results; bh=z2N16S69SiSlUm0+ZD/M1KU5SFa7ViYac+7ouvPi47Q=; b=zG5I7Hz6Cd3NLnL9eLHRCGBZMydxqYQG0Hk29TiSCY54Wi6blJeRBDxE7upYr8iy2F jsYZwGU18CC2OmhZ52WzgdM7A91RSL5YBbEUQ2UPMVDkojL3WPOGZfnfQfOzV/eybXVS aBkk8kqEtxTWuvRE9f/aPZg+f90O+1x3o0DoXPhpEYE1RxTlTFVm6HLXe5Sy2r52TYif DWgLoWU4UqMz7HYSC7H71E7iAEPVS+VnMi6QXcoDDY+xAFjf6cj0+6zd9TDwZhDO8P75 4RjNJI7pekEYwiBl7Dubdj4hUdfDLfsjZbsKDBqN1mb9cENpz5lMcu5pMhMcDzVWKFIt 4l9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Piu3GNEq; 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 e16-v6si12054997pgv.561.2018.07.25.06.41.34; Wed, 25 Jul 2018 06:41:49 -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=Piu3GNEq; 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 S1729088AbeGYOw2 (ORCPT + 99 others); Wed, 25 Jul 2018 10:52:28 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:44124 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728963AbeGYOw2 (ORCPT ); Wed, 25 Jul 2018 10:52:28 -0400 Received: by mail-io0-f196.google.com with SMTP id q19-v6so6335493ioh.11; Wed, 25 Jul 2018 06:40:44 -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=z2N16S69SiSlUm0+ZD/M1KU5SFa7ViYac+7ouvPi47Q=; b=Piu3GNEq0WoEMLK/2jgA6d+RphezkWo/FoCzwLNkrS7ku3s0NHgeV0TOtGfx+yR4JG 14KmXBsfjg7h2PIP3ZrYAmjz4uhtnvYk181QNuCg8vRnOD3/e/bSpRks71FBZmqc9sp7 1w5W3KoOo9YH4f50kH7cuUgUzw0gyBCEj/httkqEZXtfpIJiLmYycZ2JsaNAOaHSZFro 2FjfH/z7oYMO3BaVA0S7tm9zo8CmSFYyt5nkndHnTuzbiyp3pXIguo2Y4H7ERirK2x68 dWUEpeYEVLM35Hh1ZYuMimN99w0vLdfPv6Tb2HQDcByfnOgMZSTa4175F+dZlCzE1KSA wMDQ== 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=z2N16S69SiSlUm0+ZD/M1KU5SFa7ViYac+7ouvPi47Q=; b=lve6j4aQZZ6/S7CPSzrUwrWYcE1OsHxBHowaPSVYkbeN48LWk649BLEMPyWMlWcLnW aPdOWGpjWTMaK+wztNGmyNVyCKmYEE4kWkFErj6p/U8x6nr9u9uTMyPwnGaBgQPVpf5m iZy50x9RYyKZ2YtFhgxEsXepRaA7a2ka6zEf1Km79wwGGxF4wlzIg+7U2VCmCEZlIlIA pRHoyBsxw+PpLOCjk+l28OEXXbp9tUSOxHuBr9nXDosPsopzvrseY3bXd9t08N2Ir87W +PRwzhfsFqTVcfiEwSVQJoesJT97D3zuxIFf5Lrg35GZbJAo7GS/4VgVEuFg9RqqYBER ESXg== X-Gm-Message-State: AOUpUlErOz5h+lC05F42LAYlYXNnPgWtets8Xh3acKuq+IJs5U/A6p2C mp6DkwRM0khUAvEGUDvDbVIP9K+MNQf3DCd8jF0= X-Received: by 2002:a6b:c8c8:: with SMTP id y191-v6mr16819247iof.295.1532526044563; Wed, 25 Jul 2018 06:40:44 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:7a47:0:0:0:0:0 with HTTP; Wed, 25 Jul 2018 06:40:04 -0700 (PDT) In-Reply-To: <047bc12f-9eb5-e512-10c5-6334c494c77e@gmail.com> References: <1532524010-11855-1-git-send-email-laoar.shao@gmail.com> <047bc12f-9eb5-e512-10c5-6334c494c77e@gmail.com> From: Yafang Shao Date: Wed, 25 Jul 2018 21:40:04 +0800 Message-ID: Subject: Re: [PATCH net-next] tcp: add SNMP counter for the number of packets pruned from ofo queue To: Eric Dumazet Cc: David Miller , Eric Dumazet , 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 Wed, Jul 25, 2018 at 9:33 PM, Eric Dumazet wrote: > > > On 07/25/2018 06:06 AM, Yafang Shao wrote: >> LINUX_MIB_OFOPRUNED is used to count how many times ofo queue is pruned, >> but sometimes we want to know how many packets are pruned from this queue, >> that could help us to track the dropped packets. >> >> As LINUX_MIB_OFOPRUNED is a useful event for us, so I introduce a new >> SNMP counter LINUX_MIB_OFOPRUNEDROP, which could be showed in netstat as >> OfoPruneDrop. > > > Okay, but why tracking number of skbs that are removed ? > Because we want to know why packets were dropped. If that could be show in netstat, we could easily find that it is dropped due to ofo prune. > Skb can contain many segments (because of GRO and TCP coalescing) > > So your claim of tracking dropped packets is ill defined. > > Also I prefer having net tree being merged into net-next, since your patch would > add a merge conflict. > >