Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6489047imm; Wed, 27 Jun 2018 08:26:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLNhDbNxV5RFbakUYFETU8a0O5EoQ/89sE5iwpsgKj14eRtjsxRr4MqNU/YiL5qh9ykvA+2 X-Received: by 2002:a17:902:8d96:: with SMTP id v22-v6mr6566423plo.176.1530113201407; Wed, 27 Jun 2018 08:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530113201; cv=none; d=google.com; s=arc-20160816; b=b5ajipkcohbQ2ybNF8wnRPxW65/oUtgabfZrRCDj/OqN6HsVgKADD1/vkg8T21oDCW bSifX74giCBK3JAHX8mW2/rYiiPPzCv7idAL/JKxEfbOE6yQzbOvN1mjSShJmbwJOlSe BGZVzs5CFniKSSEtI6x5QA0EAoi7TLzF/RGi/ynXD8Dy4gx3k1xaf4YafKDzsBz8Gm+6 ZFj10SeQuUN55dvcLyAnaz8z3lTtO7GCYCIrBYZxKjw5WqGR/9rWj6KEasHEhub2D4/W 9nxtDEBwzY1zNIDi1tXiaYXIfkoOVHppsJ82eoWSXTOAPvgSi8TqvQrkFTbfHcly+Uzv SQ/A== 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=kjHInvt4pMcn0vt9zrZIeWXIkSa/EHpxMfGYNx9H6gk=; b=cFXRydl8tEZSqeKLdYGYxFDGMp/Xw/IFbzbgiE9sknvHm560I8GrgwWy5+UP/0VTOm qmrr+/eao0P/Y+8AWFCU+ZSJV0fQoUc5ZjyscSncxS26rLRGRge09VE8UyFg3t6dZw8N 6rI755SyVRj28eNInufW2oP9UMY04xEh+cCv/o/PEfNAzv5hQNHnMTX+Z3xbq5KP885N myBy9mknSeDPRn0Qs8tVdX6DFexAsuf3VPW5PnSZB6OoDjH1rAqcc3KThzcariF8I0jc ejei5Bq0V9L4yrTMfgfRBP0hWGJveVKHjR5g+hw1GaGxHZ2XUTizKnXQNsmRW55cazIq d+rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="FG/ZYNin"; 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 89-v6si4032711pfi.362.2018.06.27.08.26.27; Wed, 27 Jun 2018 08:26:41 -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="FG/ZYNin"; 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 S1754417AbeF0PPM (ORCPT + 99 others); Wed, 27 Jun 2018 11:15:12 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:53546 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbeF0PPL (ORCPT ); Wed, 27 Jun 2018 11:15:11 -0400 Received: by mail-it0-f68.google.com with SMTP id a195-v6so8070581itd.3; Wed, 27 Jun 2018 08:15:11 -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=kjHInvt4pMcn0vt9zrZIeWXIkSa/EHpxMfGYNx9H6gk=; b=FG/ZYNiny8G/nqJcE9/MkmKP4nSpIhaVQdkx+TTJBtxpuSBB7VhyiFnjOCQZGmQ82s I8/1jbOU6mgFt/2ZlaXzy+uYm4e6i5/1ZUv3ImdNkbmt2TNGrcI89ltyVvn1JzIHPtIp UrCtqPPB8gyyidPCOeDnI2LG9jVqN+H4t4Kb6yjtf3d/SNqeRSuIski2nknuA3qw2fun a7hfiurko3qTLTzrL5YK1KJI/+w7x+j9Y8Wk63QXw+9XXjOIA3mTcZqzGiAam88S+MhD YhHG4J2tcjyKQr8H3mYInobJRmZIxBFnIKz23SqnQLDEpRlT6VZk3a9/94ZI5YuVFNif BtxA== 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=kjHInvt4pMcn0vt9zrZIeWXIkSa/EHpxMfGYNx9H6gk=; b=Gk//zY6oFY93RNAQsdP7NyJasCJxJSQIhjunsdWy2J0rzUu1qEaGW3PawCz31Dej8L 5TV5OjxV4h3I7aS47NXHo8otDY8nJFbQ6eT63s16kR9ws8hWXemf4Z4/vCJvCwb/x82a vupa7to7O/D+87EkEVbL7N2UgawOV+X2TBCU/ySiBbYZaOf0l+zG1+LCuLyLciXPBHji bF0zZ7CAhf+V8yMXfKTgmBCxReE7fklXBIYP4/J7RV/EmJuf/ggjZXzYzRbc7nE9gdBR Q76evDIt66fwKqkeIp9T6KKVvYJzRMTz0qFkh776UliLtqt2cOR+XdFV5quLDwZXX/1W wlqA== X-Gm-Message-State: APt69E332gUFCWBHzLWX+lArxSZwx/rzGAXy/GL4KrZmHQPELq1wtXTg g69+MydSRHgTzIszTbDh4fPDX20cnnVN+x4ZV1g= X-Received: by 2002:a24:4457:: with SMTP id o84-v6mr5275706ita.142.1530112510648; Wed, 27 Jun 2018 08:15:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:ef03:0:0:0:0:0 with HTTP; Wed, 27 Jun 2018 08:14:30 -0700 (PDT) In-Reply-To: References: <1530100216-13070-1-git-send-email-laoar.shao@gmail.com> From: Yafang Shao Date: Wed, 27 Jun 2018 23:14:30 +0800 Message-ID: Subject: Re: [PATCH net-next] tcp: replace LINUX_MIB_TCPOFODROP with LINUX_MIB_TCPRMEMFULLDROP for drops due to receive buffer full To: Eric Dumazet Cc: Eric Dumazet , David Miller , 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, Jun 27, 2018 at 10:48 PM, Eric Dumazet wrote: > > > On 06/27/2018 04:50 AM, Yafang Shao wrote: >> 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 LINUX_MIB_TCPOFODROP is replaced with LINUX_MIB_TCPRMEMFULLDROP to track >> this behavior. > > > Hi Yafang > > I do not want to remove TCPOFODrop and mix multiple causes in one single counter. > > Please take a look at commit a6df1ae9383697c to have the reasoning. > Got it! What about introduce a new counter, i.e. TCPRcvQFullDrop ? Thanks Yafang