Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1720832imm; Sat, 30 Jun 2018 02:46:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJfNGR7pkpeybJ5qp2L+DWuMPG05IW9nCF04q8ceFV0zETu7xa7ViJIOKRjilgVJGw0avF4 X-Received: by 2002:a17:902:8c95:: with SMTP id t21-v6mr18522670plo.306.1530351962806; Sat, 30 Jun 2018 02:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530351962; cv=none; d=google.com; s=arc-20160816; b=XNREGtEqtGUP+JKmMdkCPEF5kH/OB4A89Qk9pMPqDex5KbG4jurzlM4Bx721+r2c18 aGQHtPf0csk9HO/8px1bcOSQeafgDb7QlcFhOkgXNTHPZCMPvf+lZM5ouF76eC8Gwqz6 jHuHQlUnuAE6ScOvlot1hrVGBHW25QIKpsJ4MfhoEb7uJx9ekeoZM3eus8xZ+WhrH3Al GWh29XfZrbG8oqnNqd6eDozmiRnEFcHUsplwYIMUIVoCJBmxvrQFHzl6G5VkH1f0CP9a Bvg1c1/ieIXLHrmNqDjwvLGe0A8o800q9xPtz4Z9vleE2dYI5M8lbWryl/cCYxODh7SO Hd2Q== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=Mkw749SkaqiKB/6l3/pPVPVvxEOXzi8ozplNtKVgAjs=; b=X3BRRdczBl3tfEbfOTzxrH5K/i9vol4JtHhUo1HZd2u1xmRdmCDpJksxnGJpCu59uz h6JDCDYahVdBsVDYAkFNjU5y9eRJ5J/kY4Q6c1CBDwk3z7SbQKkNNrlRiiKECFt8zG9B 6+mN41Irmh0NnPqanQWAh3kqFjcFhMzv50gScOzUjIwHHaA5PjjDztUE8lRCDa0ZDIl5 +KxM1Hwp2X6w70+M39sx774SthJVEIrnHMfQnYZAGFnDfuMXzsXyGqSMT5ePnqVF3+L7 2Ba4k7PScC8UZySArtxnETHor2AaNpzPKIEH4XpZr5erp5/NcGPW0aSfG+ky1eDIrLgn QoIA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17-v6si12330544pfk.203.2018.06.30.02.45.36; Sat, 30 Jun 2018 02:46:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936840AbeF3JoK (ORCPT + 99 others); Sat, 30 Jun 2018 05:44:10 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:36010 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933697AbeF3JoJ (ORCPT ); Sat, 30 Jun 2018 05:44:09 -0400 Received: from localhost (unknown [220.70.203.118]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E5A43144B7E60; Sat, 30 Jun 2018 02:44:07 -0700 (PDT) Date: Sat, 30 Jun 2018 18:44:06 +0900 (KST) Message-Id: <20180630.184406.1626314416899588727.davem@davemloft.net> To: laoar.shao@gmail.com Cc: edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next] tcp: add new SNMP counter for drops when try to queue in rcv queue From: David Miller In-Reply-To: <1530159776-29919-1-git-send-email-laoar.shao@gmail.com> References: <1530159776-29919-1-git-send-email-laoar.shao@gmail.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 30 Jun 2018 02:44:08 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yafang Shao Date: Thu, 28 Jun 2018 00:22:56 -0400 > When sk_rmem_alloc is larger than the receive buffer and we can't > schedule more memory for it, the skb will be dropped. > > In above situation, if this skb is put into the ofo queue, > LINUX_MIB_TCPOFODROP is incremented to track it. > > While if this skb is put into the receive queue, there's no record. > So a new SNMP counter is introduced to track this behavior. > > LINUX_MIB_TCPRCVQDROP: Number of packets meant to be queued in rcv queue > but dropped because socket rcvbuf limit hit. > > Signed-off-by: Yafang Shao Applied to net-next.