bpf: doc: "neg" opcode has no operands
authorDave Anderson <danderson@google.com>
Mon, 28 Mar 2016 21:56:47 +0000 (14:56 -0700)
committerJonathan Corbet <corbet@lwn.net>
Thu, 31 Mar 2016 06:30:41 +0000 (00:30 -0600)
Fixes a copy-paste-o in the BPF opcode table: "neg" takes no arguments
and thus has no addressing modes.

Signed-off-by: Dave Anderson <danderson@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/networking/filter.txt

index 96da119a47e70fefa7844137c13ea33f070dc077..11f67f181d39e78aa306abf562ef6d2726ef60cd 100644 (file)
@@ -230,7 +230,7 @@ opcodes as defined in linux/filter.h stand for:
   mul              0, 4                 A * <x>
   div              0, 4                 A / <x>
   mod              0, 4                 A % <x>
-  neg              0, 4                 !A
+  neg                                   !A
   and              0, 4                 A & <x>
   or               0, 4                 A | <x>
   xor              0, 4                 A ^ <x>