From patchwork Tue Feb 5 12:41:24 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: 10797457 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 B52B56C2 for ; Tue, 5 Feb 2019 12:57:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98E50285AA for ; Tue, 5 Feb 2019 12:57:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A92128600; Tue, 5 Feb 2019 12:57:49 +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 23A55285AA for ; Tue, 5 Feb 2019 12:57:49 +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=wxWKlGsFfOZL9B9wmI8a+5zmwlJabsY9+2bmWfvlvS4=; b=dWl+WWqMFU1/sU xaF4YOulxT1yolnyoV5QV8EAbgVupI5Y15pmShKqPIC7M0wqGNGZmGMFZU2GYjOJlxIxXNoPLAzCv VSSqlBSo55smGuUonh7ATJh3QIdg5ETVGGARNYk62ln6RHWmDtiu863wPdVu9nVDf8elxYaq5oe4a XbkGiY/YoMkDHYB0e18kvaBye63wWEXYpjv6nDiwilSHqzmrOs4jxoTbsqdAi3F0kb/DpDK1KB+KG pOV/RzqhrO5s3VaXVtm3VhZaTc3eogoTZJoNMig9pnT61YYj6PETGJED8/tmW2ZNUOwQnx8QvtorD Q64weso1L/nsaQWEqe2g==; 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 1gr0IN-0002fN-5D; Tue, 05 Feb 2019 12:57:47 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gr0IJ-0002CI-Nv for linux-riscv@bombadil.infradead.org; Tue, 05 Feb 2019 12:57:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YrzR9lbg/TqzIpUd4cPUsm9HDS0QjFtayef4QW4qU7Q=; b=B7LQMkR3v+AGra3EbXCZZWzmAT Nqa6eyqbD0gERpN+Bu125kM5+aiVBrCdVMHrT90EUkeIQ6Rjm4yg7AEcbHmnHEjzPmFSoJcXV8Fxk 2HOxDy4PvLRRYv/mOQh9rEcslpUrsMzCF9nK3etu+K+up1JuvR6aK3VCSnfcsL9rNTx+iP5UDi4Gu 4patBtiXSCLVpAS7xIV5uDP7cvoP/TgmaSIZwrf3QnsoDUxGs+ul1uamJtDNrS+0W1K8R8xyM1By/ c9gGhP+/pDuAt6/N6916gzQ8zt0xCmxD0aZ5xBFlxlS5Jl0FL3PrFTmrVQk1wFT5VwA2NdlElXsZh Fc9KzMWQ==; Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gr03J-0007VF-Fh for linux-riscv@lists.infradead.org; Tue, 05 Feb 2019 12:42:15 +0000 Received: by mail-pf1-x441.google.com with SMTP id b7so1413122pfi.8 for ; Tue, 05 Feb 2019 04:42:13 -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=YrzR9lbg/TqzIpUd4cPUsm9HDS0QjFtayef4QW4qU7Q=; b=PGAhCvsi/GMm/QLqIX6PuM2JEkzo9LIqzX1hC5GfY/fNsbb1sbz3uZe30vadW9u/IM aRkLdWRLS18VtswXyhhOUSaS+TxL4co6+Tm06jFVBP3DAIodEx48MnmGnD5s4lZtfArH 0yLxTz2uuNqa/ef2pRv5tQIeX0vKOpSOTShrZ66uuenP8Oi3fHv46bIv4x2foVEliod5 uBhB6LkxmNzaUfHQNueJsF6lKEmd2L53Cj5rIsXb9XgO7K4n1BrSRw3FI8CVN/EHDr2U WHEBmEB4og/uj1q9OOp19DvKRy4B5mH9BejMZR6o71MQdLU//g3fMNIW0ItbW+tsWCbx HpfQ== 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=YrzR9lbg/TqzIpUd4cPUsm9HDS0QjFtayef4QW4qU7Q=; b=pULv5rp6wF740YbU57lQSPRuaqVeYtgMGh0sYYaVAW0r29Ne4W5Zv2RzOCUYinma14 zAhPp+ztt6+D8uC9ZuZSlBPHWsoG3+NUbhQlmA0vWNd27UPEW/ZEHeOy2wbwDXYZlJfN YNYZzWdqCvcVBUrRAPsDvCqkLlNavqmLrad7m56Zye+91pXWAFfKxLUIRb4fPZgRaHqr t+nfscIRWT1gbTJmQYTfz/y5mOrq7IdJrE9nI/bim8WKaC4mb/RZ7GdbvK7DRJgDbUEf 8a6XQYlEb3XgSESUhNEjpYfZgoYg79XPoaHgPfkFJAk9K/TfGMvFYoHtbGlF97Ehv4it TuwQ== X-Gm-Message-State: AHQUAublL/xiskgKjzGuO98xokHFCWvdrlxPwY5X57qQwJ0WJtru5iZv jK3ZJ2uGmcbiE0Tc8wJfjTUFPF90ZID81w== X-Google-Smtp-Source: AHgI3IZN3IsbWz5Q2oM1mEs3v+lkwkQkH+IEO/B0M+s69FoR+oJ/YifzL0lgOLtd49fKGAIc9LU73g== X-Received: by 2002:a62:6ec8:: with SMTP id j191mr4840003pfc.198.1549370531771; Tue, 05 Feb 2019 04:42:11 -0800 (PST) Received: from btopel-mobl.ger.intel.com (jfdmzpr04-ext.jf.intel.com. [134.134.139.73]) by smtp.gmail.com with ESMTPSA id g6sm5116774pgq.18.2019.02.05.04.42.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 04:42:11 -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 v2 3/4] bpf, doc: add RISC-V JIT to BPF documentation Date: Tue, 5 Feb 2019 13:41:24 +0100 Message-Id: <20190205124125.5553-4-bjorn.topel@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190205124125.5553-1-bjorn.topel@gmail.com> References: <20190205124125.5553-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-20190205_124213_709483_B9F1FE28 X-CRM114-Status: GOOD ( 11.78 ) 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 and Documentation/sysctl/net.txt to mention RISC-V. Signed-off-by: Björn Töpel --- Documentation/networking/filter.txt | 16 +++++++++------- Documentation/sysctl/net.txt | 1 + 2 files changed, 10 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: diff --git a/Documentation/sysctl/net.txt b/Documentation/sysctl/net.txt index bc0680706870..2ae91d3873bb 100644 --- a/Documentation/sysctl/net.txt +++ b/Documentation/sysctl/net.txt @@ -52,6 +52,7 @@ two flavors of JITs, the newer eBPF JIT currently supported on: - sparc64 - mips64 - s390x + - riscv And the older cBPF JIT supported on the following archs: - mips