From patchwork Wed Aug 8 12:33:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 955022 X-Patchwork-Delegate: shemminger@vyatta.com 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=none (p=none dis=none) header.from=distanz.ch Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41lrY525Bfz9s1c for ; Wed, 8 Aug 2018 22:39:04 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726975AbeHHO6d (ORCPT ); Wed, 8 Aug 2018 10:58:33 -0400 Received: from mail.zhinst.com ([212.126.164.102]:54968 "EHLO mail.zhinst.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726756AbeHHO6d (ORCPT ); Wed, 8 Aug 2018 10:58:33 -0400 X-Greylist: delayed 303 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Aug 2018 10:58:33 EDT Received: from ziws08.zhinst.com ([10.42.0.7]) by mail.zhinst.com (Kerio Connect 9.2.7) with ESMTP; Wed, 8 Aug 2018 14:33:40 +0200 From: Tobias Klauser To: netdev@vger.kernel.org Cc: stephen@networkplumber.org, daniel@iogearbox.net Subject: [PATCH iproute2] tc: bpf: update list of archs with eBPF support in manpage Date: Wed, 8 Aug 2018 14:33:40 +0200 Message-Id: <20180808123340.18446-1-tklauser@distanz.ch> X-Mailer: git-send-email 2.18.0.130.g98da2f6b3e4a Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Update the list of architectures supporting eBPF JIT as of Linux 4.18. Also mention the Linux version where support for a particular architecture was introduced. Finally, reformat the list of architectures as a bullet list in order to make it more readable. Signed-off-by: Tobias Klauser Acked-by: Daniel Borkmann --- man/man8/tc-bpf.8 | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/man/man8/tc-bpf.8 b/man/man8/tc-bpf.8 index d311f295615b..b2f9344f5e28 100644 --- a/man/man8/tc-bpf.8 +++ b/man/man8/tc-bpf.8 @@ -79,10 +79,39 @@ In Linux, it's generally considered that eBPF is the successor of cBPF. The kernel internally transforms cBPF expressions into eBPF expressions and executes the latter. Execution of them can be performed in an interpreter or at setup time, they can be just-in-time compiled (JIT'ed) to run as -native machine code. Currently, x86_64, ARM64, s390, ppc64 and sparc64 -architectures have eBPF JIT support, whereas PPC, SPARC, ARM and MIPS have -cBPF, but did not (yet) switch to eBPF JIT support. - +native machine code. +.PP +Currently, the eBPF JIT compiler is available for the following architectures: +.IP * 4 +x86_64 (since Linux 3.18) +.PD 0 +.IP * +arm64 (since Linux 3.18) +.IP * +s390 (since Linux 4.1) +.IP * +ppc64 (since Linux 4.8) +.IP * +sparc64 (since Linux 4.12) +.IP * +mips64 (since Linux 4.13) +.IP * +arm32 (since Linux 4.14) +.IP * +x86_32 (since Linux 4.18) +.PD +.PP +Whereas the following architectures have cBPF, but did not (yet) switch to eBPF +JIT support: +.IP * 4 +ppc32 +.PD 0 +.IP * +sparc32 +.IP * +mips32 +.PD +.PP eBPF's instruction set has similar underlying principles as the cBPF instruction set, it however is modelled closer to the underlying architecture to better mimic native instruction sets with the aim to