Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp693860pxm; Fri, 25 Feb 2022 17:27:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnCurPsU1P9dlTvm0Ya28KqnjrzYDAOpAPpKWxnZ50m48AHcAS1xuCV59eaq4QQ+W/iz9y X-Received: by 2002:a17:903:41ce:b0:151:3a3b:fe80 with SMTP id u14-20020a17090341ce00b001513a3bfe80mr4119478ple.83.1645838879594; Fri, 25 Feb 2022 17:27:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645838879; cv=none; d=google.com; s=arc-20160816; b=eg0qBuh5iLQ4j24zxtT+IE6b+Cx+RLvPKfNhHZwmaWxQ22CkG/uC9q7dBBn+xD6dn6 Hgs8MwsdOR02TpagKOEZqf5HC9jSOOV/HXHnweoU3+QEbRDLq4BY2cdrrF3rb/z5IzVe rx7xS0Fln8iJM5+tpypVuGTG/KeaaagFtK3BC3sTMV9W2qU+bVUWIpAotE/NJM4a1RuX EuoUa8Q/1YlWTc+crrGbZYNe0X9GvB01pmUofYGC6hD2aGv0s58RPrCEgwwdX67krLBV nnWWQNF23IvO/hPPElP0vmRKCE5EzXrf+JMuCOhaVSyTQNB5LRaltIDUeaQb+OVvi73v QVMg== 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=fnnHkrDt5wkKDve37A+NYq+0QVJuWbOAJy6SS9FQtwc=; b=cE2IfZ9onxGj35ozLHuei/SN5fpOCEd6eiI4dQsXp4eunUT2rOMSo8kZ/c1sa4c+i4 uA88vUuxj2cpUyGwSDi8wynFQzGGyiB72CqYwrtA+Rv93ix9BfILOTJcDC/5Br231ZJX WizaXzeMS4QDcV8s1D1snIvjY2rFMsWv3W74IBUkT6+jZe57CW812Om8Xzp0WJy19EZD D/5N4Fi7RXnhzvYJ9YCn2Q3XaxP8vdpD0LuxtduJk5k055VOF2noPC16y251HYcDRYlh 4+IBJS8rRb25IFSdU5UGEuG3Ip0SgfTTep0D8x4i0b9GfIWrr7Hy/TjZVicMsC+uL9yg ShOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W88tZtw6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id u9-20020a170902e5c900b0014f40ac9229si3287231plf.310.2022.02.25.17.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:27:59 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W88tZtw6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 0F6A7211EFD; Fri, 25 Feb 2022 17:26:22 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242246AbiBYPkA (ORCPT + 99 others); Fri, 25 Feb 2022 10:40:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242235AbiBYPj6 (ORCPT ); Fri, 25 Feb 2022 10:39:58 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EAE01D6C85; Fri, 25 Feb 2022 07:39:21 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 0D191618D8; Fri, 25 Feb 2022 15:39:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82205C340E7; Fri, 25 Feb 2022 15:39:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645803560; bh=01AtR9UlQ8B2u4YFKvs9jD1gUCizvmtnrjMGBb3QC98=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=W88tZtw68FGmY/0/E5NAGiAyRgqf5O3vnRrj0/Jdc2ZXvjAnuuAHKWFGs2so+805k qFLeeDjWGa1v9dSvk9+Mo4696qkd3/dBQc4XKBN4vFoSVLRFbnQY4Em9iCwmgkd5ul H1CKrwGK9AE45yb0+rJQ5c7cmCY4TVK/VqGYLJRU1r3MyXAtE2i0w7RgYoPZOqvjSM AtRCMRBme02zUrUW41/sMjEf085YpOSXT2SrSH79GCMqnuXWslb4LX6j3QFkqLQCKK Z88ZkyOmjJGr9c2+faHqGT6qovzX9I/UfCqGx5LiuQ0/U6oBm5dLq4b4+sSivUpjbl 1Rfe9j5bqQQuA== Message-ID: Date: Fri, 25 Feb 2022 08:39:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH net-next v2 2/3] net: neigh: use kfree_skb_reason() for __neigh_event_send() Content-Language: en-US To: menglong8.dong@gmail.com Cc: rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, kuba@kernel.org, yoshfuji@linux-ipv6.org, imagedong@tencent.com, edumazet@google.com, alobakin@pm.me, cong.wang@bytedance.com, paulb@nvidia.com, talalahmad@google.com, keescook@chromium.org, ilias.apalodimas@linaro.org, memxor@gmail.com, flyingpeng@tencent.com, mengensun@tencent.com, daniel@iogearbox.net, yajun.deng@linux.dev, roopa@nvidia.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20220225071739.1956657-1-imagedong@tencent.com> <20220225071739.1956657-3-imagedong@tencent.com> From: David Ahern In-Reply-To: <20220225071739.1956657-3-imagedong@tencent.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 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 2/25/22 12:17 AM, menglong8.dong@gmail.com wrote: > From: Menglong Dong > > Replace kfree_skb() used in __neigh_event_send() with > kfree_skb_reason(). Following drop reasons are added: > > SKB_DROP_REASON_NEIGH_FAILED > SKB_DROP_REASON_NEIGH_QUEUEFULL > SKB_DROP_REASON_NEIGH_DEAD > > The first two reasons above should be the hot path that skb drops > in neighbour subsystem. > > Reviewed-by: Mengen Sun > Reviewed-by: Hao Peng > Signed-off-by: Menglong Dong > --- > v2: > - introduce the new drop reason 'SKB_DROP_REASON_NEIGH_DEAD' > - simplify the document for the new drop reasons > --- > include/linux/skbuff.h | 5 +++++ > include/trace/events/skb.h | 3 +++ > net/core/neighbour.c | 6 +++--- > 3 files changed, 11 insertions(+), 3 deletions(-) > Reviewed-by: David Ahern