Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp833981imm; Wed, 25 Jul 2018 07:02:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe83+PjZn6JXJbo1QYWVwkv2glktTRwwixpjJmlwXhY0LwjCI7oVf+UH1fsKagnUkH6Tg+K X-Received: by 2002:a65:4849:: with SMTP id i9-v6mr20685763pgs.350.1532527352657; Wed, 25 Jul 2018 07:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532527352; cv=none; d=google.com; s=arc-20160816; b=hvt7fwokzON8dcAL82Wl3e7JIPw93ZUxSFLKa2XWYADQjbdIiBR0OBNldCfOXVH+/8 wdjMQpMtEKNXsf+dttBvxo3Sv+nJ/tKioiWnVqXY+M7ibk/OkzCCgX4PkI7dDGtPJ25R AsXvijtpG59X66oQHDZvL3o1qz52CgitLzYBimmFbf4O+yjgqW3IVtx8mrE7u+ROGGtW jjQUxSiS4dsVGWtIxbEl0g1x8YVHFp4vmDp65tvxbX7wAscWWigJMnWtPi2k18Eqh5bf Ox2mFcmg2IU8Ul3iOK02BjI3FIGJV/KkgreD4sXoyHWp16PbkG6dkL/nLjuLftgkPS14 eIOA== 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=t4H7ug6QZVQHe3q/PjpQQd4vsvLIkqw5HkOQBtNrQuE=; b=BW4BuYdypF6mxWatuldmYl7zYvkbsRZ4AFmuruzXKonnWK5MlW1rKx6wfsjMNd6Cyd xcHqN1LMMiAFfs5dqrIQyvnxgQ2uCzQUx9DKr6vM9RuClpywxrrqfK4LZvv1ggp6epoW ZYosf1G6RJJTBjbaKf7T95l6INbjn+rRmuZtyFS13hjpIvXsZKi/O9vr6kPGMDMBlFpp XEcKHpBVPMm2MBDf6bcedxdTxAFHKZW4bLN295uGzA8ICqayA5pgzEFPnzBXIe83YsXH o7LB04EKqHNtjbLiJTt74ewkz3pVVa2J2WOmSsZ2xBROI2vcfHmTPOXEjRcbSq1eC9HC e4Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q49117aV; 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 z125-v6si13839545pfz.10.2018.07.25.07.02.16; Wed, 25 Jul 2018 07:02:32 -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=Q49117aV; 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 S1729065AbeGYPMa (ORCPT + 99 others); Wed, 25 Jul 2018 11:12:30 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:50738 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbeGYPMa (ORCPT ); Wed, 25 Jul 2018 11:12:30 -0400 Received: by mail-it0-f66.google.com with SMTP id w16-v6so8843245ita.0; Wed, 25 Jul 2018 07:00:41 -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=t4H7ug6QZVQHe3q/PjpQQd4vsvLIkqw5HkOQBtNrQuE=; b=Q49117aVkFubRJ+NplrFcp8HCPjh2ft07+S5cyiuPCeRWldcnrqtN6fUQWxwN0NAhZ eunwz+jTlOJrr537MlE5osVrIvqSDz8bvEAPoTYdsbBtP+fHT7ilZTEYfVLraQ1/rqVp 8PP5DwjsqX5mIHZyuK3sH0mMnRQyUpi6ma3p7orv3i2Qn02S1Oa4CmoNyGdy4n7RNmVO WdPQXQPNyjPfBB6/NICfvrD6tfVzrWlmqvi7OsQBFAeFypyqfo2almhfamtpnbG279Wf iWrMgMAR+LgSc2xy87CDb1dMMrDA4T8IIv7QMtXlb5VB4MTW0fBaqCCjLnAXfKhSKz9b MaiQ== 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=t4H7ug6QZVQHe3q/PjpQQd4vsvLIkqw5HkOQBtNrQuE=; b=Mv38wXVK2lcfq3bSdBA0sKoC645X0vikBc5qkTf9UVOpzV+VbVgtTtIt4HMP4GvVQx H+aqk+jlCHlREevHv/m6O5Difen0GwPdEFhEMznP9f4pgcD+vR60atAt/37sThiL6V0w ZFTHi4vH/3JKEzTbaA+DoovzE9jqyMh9Q8doem0vd/s69Ni6aJgDbJItfsSamGSy/HbQ DTlDynyzx9Dfz47xrLbmt8LHqJbIZ3WfCxDrXWPYDZiWkq8Mvs1N9lV278TGI5iENdxm ycCIsNV0w8AWZT3Vax2k+6fTyUHQkgnly6IBWrj7b9o+YlObtscQ7UlZH4kdSSeTifyK yGLg== X-Gm-Message-State: AOUpUlECuDjJeT/Je9HSPWia38aifVPBOAJPkvX/xJwasTjRmZM4fx/2 qSTI/ATRrD4CFepekYNUZe4ojNLYS7L9mohGmFY= X-Received: by 2002:a02:45cd:: with SMTP id o74-v6mr18678826jad.43.1532527238236; Wed, 25 Jul 2018 07:00:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:7a47:0:0:0:0:0 with HTTP; Wed, 25 Jul 2018 06:59:57 -0700 (PDT) In-Reply-To: <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> <096a8a2f-ea32-2107-b2af-c246450cc3b9@gmail.com> From: Yafang Shao Date: Wed, 25 Jul 2018 21:59:57 +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:55 PM, Eric Dumazet wrote: > > > 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_. > Got it. But with LINUX_MIB_OFOPRUNED, we only know tcp_prune_ofo_queue is called, but have no idea how many skbs are dropped. Thanks Yafang