Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3539297pxb; Mon, 24 Jan 2022 11:44:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwugKx3xD0scvyx2j0MYTOCjrb3gsy2CO1FKkrbtp3uUKBI9MKnEQWx3ZGEGzgYjb3JUAQ X-Received: by 2002:a17:902:d2c2:b0:14b:6611:4c63 with SMTP id n2-20020a170902d2c200b0014b66114c63mr2529188plc.57.1643053488764; Mon, 24 Jan 2022 11:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643053488; cv=none; d=google.com; s=arc-20160816; b=asSMeFJnmaeYCru17/diX+D4SOVBHyFu+BqTSVXyHg/aOJQ4Cia5LOBMEMVMHh9CSw YLRzps9uE/xiP8dt6Fi0/6wpgziD4rH8BSKgc84N15AjjYeX/HaveaiLlfoxD2lKSNSa YhUJOnM07OMgs1r4HWXPyfZE2rjV6yGxiQ5xe8BmcysbfwD2e+I6bXLo2avaaRGV+L5g 9joBG7cVLNM8hIyJeZaMOpGp3EDmU4H1zd6DJ1cX9+EIpUc7is2FmtW5nMxAncw1CvFC gl702oQ1fhhN6hkVXOreQIwZJ1dDmz8+zOsOgrATD/XsENxgA8smi9E9gMxTjaECPTSm GC8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Lwe06sysXWI3/99UcELELRrsqQd50QyH4gOOMyT8EY8=; b=NQ+ojnGa8NEWWqsFd5vYGxXRJnQ93L/I9SKZPjKomHy1vk3fdqlUJAXkNbQWQXN87w uEqoIzwW6fDH5wYRXpLbgD3Kld7RKrLknR3Dtw2HkgEkZsIK5MTJDj3Ebt+msQmRc+qA Thl1qZwHXQvVRHLS074Z/9NKa7wCbAZa/GX3NiZ4ClyRBy6zrBTxX2o29yXZovfRqDbU xbU1U+L1tOs6jXtOoE8Qe1YTHXOAOi6ItiFNIjxYYeSomQUMOfaux9E0WD+NY2aJ00jQ 2fIJnqBKdb0Xk4ahKJWKKcyWsjWRp7QRGKpiA635qSOTnsAW1WokPU2uH5DEUdVN4DGK /yzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h5vAdzpg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 21si14433978pgo.26.2022.01.24.11.44.36; Mon, 24 Jan 2022 11:44:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h5vAdzpg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244601AbiAXRq2 (ORCPT + 99 others); Mon, 24 Jan 2022 12:46:28 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:49206 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241189AbiAXRq1 (ORCPT ); Mon, 24 Jan 2022 12:46:27 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B4863B811A5; Mon, 24 Jan 2022 17:46:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EFA7C340E5; Mon, 24 Jan 2022 17:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643046385; bh=GiTNno6qWptbhmpqlvMLwvdzOouARoHcSXnF4o9E6ds=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=h5vAdzpgvvIfXC5hbZGfL5/tsy62LqIjDGcv+DiwLCIHprNE3la30cfDJFtwFJLug hefcvW7Q4KVfyc4a8bsU+lXEmdlfZ+J7g4imHRDlOtzIPRXsriZCwT4ZHu0gAQFPzc Cv1ashJxZUFsscxQP8KknjRSiAUbHYJ1Byjc4nMNjx/Js0ADjEP5AEGAV5y/uMaOjo 1+WnE7fx+wJCOJ1bO8LRihvADmWZo4xf/Tli6DHENmlvfp+WcRTDAs7nbVFlQUYtmj U6rVMQk9DI0UbEOTeQvhkwmWmf5RM+fT101wE1VQ4loyMGjrGN9HzYG3YeUS5zRu/O qy6UUD3hOVA0w== Date: Mon, 24 Jan 2022 09:46:23 -0800 From: Jakub Kicinski To: Eric Dumazet Cc: Brian Vazquez , Jeffrey Ji , "David S . Miller" , LKML , netdev , jeffreyji Subject: Re: [PATCH net-next] net-core: add InMacErrors counter Message-ID: <20220124094623.7ca137e0@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: References: <20220122000301.1872828-1-jeffreyji@google.com> <20220121194057.17079951@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> <20220124092924.0eb17027@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Jan 2022 09:39:22 -0800 Eric Dumazet wrote: > On Mon, Jan 24, 2022 at 9:29 AM Jakub Kicinski wrote: > > > That much it's understood, but it's a trade off. This drop point > > existed for 20 years, why do we need to consume extra memory now? > > Being able to tell after the facts, that such a drop reason had > occured can help investigations. > > nstat -a | grep InMac > > Jeffrey, what about _also_ adding the kfree_skb_reason(), since this > seems to also help ? Yes, and please add a proper justification to the commit message, with real life examples of cases where this drop point has proven to be the culprit. Right now the commit message says gives the example of trafgen :(