Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp991412rwb; Fri, 28 Jul 2023 03:07:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlGRsfcICIzx+1TsDBiCOMmQAOQQwd8CUre9YhRvKSHTV21ho3RTK9mtMSiiR7sU3A/bt1BO X-Received: by 2002:a17:906:73c1:b0:997:865a:77e5 with SMTP id n1-20020a17090673c100b00997865a77e5mr2259781ejl.45.1690538839601; Fri, 28 Jul 2023 03:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690538839; cv=none; d=google.com; s=arc-20160816; b=D9c6VcAVMfP7zxvBDRD01HdkaTAdB0Fdg4aCBgWarlYn6WApdppH/o9hLCan5RCTI8 WDgBnWemrWOfKEevV/qxwTW32uPEhGBIOQJ5EFQ09LJe7pmz7JhmsTF/ogZ/j5LYh5G9 QsfDCtTcvudwxFSyLEfA0lKZzK5abeFWOZjY6KyQZpXT88Mo/SY89s4uB69euAFEYhsL VEDpTwNX757Lm5aAWpayxoeHFgHcyEqcLr5JRKwtnkoM1LGeC687NvN+T9hBoXHv3DuC 5NZ647AlCPVrjG1vCggVgJjem/4LotYYtjYZyuHEZKJXVbG6bu2r5DcEtH+k1kA1rxdw 8YGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ofMnmttOyotZG4OWxXSFPV41Z8IcEmXrLChe+4qOMR0=; fh=f4nPmm54FzbrCP4jnaumyW9tDR54ESEr43llXngDTdo=; b=b0td+k8ErK1RjaWM7xNesklT44zO3wuUsz3jzTlIXgbSwQBpfkhkszLfNhgX8vIkZi nyqXQVF94dqHFsURwTqWg9vFj4F6jNHILMAe17xOWKXmuexKG6AFoqHEeuQJ9rYap/jO Qx25grDjxTVygha+ykOvu6L1aAx5UEjDTRxC0ZnNe0g959jVHXQEe0vcHrdxIlNIGCqp 4RJTP4/jApczVRGQRMo8Kyl1oVSPi6l6YcXvbNyV9Q99p8gVwJZU1PVFZQKuhwZNVGPk tbJ8YI6rAo8L1JN3lS+zK8rBpQUvGnUZwYUgoPa9NZoBdem2q4AhTuXkXpidIFO3HLCM m+ZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rk13-20020a170907214d00b0099bd67190c8si2299896ejb.291.2023.07.28.03.06.54; Fri, 28 Jul 2023 03:07:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234059AbjG1JxV (ORCPT + 99 others); Fri, 28 Jul 2023 05:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233888AbjG1Jwy (ORCPT ); Fri, 28 Jul 2023 05:52:54 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DA6411D; Fri, 28 Jul 2023 02:52:53 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qPK9K-0001Yf-9S; Fri, 28 Jul 2023 11:52:42 +0200 Date: Fri, 28 Jul 2023 11:52:42 +0200 From: Florian Westphal To: Daniel Xu Cc: daniel@iogearbox.net, kadlec@netfilter.org, edumazet@google.com, ast@kernel.org, fw@strlen.de, kuba@kernel.org, pabeni@redhat.com, pablo@netfilter.org, andrii@kernel.org, davem@davemloft.net, alexei.starovoitov@gmail.com, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, dsahern@kernel.org Subject: Re: [PATCH bpf-next v6 2/5] netfilter: bpf: Support BPF_F_NETFILTER_IP_DEFRAG in netfilter link Message-ID: <20230728095242.GB15474@breakpoint.cc> References: <5cff26f97e55161b7d56b09ddcf5f8888a5add1d.1689970773.git.dxu@dxuuu.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5cff26f97e55161b7d56b09ddcf5f8888a5add1d.1689970773.git.dxu@dxuuu.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Daniel Xu wrote: > This commit adds support for enabling IP defrag using pre-existing > netfilter defrag support. Basically all the flag does is bump a refcnt > while the link the active. Checks are also added to ensure the prog > requesting defrag support is run _after_ netfilter defrag hooks. > > We also take care to avoid any issues w.r.t. module unloading -- while > defrag is active on a link, the module is prevented from unloading. Reviewed-by: Florian Westphal