From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8241ECCA47B for ; Fri, 15 Jul 2022 02:46:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240530AbiGOCq6 (ORCPT ); Thu, 14 Jul 2022 22:46:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232185AbiGOCq5 (ORCPT ); Thu, 14 Jul 2022 22:46:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F4565D52; Thu, 14 Jul 2022 19:46:53 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id A0A29B82A63; Fri, 15 Jul 2022 02:46:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99E37C34114; Fri, 15 Jul 2022 02:46:48 +0000 (UTC) Date: Thu, 14 Jul 2022 22:46:46 -0400 From: Steven Rostedt To: Song Liu Cc: Song Liu , Networking , bpf , lkml , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Kernel Team , "jolsa@kernel.org" , "mhiramat@kernel.org" Subject: Re: [PATCH v2 bpf-next 3/5] ftrace: introduce FTRACE_OPS_FL_SHARE_IPMODIFY Message-ID: <20220714224646.62d49e36@rorschach.local.home> In-Reply-To: <6A7EF1C7-471B-4652-99C1-87C72C223C59@fb.com> References: <20220602193706.2607681-1-song@kernel.org> <20220602193706.2607681-4-song@kernel.org> <20220713203343.4997eb71@rorschach.local.home> <20220714204817.2889e280@rorschach.local.home> <6A7EF1C7-471B-4652-99C1-87C72C223C59@fb.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, 15 Jul 2022 02:04:33 +0000 Song Liu wrote: > > What I'm suggesting is that a DIRECT ops will never set IPMODIFY. > > Aha, this the point I misunderstood. I thought DIRECT ops would always > set IPMODIFY (as it does now). My fault. I was probably not being clear when I was suggesting that DIRECT should *act* like an IPMODIFY, but never explicitly stated that it should not set the IPMODIFY flag. The only reason it does today was to make it easy to act like an IPMODIFY (because it set the flag). But I'm now suggesting to get rid of that and just make DIRECT act like an IPMDOFIY as there can only be one of them on a function, but now we have some cases where DIRECT can work with IPMODIFY via the callbacks. -- Steve