Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp32608imw; Thu, 14 Jul 2022 19:49:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ui6B7Pt5ySjjMvfqefpB9FNhRzXQ/zcHAc4lVKspuOMRYn1HdwLSBfXbJHRN06NXSdoi1i X-Received: by 2002:a17:906:149:b0:712:c8:fa53 with SMTP id 9-20020a170906014900b0071200c8fa53mr10928803ejh.563.1657853387566; Thu, 14 Jul 2022 19:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657853387; cv=none; d=google.com; s=arc-20160816; b=Z6u0uKYxvNo6RVDBwPIEXFa4uFctXeaS1PBMEwP7xGFUKlVCCUoPhDoPnR+QuvA82T JrTjpMzTUy23EPocsBaT9dSlvAq0IIV+vgOmfRfe0DiCHWrIEFeMRiiVhYRfpcSyxrvn sMB9ppQdBgpF2eCdjOxL5f8JGSeJN0+iKMbUrMVMVvyUoB/103SkY9sNihMkuWvnct98 Df5Dxyk9fiXHPIr74CuwgjkYzC8YctWIHSgEIl6OxGH87kYeVH1ruhUokUV7zuP82KmD AqlSWdEUDw/ZqV4ySCwyV93QqSM3SyK7VO3MEwQ9R+TyLDLmeYIJ4YkdhwS8R0zXa76N tBSw== 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; bh=sHvzwPJpg6WbbET6QeBPtNTqK7D73gjv8a3Ob/EOoXs=; b=e8+2S5jVVfON7uMFRp+BivcWY0yhGSE2QM1N/PMJvj+c5rWtYLNEpAZ6+QBXG7wlE0 guC9tul52YjVblZuZ4iogF+vdOzmlqNQLO0AeCxQTgHKWsI9lLYNhsbk0wQG1Ru5laWo zg14W1YP2YRQenqagAvTU26ZafJ5ncOCvzajLVTeo22qSsA5u7sLMzqfYi1ETwMYy60t edYbVGSJeMFBHh6z1eOTDFE3TqbiS+Opk1FhjS1OlK+0XH1albP88+NrpRF2aNlmtxrh LFPuc/yWMebDOxsWf/2lpz4rMwtNeF53r6OurwtbLQDZNnYR46BvSsr5waiamCZ8NgqW cCXA== 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 jg34-20020a170907972200b0072b4a6fd638si3266552ejc.543.2022.07.14.19.49.22; Thu, 14 Jul 2022 19:49:47 -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 S240857AbiGOCq6 (ORCPT + 99 others); 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 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,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 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