Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6484937imm; Wed, 27 Jun 2018 08:22:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJJtea5SXYOYmzyneryWx/gUEVycSCpGVcMiefsy0+p79IYCJ5uJzeMS17Gcwkmf4ix5+AA X-Received: by 2002:a17:902:b216:: with SMTP id t22-v6mr6642197plr.199.1530112969855; Wed, 27 Jun 2018 08:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530112969; cv=none; d=google.com; s=arc-20160816; b=y7nD8mhVQoKqevkQCZKvpZAFz9lQpgrvneDsX2z/qu0q+aZ1SRoV84Pf2zggyiLZY1 pqEffWtkyixSvlwigf/nqZfOsJ/ec1I7ovkZTcN2I9TxMPA7mOwbT9mX0+ZDtURFMVvN NTT5/bgXDpW4/EcxxKZ4puhWJcOQBee4Ts7TOwFawFJtkQJkZ9fGmB26/Ycz8w4FmGUX j7PhMPpLMTSdwIgHuLdJN6L15E43EIUVzMP68KdVDWxEXGZ1oMhKPpbQlTPNCy1aCeEE OyxRiDgRX/dcH/yjiJLiv73YklO14ct+p4hinIpxmeZlX8QcF1IqiCD0oHYHnL8Lx7mJ 0Z1w== 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=d755QWMpcC/icjLW4b1ijpc0JfxVe3B2djSJ2d0K9z4=; b=jfKXQ3hYlaQCoNPrIG5/3YPobxiENvKz6BNdm6BW/2V4AToi1qB8VSFfeMWklaTVFi gSYwuV2EPs3WwCinmRHpugH6jPsjawskv7oGKLwgHJG3bW0haybQDc8uQr8hsSzJedOW ZORGTBwkATFgMTrLQvDwWPs/bVGgLwDRhzMfkMWk+pvMOaKdlgEVi9+gYzuZ+J+7aamT DYRLGAvHGKmRgUhXwEGR5PoIAZ4rET2Gl3hW84rerPVhvFmMIPobRjF2LvjB5pk3AUFW 8DsyNuazSs/L5jKyXLa+YeLfmRxyLlBbAT5LB+0oUwKOmFej0onfSCOe6tk7Ci6VfoO3 mVpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tJUsLzwl; 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 73-v6si3294185pgh.343.2018.06.27.08.22.21; Wed, 27 Jun 2018 08:22:49 -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=tJUsLzwl; 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 S965209AbeF0OtE (ORCPT + 99 others); Wed, 27 Jun 2018 10:49:04 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:43718 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964862AbeF0OtC (ORCPT ); Wed, 27 Jun 2018 10:49:02 -0400 Received: by mail-ot0-f193.google.com with SMTP id b10-v6so519964otl.10; Wed, 27 Jun 2018 07:49:02 -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=d755QWMpcC/icjLW4b1ijpc0JfxVe3B2djSJ2d0K9z4=; b=tJUsLzwlkBn7V7eOuIHosNYJnNC6NYn0Im7JxqAHpsTnHwESzdLBRmCMwF0lW9m1G5 FcnQu1oqYyKDCHbgZL1768ncQdBYmKkZjI+kUYeZScZiyp1Mi/IGGaWXRl8kXg33OdKs qXl8oNqqsqmY4EhZTcoWaDkg+vZDIy2FUqjkJhRymrLplU2Bmw0sijuF8JWWix94pNQE vrcQC7efoqaw1QlaW/jdt7hdi4vLCVQu821v3y6rq/YDeSTasNo3/aJq0aEw2Pk02G0D u+kwLBfo9NxNY9v20EX7ZgXu79yrSbyb3zARcDF03eFaL0ovA2dnScve1eq/l93rrhfX vAnA== 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=d755QWMpcC/icjLW4b1ijpc0JfxVe3B2djSJ2d0K9z4=; b=mbY3nFleYFPMAEnH7vbwaeul9cSzq+lxXcEV+XUFBb7FIrTGptL7xz4mLMvBJW5nKM fsYQLwm3PSn6aAzBi5VhPDvVlN7Ps0Gz6J04YDojFfZ4sfNPWXi5ryIawgbq4lBbBY+G R0oZT/vNQWc3hTCRek4mLdOVk8wmiJDIquWhRCMB2niUDUiZB/axd550pffsbgqtRk3v jIfw+3M9XjqBbEhQOQKxA/WH+dkDPHLpWDoVifcA1kWAYCeu14cLxG6KslohPoKFMZE9 LkXVGN5Yif+aB8j7ioaeuYmce2zygi4I6KmytejbaP1xJTPiiQTMUWbaYA7M3fsYYueU mo0A== X-Gm-Message-State: APt69E3G8ErXFkG41BstcqBkH/k4/Sz1QFLVUQlUG3zvuVU4gfYbpjbF JxwZRTE6s/EOJXcddLXoXhZVocLl X-Received: by 2002:a9d:1ec8:: with SMTP id n66-v6mr3830557otn.351.1530110941831; Wed, 27 Jun 2018 07:49:01 -0700 (PDT) Received: from [192.168.88.42] (m3c12fa48.tmodns.net. [72.250.18.60]) by smtp.gmail.com with ESMTPSA id w21-v6sm937134ota.43.2018.06.27.07.48.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 07:49:00 -0700 (PDT) Subject: Re: [PATCH net-next] tcp: replace LINUX_MIB_TCPOFODROP with LINUX_MIB_TCPRMEMFULLDROP for drops due to receive buffer full To: Yafang Shao , edumazet@google.com, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1530100216-13070-1-git-send-email-laoar.shao@gmail.com> From: Eric Dumazet Message-ID: Date: Wed, 27 Jun 2018 07:48:54 -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: <1530100216-13070-1-git-send-email-laoar.shao@gmail.com> 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 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. Thanks.