Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6520080imm; Wed, 27 Jun 2018 08:54:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK3ZZFInuFMIBjRtTDROSc9jnA56kEpp2YgoIScZU9nH3zGCc7mYzW278gPMytdnFhwTEit X-Received: by 2002:a63:2b15:: with SMTP id r21-v6mr5769051pgr.262.1530114870859; Wed, 27 Jun 2018 08:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530114870; cv=none; d=google.com; s=arc-20160816; b=Y/4b5zhFwrPrMTVq61WCTwaPk4RZU2Mkn7n1BWADfUcdHKSJHFzUKzZQaxZj+NRVyf JMFOa1iEbTXdNyMSjYDFaFtct4q91ZOt7Z25dX0a7UIxdIDVc+2qGxyFFzfjaw/txHz+ 8RWSu6qOdnIc6UPNnMKiv3wPgy8MEmOVP3UeT+bE6ALLQFGD9XHmygwxrRoQe7AyG99e RzuSi+Fuh3HPPwO0eH1BE4M/GMkf+HslweNsZRQQ7sTgHJK/IFCCilBpH8+n9vogvS9z I34yf42rh5KzrrULMcC7RY/Z3PWsVzyTfpvdZmgqMQ472BPsr54lsGjLArlfG8rBFqTV Mhww== 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=RzIFuYG4YHYyN57UPgGrHT4kwybdYtRQzfdVERfqgIU=; b=fhSU2lMa4iShNxRQhHRvDjh+knzDikFDq03nyIf1cJej2AmbbHustZPPUFPk0XJF2X nF/xItEgJ+sLS0YZ8FS0mWQogDSL7AOTTLr/vsin+JDEhJ+0fTaYB21myjXiHTMNAxZJ c9eXVLHX5aLjyoaVS0O/Jt0A8UgQ50dKRmB7ctf7wOhnv4sNLmedq51RVBfgcz4SvzKP XbVf4NVAA1CjRBS6HrmeBCmcPirnP3qURKL+hTZqGKYbi6tzjhTHHeb16Oz2XS9DeStL 6vEXSUUbX5+4I8xnkfIXFmbX1BkERwyGTbWE5PaKTnSctP4mNmvAQytjlLaGIc+1RaMJ IxJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SBGMpvF0; 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 t186-v6si3899491pgd.3.2018.06.27.08.54.16; Wed, 27 Jun 2018 08:54:30 -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=SBGMpvF0; 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 S934829AbeF0Pwq (ORCPT + 99 others); Wed, 27 Jun 2018 11:52:46 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:41059 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934712AbeF0Pwo (ORCPT ); Wed, 27 Jun 2018 11:52:44 -0400 Received: by mail-pl0-f67.google.com with SMTP id w8-v6so1239174ply.8; Wed, 27 Jun 2018 08:52:44 -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=RzIFuYG4YHYyN57UPgGrHT4kwybdYtRQzfdVERfqgIU=; b=SBGMpvF0tojKgJYhhM6gSFKFD6PSLynKKqt8kCY2zk+IRPb45ISYGB6unJgrOnoCWg r+TBlUuvJ2ugNKcrKioX91bQyTbUuYcretNEUxQwg0LFs7W8zkgrZJ6YeaF5qT2gfQ+5 fziWeDd4TN494jUOr+jmqj7fZ08po+I6Ki0xhN7zULjCjd9TeHOfu47HCrhrZphcDWNU BN/VwQvg4ngnE/g4txfe9sKsgSVaEtELRWesfeQ+mZmG5rhtatGkv/KjPmVETjfu1yjn ue8My3zs256IQHYriUPFP76DV1fqLrnbxL3VDEnzJ8xmNmj5DKhYSA3OlwSGIb4+nqKD d3SQ== 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=RzIFuYG4YHYyN57UPgGrHT4kwybdYtRQzfdVERfqgIU=; b=YLSEmKrptH0nzE0hr8ezJu2OvI5qngbIQolY1jd2NDzS4x8TT40c0HlEQ5lQ7yfsoG TkZxg/abcNMZvS62HTYZ2cwXKTorY+L7umD8Zugk8c9k+AyA1gAOnXSsCKIuNczZL6Hp BOHrPFT0n1mC0oTyYCJS6RgW7VzbYa94pHz66ArLCAqHaqAy9Z/nePR/r3EC1235CZED s9VTr9iGiR8PzxWbHE+bua1x0vOIVjUh0rBJJ/f1pXYJhYK5/BSlzN6sAwU2z9SDMS4V YPTfIRiU//x0HYZIaTz1zVzazMKV6iXeWRQmzuM0v9nzpoddOzreC7AEy/A6v1V6TB3j lUew== X-Gm-Message-State: APt69E297MG2aoL8TQqrLVfBtHIEhBpjzFrLP+J8/sCJGKufyA9mgmcl UkRiBczR8dg+bXuIeSV6KTUvbzZH X-Received: by 2002:a17:902:9a06:: with SMTP id v6-v6mr6714331plp.21.1530114764000; Wed, 27 Jun 2018 08:52:44 -0700 (PDT) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id t3-v6sm12503489pfk.161.2018.06.27.08.52.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 08:52:43 -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 , Eric Dumazet Cc: Eric Dumazet , David Miller , netdev , LKML References: <1530100216-13070-1-git-send-email-laoar.shao@gmail.com> <72f02552-9375-bf81-6a03-42656168b583@gmail.com> From: Eric Dumazet Message-ID: <62f71b1a-6f2c-a475-a8df-4c4ba3a32285@gmail.com> Date: Wed, 27 Jun 2018 08:52:42 -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: 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 08:38 AM, Yafang Shao wrote: > On Wed, Jun 27, 2018 at 11:27 PM, Eric Dumazet wrote: >> >> >> On 06/27/2018 08:14 AM, Yafang Shao wrote: >> >>> Got it! >>> >>> What about introduce a new counter, i.e. TCPRcvQFullDrop ? >> >> tcp_try_rmem_schedule() can fail for many different reasons, >> not related to how occupied the socket receive queue is. > > Yes. So TCPRcvQDrop would be more specific ? Yes, this looks better.