Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5321809pxb; Wed, 26 Jan 2022 09:23:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2W/uAFes+8YN3rHY+MyGoCo11J0Ik4NTOxek6xH6PBzTtxG2KjeTe7ONu+MfhMZ0AcOSO X-Received: by 2002:a17:90a:de01:: with SMTP id m1mr9670194pjv.215.1643217790776; Wed, 26 Jan 2022 09:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643217790; cv=none; d=google.com; s=arc-20160816; b=qhlKPfJXlIgEvssMYGtVnrB00cb05uJFE5YZqCIJcjPc6U3oYJSMGDGzpkr8UciLB1 RYOiLAuxLf5QdSib7xOq2TYnIpN7VPLZnNnKjpueGq9H1qeb26McslFFe5SFSoWaRZQC ThTdGkk4fH6uRAQLmmbZVKDdF6zAMNGKp5LKuSxQMgFNH5D4zYqK8jfg/1e8dH5VJlys OMusXIZfYtaeBPRHuCCnQs90t7e14uRqytUsUsXiGFUdz02AqeiXSoj7/rqPEbg+271O uDahAgE2Xbgo0Fqsb/Ccvsz5K4ypb6X0VCiadqVqwPHl+bqX7HxUy4IC90BwCQaEdBDd 7tvA== 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=sLhgEoCgoBMRv8e9FsbATYBF0LAt+BcS7VpOR/cbDsE=; b=vhu5ieKTAU7fDMIM0u+MgUe9wMWwYSsh2d7ZHfmkk82FrXvQXH9LslngqiHpF8M0oC gMNd1VEZTu3MVCdE9wBBvwgkZk+v95shzDTI+W6DG1S5tRHOaMq4mMh2ttSxHNvE1qxz jAimKK/AAE3AQ1Ts3ufNSl+9n1J/yDGcI8qio/zPQkAQLdFdETvJAJ2P+AjK7qZE6lKg QF2q/FTABKMYljxAdj6Q1aDoTNMwuW58jZlE40DvhkirPx6in/cais8nMXhab3T1nkac 2+0CX8DTbDVHncwCm7stLk/i6mUvhjNau5KrKW5OEYNhJ5gZn3z9b4dqmLt9NdPFm1VT mfxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sqe4iNZt; 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 gg4si3193366pjb.113.2022.01.26.09.22.56; Wed, 26 Jan 2022 09:23:10 -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=Sqe4iNZt; 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 S237102AbiAZDZU (ORCPT + 99 others); Tue, 25 Jan 2022 22:25:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiAZDZT (ORCPT ); Tue, 25 Jan 2022 22:25:19 -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 170ECC06161C; Tue, 25 Jan 2022 19:25:19 -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 690776176A; Wed, 26 Jan 2022 03:25:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4E93C340E3; Wed, 26 Jan 2022 03:25:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643167517; bh=0BjzTHHKcILB1tEzLNRvq3NXKLbeWRgT3LE54UUOtzQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Sqe4iNZtHtdEiYd2+af8Zo1ZG9GQDBFUBXzubiErCxje8PuDKI5h7oMBYhZ7SubOX THo6rz1h4uwKp8uCyqJ+TxG46veDQ13UlDQK+LNsZSmnNiBpACcOM8pi5SLlif6QUg qK+A0qnYGS5FgzpRdWjipO1353QSIzyxUllv9FwtV4+M55zebpcN2eLS4WMO5Mto2C 29mJ7k3FddAlevDnNnQ8YI9fT8FZ+chBSt47JsWYUAG9P01ZKoDoIz1MVPwaUjtnSU LB+j4yS4tCS2z8WCRhe1df0lny+hharuB8t++KOb/8E0RCn6tgUbiIKLLt/mkfnQbQ HlIlDNsW7QVTw== Date: Tue, 25 Jan 2022 19:25:15 -0800 From: Jakub Kicinski To: David Ahern Cc: Menglong Dong , 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 Subject: Re: [PATCH net-next 5/6] net: udp: use kfree_skb_reason() in udp_queue_rcv_one_skb() Message-ID: <20220125192515.627cdaa5@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <00b8e410-7162-2386-4ce9-d6a619474c30@gmail.com> References: <20220124131538.1453657-1-imagedong@tencent.com> <20220124131538.1453657-6-imagedong@tencent.com> <308b88bf-7874-4b04-47f7-51203fef4128@gmail.com> <00b8e410-7162-2386-4ce9-d6a619474c30@gmail.com> 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 Tue, 25 Jan 2022 20:04:39 -0700 David Ahern wrote: > > I realized it, but SKB_DROP_REASON_TCP_FILTER was already > > introduced before. Besides, I think maybe > > SKB_DROP_REASON_TCP_FILTER is not in a released kernel yet. If > Dave/Jakub are ok you can change SKB_DROP_REASON_TCP_FILTER to > SKB_DROP_REASON_SOCKET_FILTER in 'net' repository to make it usable in > both code paths. SGTM, FWIW. What was the reason we went with separate CSUM values for TCP and UDP? Should we coalesce those as well?