Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89CCBC282C4 for ; Mon, 4 Feb 2019 20:09:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B56120821 for ; Mon, 4 Feb 2019 20:09:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbfBDUJJ (ORCPT ); Mon, 4 Feb 2019 15:09:09 -0500 Received: from www62.your-server.de ([213.133.104.62]:60980 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727245AbfBDUJJ (ORCPT ); Mon, 4 Feb 2019 15:09:09 -0500 Received: from [88.198.220.130] (helo=sslproxy01.your-server.de) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1gqkYD-0004Sd-Cg; Mon, 04 Feb 2019 21:09:05 +0100 Received: from [178.197.249.40] (helo=linux.home) by sslproxy01.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1gqkYC-0001NU-Vh; Mon, 04 Feb 2019 21:09:05 +0100 Subject: Re: [PATCH bpf-next 3/3] bpf, doc: add RISC-V to filter.txt To: bjorn.topel@gmail.com, linux-riscv@lists.infradead.org, ast@kernel.org, netdev@vger.kernel.org Cc: palmer@sifive.com, hch@infradead.org References: <20190203115132.8766-1-bjorn.topel@gmail.com> <20190203115132.8766-4-bjorn.topel@gmail.com> From: Daniel Borkmann Message-ID: Date: Mon, 4 Feb 2019 21:09:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20190203115132.8766-4-bjorn.topel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.2/25350/Mon Feb 4 11:34:43 2019) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 02/03/2019 12:51 PM, bjorn.topel@gmail.com wrote: > From: Björn Töpel > > Update Documentation/networking/filter.txt to mention RISC-V. > > Signed-off-by: Björn Töpel Nit: in Documentation/sysctl/net.txt under bpf_jit_enable there is also a concrete list of eBPF/cBPF JITs, would be good to add riscv64 there as well. > Documentation/networking/filter.txt | 16 +++++++++------- > 1 file changed, 9 insertions(+), 7 deletions(-) > > diff --git a/Documentation/networking/filter.txt b/Documentation/networking/filter.txt > index 01603bc2eff1..b5e060edfc38 100644 > --- a/Documentation/networking/filter.txt > +++ b/Documentation/networking/filter.txt > @@ -464,10 +464,11 @@ breakpoints: 0 1 > JIT compiler > ------------ > > -The Linux kernel has a built-in BPF JIT compiler for x86_64, SPARC, PowerPC, > -ARM, ARM64, MIPS and s390 and can be enabled through CONFIG_BPF_JIT. The JIT > -compiler is transparently invoked for each attached filter from user space > -or for internal kernel users if it has been previously enabled by root: > +The Linux kernel has a built-in BPF JIT compiler for x86_64, SPARC, > +PowerPC, ARM, ARM64, MIPS, RISC-V and s390 and can be enabled through > +CONFIG_BPF_JIT. The JIT compiler is transparently invoked for each > +attached filter from user space or for internal kernel users if it has > +been previously enabled by root: > > echo 1 > /proc/sys/net/core/bpf_jit_enable > > @@ -603,9 +604,10 @@ got from bpf_prog_create(), and 'ctx' the given context (e.g. > skb pointer). All constraints and restrictions from bpf_check_classic() apply > before a conversion to the new layout is being done behind the scenes! > > -Currently, the classic BPF format is being used for JITing on most 32-bit > -architectures, whereas x86-64, aarch64, s390x, powerpc64, sparc64, arm32 perform > -JIT compilation from eBPF instruction set. > +Currently, the classic BPF format is being used for JITing on most > +32-bit architectures, whereas x86-64, aarch64, s390x, powerpc64, > +sparc64, arm32, riscv (RV64G) perform JIT compilation from eBPF > +instruction set. > > Some core changes of the new internal format: > >