Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21131111rwd; Thu, 29 Jun 2023 11:21:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6eq8Mq7zy8TO2rYk0V+GkP1P6OmgFyzW6uht7alFAsC5z743cT44qU96SjuPvS6m1LhOzw X-Received: by 2002:a05:6a21:900c:b0:112:cf5:d5fb with SMTP id tq12-20020a056a21900c00b001120cf5d5fbmr329508pzb.50.1688062897090; Thu, 29 Jun 2023 11:21:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688062897; cv=none; d=google.com; s=arc-20160816; b=UI85dapMJI1wjl4x5wGn4NDVnzvQusHV5MHo/2DDG2vNWLAMtrpZMLv//RbcGLRU9l 8T4k2sU0jHbZhkmKnrQGQ39F8pjKh0uxTB0FfWqY6Laq/zJhxH1251+0V5vUI924dxKo kz0YtcBW2hI3mjbyH5rxKpjf2rzGBgAWtr43TpLzPfUMRZLPncRIWtFsHm0qBqJdijtv GE8rowF6pv3vRuMJC451CRPGodhOLT//RCHktiE66CIqCz0i6xgD12RBa2gbVpnFa0yg hdp0tDw8WOkVdcvcdcu0BURSY73umD4onJawPnoQ2DkjyeIO+TCq/jXemyb3Gk4eU0vq 4hUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=zcTZxE9rpOoRkiMqNrWJKVYoGMOyFfMOjEXrxqdBCO0=; fh=d6uS/I6SkDN93NMyfiInO0ngZ6LYN4rRPRcE3E85ShA=; b=0pkVUbJGR+ecgVHMRwz1olan7NUahPMkUM0hYPkZm1ECMnY5SWGNJ1WJDDr9zUNQBi vGrLBp80SGiNPtPhr/6+sK30F4ed0okxQqWi9ahiTeTYV5TLC7fm0Is+iVETHIemkBQn vpwPAVCqS/zi5iEJEBstPDgD/0jUpGiXLsVFSjO9Xib5vL+1kb+8lkBAJNBRBiyflwhV NpwdoHhMw62wANfn1PFoiB/eX4cW3jhJVQOTDfONnibK/lK7zcWTvcDpkRjUC+sjp0fz mbhMM7phMs8HpY5IDKbJFO7BJ0O3V4ysjaJ6e5GWK2kRnLOHkWy8Z0HPffIt0PaHpQQ7 2KwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=QOcUfjyv; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=KvDjFlOX; 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 g34-20020a635222000000b0054fdb18c877si10719097pgb.607.2023.06.29.11.21.22; Thu, 29 Jun 2023 11:21:37 -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; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=QOcUfjyv; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=KvDjFlOX; 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 S231804AbjF2R7K (ORCPT + 99 others); Thu, 29 Jun 2023 13:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbjF2R7J (ORCPT ); Thu, 29 Jun 2023 13:59:09 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4694EE49; Thu, 29 Jun 2023 10:59:08 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 99BFF5C030F; Thu, 29 Jun 2023 13:59:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 29 Jun 2023 13:59:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1688061547; x=1688147947; bh=zcTZxE9rpOoRkiMqNrWJKVYoGMOyFfMOjEX rxqdBCO0=; b=QOcUfjyvHJ6D2L3Dlwp0WTQ344bF9/0nbhpJze8piFkWG8+MkX+ UOCg6rcslYY1EqcOC9he1B8AmiuhRwPu0c2DeD7QPI0hWv/1sYtWjycs1MDaWBfY mY+9LtflSl5HTTi2SXulWzPe+sOwJQGOzk7LLeObAaWQOjlLOx1Y0CImH1dXkCYa +p/ajyTPybxU/CG5mpPwuZ5D2CO7rrhj1mxhl9sG48oG6LGHk40C1J7Uo/WE8/zo y/P1NFDLv3zKD9xTfd8TYmlMsUe0+56nnDxgyNm7rksmrEnE2MqOv3KFYr9o6mb/ 6HimsdiRxljAD0epXrfU2FI5ifeO98xrRgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1688061547; x=1688147947; bh=zcTZxE9rpOoRkiMqNrWJKVYoGMOyFfMOjEX rxqdBCO0=; b=KvDjFlOX3It/jB2DidOzLexu8tyDdbcVc97bseorb+kgeE6Cp+t xGOuDCM0m5yGblZCDv8LYKshsajzIOIC8/TmFYxCcQeo/LwnR6uN2cb1t85vLXM8 w8KWP9sQqPmxhc0iZXCacKSbIRDZUdlTzzMAWXpR18Hau423nXMoGGllJOmdsJq4 IahcQpjXUnAKpCxqQ4CIcsk6fs+Qoyqwj6dRfDI8z1+2Wzcxqa1itwWI48h3v6Mu 7GKFr5iEe0+FvG3kXsrrxnAJLVbgREk1y+TmVJtGh2JES8ZaDKKYTVdoU8szn/m0 H3cBGwJOcsa3wYE24ChLDIpLLVaRKygqdsA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtdeggdduudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlvdefmdenucfjughrpeffhffvvefukfhfgggtugfgjgestheksfdt tddtudenucfhrhhomhepffgrnhhivghlucgiuhcuoegugihusegugihuuhhurdighiiiqe enucggtffrrghtthgvrhhnpedufeeitdeiheffueffleffgeehgeejkeetkefgtdekfeej heffjedtgfekieetleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegugihusegugihuuhhurdighiii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Jun 2023 13:59:06 -0400 (EDT) Date: Thu, 29 Jun 2023 11:59:04 -0600 From: Daniel Xu To: Florian Westphal Cc: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , 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: References: <874jmthtiu.fsf@toke.dk> <20230627154439.GA18285@breakpoint.cc> <87o7kyfoqf.fsf@toke.dk> <20230629132141.GA10165@breakpoint.cc> <87leg2fia0.fsf@toke.dk> <20230629145315.GB10165@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230629145315.GB10165@breakpoint.cc> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 On Thu, Jun 29, 2023 at 04:53:15PM +0200, Florian Westphal wrote: > 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. Ack. Will add to v3. Thanks, Daniel