linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] bpf: Update sysctl documentation to list all supported architectures
@ 2017-08-17 10:30 Michael Ellerman
  2017-08-17 11:50 ` Daniel Borkmann
  2017-08-17 17:09 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Ellerman @ 2017-08-17 10:30 UTC (permalink / raw)
  To: ast, daniel; +Cc: davem, netdev, linux-kernel

The sysctl documentation states that the JIT is only available on
x86_64, which is no longer correct.

Update the list, and break it out to indicate which architectures
support the cBPF JIT (via HAVE_CBPF_JIT) or the eBPF JIT
(HAVE_EBPF_JIT).

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 Documentation/sysctl/net.txt | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

v2: Split the list based on cBPF vs eBPF.

diff --git a/Documentation/sysctl/net.txt b/Documentation/sysctl/net.txt
index 14db18c970b1..b9c3c6078010 100644
--- a/Documentation/sysctl/net.txt
+++ b/Documentation/sysctl/net.txt
@@ -36,8 +36,23 @@ 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.
+
+There are two flavors of JIT, the new eBPF JIT supported on:
+  - x86_64
+  - arm64
+  - ppc64
+  - sparc64
+  - mips64
+
+And the older cBPF JIT supported on:
+  - arm
+  - mips
+  - ppc
+  - sparc
+
+The BPF JIT provides a framework to speed packet filtering, the one used by
+tcpdump/libpcap for example.
+
 Values :
 	0 - disable the JIT (default value)
 	1 - enable the JIT
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] bpf: Update sysctl documentation to list all supported architectures
  2017-08-17 10:30 [PATCH v2] bpf: Update sysctl documentation to list all supported architectures Michael Ellerman
@ 2017-08-17 11:50 ` Daniel Borkmann
  2017-08-18  1:27   ` Michael Ellerman
  2017-08-17 17:09 ` David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Borkmann @ 2017-08-17 11:50 UTC (permalink / raw)
  To: Michael Ellerman, ast; +Cc: davem, netdev, linux-kernel

On 08/17/2017 12:30 PM, Michael Ellerman wrote:
> The sysctl documentation states that the JIT is only available on
> x86_64, which is no longer correct.
>
> Update the list, and break it out to indicate which architectures
> support the cBPF JIT (via HAVE_CBPF_JIT) or the eBPF JIT
> (HAVE_EBPF_JIT).
>
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

The last paragraph speaking about tcpdump, I can take care of
later, also given the patch is about updating list of archs, so
lgtm, thanks!

Acked-by: Daniel Borkmann <daniel@iogearbox.net>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] bpf: Update sysctl documentation to list all supported architectures
  2017-08-17 10:30 [PATCH v2] bpf: Update sysctl documentation to list all supported architectures Michael Ellerman
  2017-08-17 11:50 ` Daniel Borkmann
@ 2017-08-17 17:09 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2017-08-17 17:09 UTC (permalink / raw)
  To: mpe; +Cc: ast, daniel, netdev, linux-kernel

From: Michael Ellerman <mpe@ellerman.id.au>
Date: Thu, 17 Aug 2017 20:30:39 +1000

> The sysctl documentation states that the JIT is only available on
> x86_64, which is no longer correct.
> 
> Update the list, and break it out to indicate which architectures
> support the cBPF JIT (via HAVE_CBPF_JIT) or the eBPF JIT
> (HAVE_EBPF_JIT).
> 
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

Applied, thanks Michael.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] bpf: Update sysctl documentation to list all supported architectures
  2017-08-17 11:50 ` Daniel Borkmann
@ 2017-08-18  1:27   ` Michael Ellerman
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2017-08-18  1:27 UTC (permalink / raw)
  To: Daniel Borkmann, ast; +Cc: davem, netdev, linux-kernel

Daniel Borkmann <daniel@iogearbox.net> writes:

> On 08/17/2017 12:30 PM, Michael Ellerman wrote:
>> The sysctl documentation states that the JIT is only available on
>> x86_64, which is no longer correct.
>>
>> Update the list, and break it out to indicate which architectures
>> support the cBPF JIT (via HAVE_CBPF_JIT) or the eBPF JIT
>> (HAVE_EBPF_JIT).
>>
>> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
>
> The last paragraph speaking about tcpdump, I can take care of
> later, also given the patch is about updating list of archs, so
> lgtm, thanks!

Thanks.

cheers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-18  1:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-17 10:30 [PATCH v2] bpf: Update sysctl documentation to list all supported architectures Michael Ellerman
2017-08-17 11:50 ` Daniel Borkmann
2017-08-18  1:27   ` Michael Ellerman
2017-08-17 17:09 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).