Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5316775pxb; Wed, 26 Jan 2022 09:16:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSwa+pJWgxr/hJOuAQpN9YmBBSndmckTXAIljyDLhqQ9nFd8UZuUjTJaKiyMIHRq/seDQe X-Received: by 2002:a17:907:7b87:: with SMTP id ne7mr11185780ejc.662.1643217412406; Wed, 26 Jan 2022 09:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643217412; cv=none; d=google.com; s=arc-20160816; b=s5T6ukGhml2k3tk14/55Wy6zcpdCfzRVohs1tFB6DQRGmFI9MTuxPmW4OZWkb/34qn d8+cM4+0cxaRUgRRRnHli+PTzx4b43YnW6Za92zGy7xmMz/HCgXq2kTW5iq5FDO/vL2D O7cRLMQ6W5erZNegFLGyOyyc5YJyRgO46ZZTa1y+pAZmaypmVuzXfeFdKeQLaSXfe2MJ BOT4WHsdMo+xiFaTm9hlM3kTemyFaLxV7x5uNVzdtWD8uWR3zW0SU0SGx2g/pHlzPKaC XzYq91TuSlJfPuZh+GLIeVJIFJGJs/k3R+Wpm7uW71bKrHQhmE9eihRNLxMUQXiFujRz yTAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nGwKJWYONIElZDTFR99HkZ3dGKG6mpKfNsXZp31Ut3E=; b=SIWswYXEGRzQyfJR4zA9sZJIv7OfyrOhLJqb6L3JgRpKDF5POLna6AmsGhBaX50UOU rTFJpQhrmN3BGaWBetT6g4sUyyaxQ77r3b2zziC/zaF0hoLaoZS4AeHM1o/47Mr98/sM hBfmBlmHJPNNggd5mUg7LWB5gJcVKskrlOCYpuRfd+5V2cMfYreRKbuWcWLcCqlUDR+S g22JiMu0bkbyXV2x8o/VgeoykNMCHjvjU5qvbp5a3xtSF1ITtO1GC2IMT3FhNe1x8p76 YEgb+Xr1i60QB0zfgLt4IsXOldZUhaO0XJ0kfMSCRFwlANC+b3Mlg/cBNnJpldt2uOnY ml8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f4maGwav; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si9761189edb.485.2022.01.26.09.16.26; Wed, 26 Jan 2022 09:16:52 -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=@gmail.com header.s=20210112 header.b=f4maGwav; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237044AbiAZDSG (ORCPT + 99 others); Tue, 25 Jan 2022 22:18:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237229AbiAZDSF (ORCPT ); Tue, 25 Jan 2022 22:18:05 -0500 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A078C06161C; Tue, 25 Jan 2022 19:18:04 -0800 (PST) Received: by mail-ed1-x542.google.com with SMTP id a18so66626814edj.7; Tue, 25 Jan 2022 19:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nGwKJWYONIElZDTFR99HkZ3dGKG6mpKfNsXZp31Ut3E=; b=f4maGwavYSH1ugNaxseEKuv79y5ex54drx/p9lD2G9Fiu9K5ajRXEp+R72M5HBA1at o24cZVNmk6eoK81cgRXNpfkMoij7I29Hz0Y24PhySUZqqVPHUv1VAqAyLTEIW1aiBikc DTrbjaoxwFbUMcJ9PKNWB6xpjBY83hkzGSVmd2e2Jt/VRGuePq0AV2U9RZtZD4BuIM82 XSo30ca8XkyC2nzmKGWjoZwlYaR3PWB77GLMtVaj8L5/J/XF32RTVZ89FqtJfN2k60mB g8paoeDwpM92zXB/yd2gG4E1OdIdOAnMnrkokNudxg2Lwn71qNH5+50ur2+18QDFtbZw jrAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nGwKJWYONIElZDTFR99HkZ3dGKG6mpKfNsXZp31Ut3E=; b=4OwPkzWamfdLFXMK8C/pwm3TmPOI7lpc/fi8UMdz/iZ8AEK24EAzA3wI+Tdlh/8uuz 5YtA79bodNjIsCBKBacXQ7wHWHWI6to9Q4+FgwCFS34Zs6knef7JSzQ1w9ehxFYHxCKc 5gLNowh43LtPvy2kO9R7DzwL2K/+wQld5iuk5L8tZcVMUA2rD0d+orPJ1IGK6X5PoZp/ ry/9iFZn6cqOIZHSEU+gNvyb2YGQJphvJq5JCkbuLHwP1ZUJ/E6a3rr53jdoNUWCXr1h azOwYwuX2kQbmnVwE7V6UJKiD7vQmQM6cJtFT2i7X4DobNWwcExaz3NbQisQGVYyOiuQ PZcw== X-Gm-Message-State: AOAM530F9OhkO8oZD1Nxu6lc0ivWpVess6FFeLquOg7Vax6A+KAbhRGj RHYQjkgTe33KsSJH3LZBLBqvcGS+xDhD9hHXHv4= X-Received: by 2002:aa7:d949:: with SMTP id l9mr10167058eds.137.1643167083224; Tue, 25 Jan 2022 19:18:03 -0800 (PST) MIME-Version: 1.0 References: <20220124131538.1453657-1-imagedong@tencent.com> <20220124131538.1453657-4-imagedong@tencent.com> <5201dd8b-e84c-89a0-568f-47a2211b88cb@gmail.com> <926e3d3d-1af0-7155-e0ac-aee7d804a645@gmail.com> In-Reply-To: <926e3d3d-1af0-7155-e0ac-aee7d804a645@gmail.com> From: Menglong Dong Date: Wed, 26 Jan 2022 11:13:35 +0800 Message-ID: Subject: Re: [PATCH net-next 3/6] net: ipv4: use kfree_skb_reason() in ip_rcv_finish_core() To: David Ahern Cc: Jakub Kicinski , Steven Rostedt , mingo@redhat.com, David Miller , Hideaki YOSHIFUJI , David Ahern , pablo@netfilter.org, kadlec@netfilter.org, Florian Westphal , Menglong Dong , Eric Dumazet , alobakin@pm.me, paulb@nvidia.com, Paolo Abeni , talalahmad@google.com, haokexin@gmail.com, Kees Cook , memxor@gmail.com, LKML , netdev , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, Cong Wang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 26, 2022 at 10:57 AM David Ahern wrote: > > On 1/25/22 7:36 PM, Menglong Dong wrote: > > Is't it meaningful? I name it from the meaning of 'ip route lookup or validate > > failed in input path', can't it express this information? > > > ip_route_input_noref has many failures and not all of them are FIB > lookups. ip_route_input_slow has a bunch of EINVAL cases for example. > > Returning a 'reason' as the code function name has no meaning to a user > and could actually be misleading in some cases. I would skip this one > for now. Yeah, the real reason can be complex. I'll skip this case for now.