Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20917227rwd; Thu, 29 Jun 2023 08:33:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qUGcqBwSzrzGb9rdbtcreW6yovoARntPENPIoKtrxeLEFUwHQSiAXZQo/2iTRzoSxJeTm X-Received: by 2002:a17:902:e845:b0:1b8:10a:d925 with SMTP id t5-20020a170902e84500b001b8010ad925mr14296539plg.5.1688052819167; Thu, 29 Jun 2023 08:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688052819; cv=none; d=google.com; s=arc-20160816; b=pDq1tA273FMIswWywV/+pYZmpG6wls2zbhKxKV6iLrQmTRz+xIOHZ2ubkJun9sETQD mXZpU2nbi7sXKxxHijQIYs5XV21YotcbY0MMF1wTJjH7T3r25v/lf93qCH5MmKwM6y9M T8irFbAwUBjH4OL8ZPnVcwt9eBUHO69A2OTYYuAd5U+8wBCic6fpe+tjaFCgA86/09yg lVfqJIF9aFscnLAuxA68K55TuE1xchp1gSaCQ3FV6i0mPygEYhVbJ+wqm9m2OMVsVgST +PtoBeU5JrVzNHrZnDy3xPjTggn3NfvC5WHI5kUXPoCkKRgSGGLptZb/W6aXut21qzYW 9iaA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CEOUD1eU3DxUQbb/V7t/Z+8wFYpk8U5VqV9pp+1i8xc=; fh=oVf9TI+FYVsUQD+3/A0yoMFq5QSfPlOsm4+U6mQmVC0=; b=rBuyThE0QJwm1+T025vkgqPlo3fx5G6/8HOLwHZUkRX5eHdjG271KsMHhIPDwJVVC8 n0WvDyashafjcVMFCNcLDATT7cL6Cgk5gqwuIVr+aJpSihr0BtNIVRqcDVonH0tx5Dbv 0MB5EAToDb3Pp/PV/aqTVwUhWTZMS4p2WXF6mjJ0y5N8QbjPiXXdkbpaY2H85/2tEV5U Qxe3mN1UgboQwRfBD96HS89sIm7wEbyMBAChW364qUJpUPMsNDy2MzTkTlXgJ676llES Hvu4cFdXCNtZWdzrwobTIuNgHKL7uLMNZGCymIriMsc98NWelZPEs7QeUbtIIFbioeXJ apZA== 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 r18-20020a170902c61200b001ae5eb838easi10333190plr.292.2023.06.29.08.33.24; Thu, 29 Jun 2023 08:33:39 -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 S232329AbjF2OxX (ORCPT + 99 others); Thu, 29 Jun 2023 10:53:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232265AbjF2OxV (ORCPT ); Thu, 29 Jun 2023 10:53:21 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 595152D62; Thu, 29 Jun 2023 07:53:20 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qEt1H-0007I0-3C; Thu, 29 Jun 2023 16:53:15 +0200 Date: Thu, 29 Jun 2023 16:53:15 +0200 From: Florian Westphal To: Toke =?iso-8859-15?Q?H=F8iland-J=F8rgensen?= Cc: Florian Westphal , Daniel Xu , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, coreteam@netfilter.org, netfilter-devel@vger.kernel.org, daniel@iogearbox.net, dsahern@kernel.org Subject: Re: [PATCH bpf-next 0/7] Support defragmenting IPv(4|6) packets in BPF Message-ID: <20230629145315.GB10165@breakpoint.cc> References: <874jmthtiu.fsf@toke.dk> <20230627154439.GA18285@breakpoint.cc> <87o7kyfoqf.fsf@toke.dk> <20230629132141.GA10165@breakpoint.cc> <87leg2fia0.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87leg2fia0.fsf@toke.dk> 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 Toke H?iland-J?rgensen wrote: > Florian Westphal writes: > As for the original question, that's answered by your point above: If > those two modules are the only ones that are likely to need this, then a > flag for each is fine by me - that was the key piece I was missing (I'm > not a netfilter expert, as you well know). No problem, I was worried I was missing an important piece of kfunc plumbing :-) You do raise a good point though. With kfuncs, module is pinned. So, should a "please turn on defrag for this bpf_link" pin the defrag modules too? For plain netfilter we don't do that, i.e. you can just do "rmmod nf_defrag_ipv4". But I suspect that for the new bpf-link defrag we probably should grab a reference to prevent unwanted functionality breakage of the bpf prog.