From patchwork Sun Feb 3 11:51:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= X-Patchwork-Id: 10794631 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE7DA1390 for ; Sun, 3 Feb 2019 11:53:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE4882ABD7 for ; Sun, 3 Feb 2019 11:53:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A15D92BF85; Sun, 3 Feb 2019 11:53:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2E0C32ABD7 for ; Sun, 3 Feb 2019 11:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TPfBdIE+B+zkqCOmXAasEgo6DvADoaru6IBiQxq4UEk=; b=V1XEANUHDs9cKu /aJFEYY3ZW0JukCjyIfAWgoxJ4ngvJuH3rNzu4Gx/2PfOBYfNVOvgEIzkWPhdFoimFWgY2Rneo3pz FqeUyyPBZulmI+4ss5FQysjMSDgdq6S1m60gDRWjEoEgxowoBUENGNHRh0Lyo8BNgKXW2G1SmNckz dKOBjbPRiPH2JDir4m4fwV4hjNVKuzqHdk2UZw7JR4tE1OmdddinDskDo9ZBsMowuXyVM3cdb485a rlSO16vi8hVLo9WGRf9ssGsHBpw20aEaHdLv4e9FzylkS3DqXplWBN5Qi13VVvsbnadjwqyHIy5mP cnX/bpHVZza3qcVR/9vA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gqGKc-0007ts-5t; Sun, 03 Feb 2019 11:53:02 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gqGKZ-0007rr-VD for linux-riscv@lists.infradead.org; Sun, 03 Feb 2019 11:53:01 +0000 Received: by mail-ed1-x542.google.com with SMTP id p6so9059753eds.0 for ; Sun, 03 Feb 2019 03:52:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jGORwTYKZSs8e9AqRAHyYF0TKUYoUYDhjsmU7+h4s8E=; b=lifcbF5Mr4zWpfs4uyM0Rm5RA9/rZ5PjGYKZWzZtXqBYNiVNcQDDY51OzDvILYuOQ3 tadiat/YPpBitDkexe1exNyOtlroJHoVOxYg3Y4fiKvYAmipfZ6C2PX1bSFezkTw8H/1 mfGjTRzb+bzrjy2VRtwHBeZgMzdPcW1iY4f7YVwMVUzkMXKcX992GYWU4lU2ddBfTITg jkz9dNsecenk6+5QIS+Jf14MGLR64r822pupY9YTSxeXsJn0xqexQeo4TkYp4OFxPS1Q bOYge7kckx/kCYtqMXGwMJ7ns87uxKq9E/Wq+dOLOrV+BlOfxZtOOWC0P/R9281c+lI0 3Rbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jGORwTYKZSs8e9AqRAHyYF0TKUYoUYDhjsmU7+h4s8E=; b=ivQn1AWXEuT9rFHG/bPR0ce55S5U55gU/4n44sARm0xq+TvVxH3K3nEryipBz1+VLt 1JgsF9sM3Wl/LrHeo8Iwu5+xGmIk6B26k5oFgy7wGCGLIAQbl1BO99h/DgcSp+2+gE3p G7DoS8sm5xtHogXcQxc04EX9Zs0VZQBzMhtR0psz5V/pkTDEeh8qiwJb1QPWyUfKnR2A ThbrJ9P9mhZ/WDa+mExCen9kfzZ+mLkMUlyfz0+JbJdVPD9PPsiDY5Tp8OYB/DImStDL TuF2KQb8LMuzt0f9NThcSsGQeEIBuoul7IBxit0rtDmu1xzl+9qQ7ijRXY4NBVXEB7EL /EEw== X-Gm-Message-State: AJcUukeJMWrdE85s5hYNFHJvtesZHRrbP0tr9pANk4uyRhPM6D1SXk36 ijVX0MDtLoxxQAR0R42S9K+hSV7toHrh6w== X-Google-Smtp-Source: ALg8bN6+iNgeqePI4L+kgpKCKNi/d6Sh4zqoQk48JdIZijTuudWHaJhskNruz2zNe+nb+Y1CfOhyhw== X-Received: by 2002:a17:906:b3ce:: with SMTP id cg14mr38416329ejb.43.1549194777528; Sun, 03 Feb 2019 03:52:57 -0800 (PST) Received: from btopel-mobl.ger.intel.com ([2001:67c:1810:f055:c82b:bcf5:1add:2ef0]) by smtp.gmail.com with ESMTPSA id l10sm2120719ejq.55.2019.02.03.03.52.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Feb 2019 03:52:57 -0800 (PST) From: bjorn.topel@gmail.com To: linux-riscv@lists.infradead.org, daniel@iogearbox.net, ast@kernel.org, netdev@vger.kernel.org Subject: [PATCH bpf-next 3/3] bpf, doc: add RISC-V to filter.txt Date: Sun, 3 Feb 2019 12:51:31 +0100 Message-Id: <20190203115132.8766-4-bjorn.topel@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190203115132.8766-1-bjorn.topel@gmail.com> References: <20190203115132.8766-1-bjorn.topel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190203_035300_014068_7FD88E2D X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: hch@infradead.org, =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , palmer@sifive.com Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Björn Töpel Update Documentation/networking/filter.txt to mention RISC-V. Signed-off-by: Björn Töpel Acked-by: David S. Miller --- 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: