Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp826921imm; Wed, 25 Jul 2018 06:56:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfx1LW7wuhyn3PVcUFW5I5JJEoHW1lKAaRga5rL0dWj6srvU+ItpvptyEGBU9+LOT87ufSD X-Received: by 2002:a17:902:a40b:: with SMTP id p11-v6mr21289896plq.228.1532526988042; Wed, 25 Jul 2018 06:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532526988; cv=none; d=google.com; s=arc-20160816; b=qtf+Y706LRjlJZ4Zzg4AAFq8JBI7wAIbikKFXRrsocrp49UwaLpOhhWy9w3wt64vuX Fe/aGaoiol7iuVIuSNr1WOqR5g0+6Xm4UYhujJIKdzyLz8apE6pq93897caiqmdidX1v IgDZJdl3BAuIlLUzb7cLfBl7CZg0NCP6a3lx9eMbuogUAXFKiRFEshkGquUAdzQ6brLl knsVymUh0oMceI80c4gztPEQg4cNlOqje5IZcGsNtOP1AeL82BeRMc5Zu+yGSk1PJco8 7yQcntqyuTRSeI0qcqHud1nF/p/J/3Rj7ZG/D7U7APYaLjqTDB61xpjLsUdtmr7TaWC6 hnTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=fA2m559H4MYtAYPVDpBveCgRZKhk3mqnDdKcvlxNrLE=; b=JEE4Cq52lorS4QL1l8DsHKrLGeO3tcO21Lmhbyv4536WoAnHgZJtcm9ChhmUaXN54b 6jRWNx5w+9q6ZLbIBlHlqyrd7nX7pMDxzHnRwmSBrVD98kbv8+hfGdxgfTfjo4pmp+KD 2RYUpvDkTzrSUkyYt3PLPqbqPZ4X3Y4ptwQn5WNeCVsiJSfbc30/M9wNJSwVZkW+UMGS BbDDtGlqpLtw6ZBDSw/dPCZz91FkF1w5HrJ3i9eE3zxoOXm+9mrfLzjUe0EgrpnCKOj9 JIx6DRafu4l3NIDvF6lLruex6j8sd1vQbUaJtdgN6ZqvIxCfO4PDgSb+d7qX6YVy7LD9 +IxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=heBWW+j2; 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 cc6-v6si6190957plb.458.2018.07.25.06.56.12; Wed, 25 Jul 2018 06:56:28 -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=heBWW+j2; 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 S1729133AbeGYPHK (ORCPT + 99 others); Wed, 25 Jul 2018 11:07:10 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36236 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728308AbeGYPHJ (ORCPT ); Wed, 25 Jul 2018 11:07:09 -0400 Received: by mail-pf1-f196.google.com with SMTP id d14-v6so1788488pfo.3; Wed, 25 Jul 2018 06:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fA2m559H4MYtAYPVDpBveCgRZKhk3mqnDdKcvlxNrLE=; b=heBWW+j2SC1dSMNfzG8fH+OaSV0OLwerv4GmHXQu/W23adiGkK4Y5UB1jSZsUGaZvl PdAaCGir13LtPj9+DLV5iEvvIPhDXlt0DxtdhDmLDku5c1TFRVTvwWljPg0dzGIeuc+e DK9pzYUEdF4fzNsqxqFdorJbOmgx+EPpvOSJUtz8BIXGBrqU8vgRkmqX0E7jbWmLqiir XkJ7A+9JLFowmEgydPGWuGSJxc9gEQ5H1fvXb5lM3d0vA8lYwLaXiZ9D0ZpN0r1VCEio g9N0LspppFLQaMFOhiSnoqyWNSmXCcHxK0ur2ilIZuLTQGMurs+hluSTz7Y379lQQvWR 4SSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fA2m559H4MYtAYPVDpBveCgRZKhk3mqnDdKcvlxNrLE=; b=Uw8B1AAnvUmaSF+gjtfaPKt1BdTFtDdOmQ75M/Y+xa27jd2M9MK+/IptcYLoIaXv2F tzAWriXqj133qDKljA54T7kodzK7tQeGQjZ4By1M3S8q8mTsGf6biGDic4fMwd1tC0Y1 /Z4zFfLYAf0hVH2e+JWAiyghRcth/t38JuG7NWkBVxf5ABPrTtCRsF8LMPzRU8EbMEgQ Ka6wGRDPWtbeobyr3Lub2MdFIH9iGm9vNt4FtLU9nMX1YBP+XTs0imJVDAPdtyS8Z1+t g8WClpPc/N3XkwMc6Dc03qJgdmGcF1LkVa42MfUyE06CGRW7ZEEaudX6By/uA1WElPBF GmQw== X-Gm-Message-State: AOUpUlHBKg/+4qq/YLh07O8jJbN02c5svEJhng9TUMV5P80ii7AS6xpZ bl8xIl4CFTjruJQ9/y92YuJK/kHz X-Received: by 2002:a62:748:: with SMTP id b69-v6mr22182154pfd.177.1532526922307; Wed, 25 Jul 2018 06:55:22 -0700 (PDT) Received: from [192.168.86.235] (c-67-180-167-114.hsd1.ca.comcast.net. [67.180.167.114]) by smtp.gmail.com with ESMTPSA id 5-v6sm22466024pgc.86.2018.07.25.06.55.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 06:55:21 -0700 (PDT) Subject: Re: [PATCH net-next] tcp: add SNMP counter for the number of packets pruned from ofo queue To: Yafang Shao , Eric Dumazet Cc: David Miller , Eric Dumazet , netdev , LKML References: <1532524010-11855-1-git-send-email-laoar.shao@gmail.com> <047bc12f-9eb5-e512-10c5-6334c494c77e@gmail.com> From: Eric Dumazet Message-ID: <096a8a2f-ea32-2107-b2af-c246450cc3b9@gmail.com> Date: Wed, 25 Jul 2018 06:55:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/25/2018 06:40 AM, Yafang Shao wrote: > > 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. We have a counter already for these events : LINUX_MIB_OFOPRUNED You want to add another counter tracking number of _skbs_, which has no precise value for user, given each skb can contain a variable number of _packets_.