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: 1036717 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PGAhCvsi"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43v43B2nzcz9sMx for ; Tue, 5 Feb 2019 23:42:14 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729093AbfBEMmN (ORCPT ); Tue, 5 Feb 2019 07:42:13 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40198 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbfBEMmM (ORCPT ); Tue, 5 Feb 2019 07:42:12 -0500 Received: by mail-pg1-f195.google.com with SMTP id z10so1332271pgp.7 for ; Tue, 05 Feb 2019 04:42:12 -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=YLFBzT6xE437uzFeIH39MGwDT6nA1Gn6lU2DR3+Pw6Rm6la7uL7ShHJEXRKozCYwM9 u74GlAfuL/651VpSNksMogTdaOLB65UmxPnYoJ4EhJFtq0P43XJpdFNpk+PZ84n0JTV5 lDCw/J6J6JNSoDIqesj1nwuqlPYqmduWMw8tme/+bRWXZsPwwtZzu8459vjcRNH7qSs/ zxaDLpbx3VzAoIaAEEId9HErJm4xUoLTdT5wTkF0yxBaZH6JQe3yZZQvKbV4yS0EdjyT Kt95TQkLMy4HkJT1/x4qIyLdc7QFb4w3xy4E379cvO+A86/ONvd1ZcJxaYtnpp/Uzy8K eSyA== X-Gm-Message-State: AHQUAuZGVlxCek/NGBWv1otUTaLTtzEVG3tuECpLl5IDrYHqw6+lWQJy CxFvvXrP9Q8cdW75SqZbpBU= 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 Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , palmer@sifive.com, hch@infradead.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 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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