From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH net-next] tcp: add SNMP counter for the number of packets pruned from ofo queue Date: Wed, 25 Jul 2018 06:55:20 -0700 Message-ID: <096a8a2f-ea32-2107-b2af-c246450cc3b9@gmail.com> References: <1532524010-11855-1-git-send-email-laoar.shao@gmail.com> <047bc12f-9eb5-e512-10c5-6334c494c77e@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: David Miller , Eric Dumazet , netdev , LKML To: Yafang Shao , Eric Dumazet Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.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_.