Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5271864pxb; Wed, 26 Jan 2022 08:20:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0R6FQg8jDNqFSgb33E8TSplyGRnHnZn/5r7bRAICMcZrapqOLYNWVEZYjzigroquowhzk X-Received: by 2002:a17:907:3e15:: with SMTP id hp21mr19812494ejc.628.1643214027707; Wed, 26 Jan 2022 08:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643214027; cv=none; d=google.com; s=arc-20160816; b=Qr1fRhUNjZ/2Inl9aM7vN8IaLE/BcNSIevxTqlg4eK0r9hyuhpGRfW9bnoFUB13AaD S1Jl2t2Xg+/N5bZ1jFh+7w9l5lIX+OyV78T1NgzZhFqGzWWPMd2boMGvG8ahx3IlK9M8 gQ6x3dX8jEVcJ2itDpOjeZ6WAjJz7hOhyDTkQfHI/s0z8uw7HNKtYIp1F0Gand95gZvU FFsMU4wRC15pharSDOMkNZ25BwQjs4BeVHevGr5uDBV21EyArUH6dSFzRjnb1FuQJm25 fOELdtzEIh9w/OpVSjM6iUzj9c/GEy1QdJHu5T0r4yLv+z2CNAQ67l1iKDnGAwFFyjnC eURA== 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=8Z9fTAosYWmdHhoiFaWzEwrQtgGbnjw3zgWYEIipPpM=; b=GH7JQavfvGpOIB6pWarEt9wF5aq5h8oZQLDwR150ezs8I8Pg0DKpDaxZDxsYJks1xL GKOPqcpnKRU4JzyaAvr/vP/tmyhj40dY/gmGmVE0AvjewxeNkly2ONZWRaAI8LOhnZqT SwTVBR6cfplG4nsi9rHxW+qSDWQHxaq4s/tzu4cb6EhOvC67lyQmzcZ1xIRAa5zuOjrs RSUoUjhk+nKTJlY8rUQv+8Cz+vF3x5hooyiwgLcHiaFVbzs83jo8/1wOfSRkf3NLViqv dd1c4KSKoPDA/mLYE0PCpx3laF/XwnRIsYgymUJMF9C7R/obs1E/25XewaWByGY7Syrd sYLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="g+KG/tzc"; 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 qf5si6524574ejc.141.2022.01.26.08.19.53; Wed, 26 Jan 2022 08:20:27 -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="g+KG/tzc"; 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 S236688AbiAZC5l (ORCPT + 99 others); Tue, 25 Jan 2022 21:57:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236678AbiAZC5j (ORCPT ); Tue, 25 Jan 2022 21:57:39 -0500 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A60DC06161C; Tue, 25 Jan 2022 18:57:39 -0800 (PST) Received: by mail-io1-xd35.google.com with SMTP id s18so9591220ioa.12; Tue, 25 Jan 2022 18:57:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=8Z9fTAosYWmdHhoiFaWzEwrQtgGbnjw3zgWYEIipPpM=; b=g+KG/tzcCiREoxfWhlNdap7yWt7kyEvlOWbxRYwBRD/mdWlKmoz0aFUGPDYoZlf+8T pWbvgLu5RabIfUcExNX5MlSpDwTtVX6rTg9+TChoEhrYqTPk67vWVPasTdzQoudJGZxc 01paz+U7c4TV2NaI5NNE8XDgXGHYqiO5SHHafYAvEs9RjHJkT49f0nKmePBaToHsnpUx SlSXt+4hc1FXcAmYh75uZL0Bu7jBM2SwD8Vl7ms09oKB3bLmrd1uBiBnTZdmZqqHlxj8 Z1tUQn+mRDiTNLWM78JI/dRZ0GRmvaxolxVl8/NbPvgDossiAgd5uR/EFbky+bHy+J9s ivkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=8Z9fTAosYWmdHhoiFaWzEwrQtgGbnjw3zgWYEIipPpM=; b=6pKnNQnm6elhdYMn+CAhZtgzbgJ+eJ9Uwmj6F+z6Ia52XdFaRLtUwAMgmEwR9gpVBT 6OxiiKskzo8tHdO+daw/CmleILLlkP0tThktmv35L5CExn4epVwvsJJM4VGY1SBo3nLd UWVObSqRCkanQdv0ssf0rgOIde1sctyaX2BhCFDn05m/8Ds8rD7OGvYfB/Y/xiG3oVHe um6vZhRvPI8HplhoLBPW7rcyXoqDwIHu07tvZKfQJB58CxnO70UgXJQxqvnLb4f4Q2fy c8B97KHhQSGL57/IDwfRn3nIAc/mMzKTzYOFaMOSbOcmluikTAfuSWHBcUvANB4z6WBt f5lw== X-Gm-Message-State: AOAM531E17ISzJaharnM5Z4iMAjLor8o5s/UnYi9h9DAWKGKSXXcO9JV 2/nUXh9QzTpIZWa8tkNRHrI= X-Received: by 2002:a05:6638:388a:: with SMTP id b10mr4247334jav.55.1643165858141; Tue, 25 Jan 2022 18:57:38 -0800 (PST) Received: from ?IPV6:2601:282:800:dc80:1502:2fac:6dee:881? ([2601:282:800:dc80:1502:2fac:6dee:881]) by smtp.googlemail.com with ESMTPSA id c3sm9982223iow.28.2022.01.25.18.57.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jan 2022 18:57:37 -0800 (PST) Message-ID: <926e3d3d-1af0-7155-e0ac-aee7d804a645@gmail.com> Date: Tue, 25 Jan 2022 19:57:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH net-next 3/6] net: ipv4: use kfree_skb_reason() in ip_rcv_finish_core() Content-Language: en-US To: Menglong Dong 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 References: <20220124131538.1453657-1-imagedong@tencent.com> <20220124131538.1453657-4-imagedong@tencent.com> <5201dd8b-e84c-89a0-568f-47a2211b88cb@gmail.com> From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.