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 0EB70C433F5 for ; Fri, 11 Feb 2022 10:24:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345789AbiBKKYM (ORCPT ); Fri, 11 Feb 2022 05:24:12 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346916AbiBKKYJ (ORCPT ); Fri, 11 Feb 2022 05:24:09 -0500 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55885220; Fri, 11 Feb 2022 02:24:08 -0800 (PST) Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nIT5s-000AVF-Pf; Fri, 11 Feb 2022 11:24:00 +0100 Received: from [85.1.206.226] (helo=linux.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIT5s-000DIF-Dm; Fri, 11 Feb 2022 11:24:00 +0100 Subject: Re: [PATCH bpf-next 2/2] bpf: Make BPF_JIT_DEFAULT_ON selectable in Kconfig To: Tiezhu Yang , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Cc: Xuefeng Li , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <1644569851-20859-1-git-send-email-yangtiezhu@loongson.cn> <1644569851-20859-3-git-send-email-yangtiezhu@loongson.cn> From: Daniel Borkmann Message-ID: Date: Fri, 11 Feb 2022 11:23:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1644569851-20859-3-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.5/26450/Fri Feb 11 10:24:09 2022) Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 2/11/22 9:57 AM, Tiezhu Yang wrote: > Currently, it is not possible to set bpf_jit_enable to 1 by default > and the users can change it to 0 or 2, it seems bad for some users, > make BPF_JIT_DEFAULT_ON selectable to give them a chance. I'm not fully sure I follow the above, so you are saying that a kconfig of !BPF_JIT_ALWAYS_ON and ARCH_WANT_DEFAULT_BPF_JIT, enables BPF_JIT_DEFAULT_ON however in such setting you are not able to reset bpf_jit_enable back to 0 at runtime? Thanks, Daniel