Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp959899pxp; Wed, 16 Mar 2022 22:41:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH0KueKm4ERLuNMYnHsdCON8PctlyshLm+PbPe1zkvqA9tlcS4i3U7DaHDyDPoNt2xz6Ni X-Received: by 2002:a05:6a00:1950:b0:4f7:8a93:e813 with SMTP id s16-20020a056a00195000b004f78a93e813mr2830303pfk.44.1647495696288; Wed, 16 Mar 2022 22:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647495696; cv=none; d=google.com; s=arc-20160816; b=rmtWGOiPL9/XtuLFnp9DTugWDFyzfUWRhGMrygR3jWUcpTN9ZxLRoeqbXHF3v1kU+G o19IKQbS2U/Wt3Egfi2j0gv36ZsiUV7y5JRSbwp5PQkLS2cHWCtW0RoJoILKjTSfH/z4 dVjZoNZbLqChtRP3aBlVGNEr0Ued1ul+EeD0vlMbnQrWTjrkeL9BAXjuK3a1bL5djeMw +DOGzLlFP290n7scovf93fBmXGXF4ys0JiOLy5HUN/88AlBotiQxXL9bN3xshDyuEXr4 DLZlkNq78T+p2bfhY/Al/+6oBC+dstWXfD0DWbH1gagAVqH3/Rp9X9yHU48PhKwN6r0I RISg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4fzFCBavhW0qPWrGa4YUMtlDgBsLjVTBMK5oeTds1NA=; b=O7d2wbeD3jVXj8veyaSib3J8LqTnaJwz816CNb/BzJi40tX2h2WIb9evGnMoSyHPU9 REhJLEQ7CU8MTa5k85t9ql/fI7sS67zTO3HTM2m1sclpmnKqZQWtrAUxzUoqpeHogX0M VAmofo6NlDFcnvZ2XA/V8qmAhxig7vNwUh8/0lDkFKfP4n37lVGPELZypAPHj1XLtyMf uoqC5gOoqAZc2h5KKlguJtDkEctyzIoGGQfkM02rllP/ydMth/OLeFmQ+h5TC/wl59YM FV8WufBBlh54nXZ+syHpCGr7kW16EXwD+OKBoLH6F0uwNCJYNTPJJfDgqKgNUHAB4K5a Toew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qPzMsqMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k18-20020a170902c41200b001520112621asi4009147plk.395.2022.03.16.22.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:41:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qPzMsqMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B4BBE18A3D1; Wed, 16 Mar 2022 21:50:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353369AbiCPVGq (ORCPT + 99 others); Wed, 16 Mar 2022 17:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237976AbiCPVGo (ORCPT ); Wed, 16 Mar 2022 17:06:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 300A8E07; Wed, 16 Mar 2022 14:05:29 -0700 (PDT) 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 A1DE5B81B9C; Wed, 16 Mar 2022 21:05:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BD4BC340E9; Wed, 16 Mar 2022 21:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647464726; bh=W+zVvbLr7763wZE7CgF92ost1JLexy2r+814x1pEmOs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qPzMsqMhDbr3dM3KZn8BzClGJi9v4nw9L8DR8Y1naJaiJvPPJSQFYgWaWspeKVMOC lHJjk8FRhXUO95yVvlezRqNVkitKDXUnX23LREc20ccSSFgbBdzjXDFSuL5EZMMwQR ibISh0E6UntORZRAv8m/aJ0gVrWwuNPl02MQIMPuIhhKmmpwqXJvEVf2vS5Q30Cyq7 vN6FvtKNfRbITESqVm7OtbH2AS1vln8WdbbN41pHUsG8/teOLu5nj8VsRiH3F4syyQ T3h+Y3wtggjhAWfN4SK9JtxWCqEmGsJSP9JTXaCWOKqR6fWmEzBvYsGLOGkDx+/sBI 2G3fiTJUgjiyA== Message-ID: <8f6d5115-1158-7276-b991-31253476326b@kernel.org> Date: Wed, 16 Mar 2022 15:05:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH net-next 1/3] net: gre_demux: add skb drop reasons to gre_rcv() Content-Language: en-US To: Jakub Kicinski Cc: menglong8.dong@gmail.com, rostedt@goodmis.org, mingo@redhat.com, xeb@mail.ru, davem@davemloft.net, yoshfuji@linux-ipv6.org, imagedong@tencent.com, edumazet@google.com, kafai@fb.com, talalahmad@google.com, keescook@chromium.org, alobakin@pm.me, flyingpeng@tencent.com, mengensun@tencent.com, dongli.zhang@oracle.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Biao Jiang References: <20220314133312.336653-1-imagedong@tencent.com> <20220314133312.336653-2-imagedong@tencent.com> <20220315200847.68c2efee@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20220315215553.676a5d24@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <30b0991a-8c41-2571-b1b6-9edc7dc9c702@kernel.org> <20220316115734.1899bb11@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: David Ahern In-Reply-To: <20220316115734.1899bb11@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/16/22 12:57 PM, Jakub Kicinski wrote: > On Wed, 16 Mar 2022 08:56:14 -0600 David Ahern wrote: >>> That's certainly true. I wonder if there is a systematic way of >>> approaching these additions that'd help us picking the points were >>> we add reasons less of a judgment call. >> >> In my head it's split between OS housekeeping and user visible data. >> Housekeeping side of it is more the technical failure points like skb >> manipulations - maybe interesting to a user collecting stats about how a >> node is performing, but more than likely not. IMHO, those are ignored >> for now (NOT_SPECIFIED). >> >> The immediate big win is for packets from a network where an analysis >> can show code location (instruction pointer), user focused reason (csum >> failure, 'otherhost', no socket open, no socket buffer space, ...) and >> traceable to a specific host (headers in skb data). > > Maybe I'm oversimplifying but would that mean first order of business > is to have drop codes for where we already bump MIB exception stats? That was the original motivation and it has since spun out of control - walking the code base and assigning unique drop reasons for every single call to kfree_skb.