Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752541AbdHQKbn (ORCPT ); Thu, 17 Aug 2017 06:31:43 -0400 Received: from ozlabs.org ([103.22.144.67]:60743 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752381AbdHQKbm (ORCPT ); Thu, 17 Aug 2017 06:31:42 -0400 From: Michael Ellerman To: Daniel Borkmann , ast@kernel.org Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] bpf: Update sysctl documentation to list all supported architectures In-Reply-To: <5994489E.1020806@iogearbox.net> References: <1502860557-20247-1-git-send-email-mpe@ellerman.id.au> <5993FFC9.8010206@iogearbox.net> <8760dnu5sf.fsf@concordia.ellerman.id.au> <5994489E.1020806@iogearbox.net> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Thu, 17 Aug 2017 20:31:39 +1000 Message-ID: <87lgmibi44.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1739 Lines: 40 Daniel Borkmann writes: > On 08/16/2017 01:10 PM, Michael Ellerman wrote: >> Daniel Borkmann writes: >>> On 08/16/2017 07:15 AM, Michael Ellerman wrote: >>>> diff --git a/Documentation/sysctl/net.txt b/Documentation/sysctl/net.txt >>>> index 14db18c970b1..f68356024d09 100644 >>>> --- a/Documentation/sysctl/net.txt >>>> +++ b/Documentation/sysctl/net.txt >>>> @@ -36,8 +36,9 @@ bpf_jit_enable >>>> -------------- >>>> >>>> This enables Berkeley Packet Filter Just in Time compiler. >>>> -Currently supported on x86_64 architecture, bpf_jit provides a framework >>>> -to speed packet filtering, the one used by tcpdump/libpcap for example. >>>> +Currently supported on arm, arm64, mips, powerpc, s390, sparc and x86_64 >>>> +architectures, bpf_jit provides a framework to speed packet filtering, the one >>>> +used by tcpdump/libpcap for example. >>> >>> Good point, could we actually make that as a bullet list and >>> differentiate between cBPF and eBPF JITs, so that a user doesn't >>> need to run git grep HAVE_{E,C}BPF_JIT to figure it out what the >>> switch enables on the arch used? That would be great. >> >> We could. >> >> Does a user of the sysctl want/need to know the difference though? Or do >> they just want to turn on "the JIT"? > > They would just turn it on, but I think it would be nice to inform > them which archs support eBPF (which is a superset of cBPF in term > of what can be jited), so in case they have some native eBPF programs > they would see whether these can also be jited. OK. v2 just sent. The text could probably use some more tweaking to mention the other things BPF is used for these days, but I didn't really feel qualified to do that. cheers