bpf: xor of a/x in cbpf can be done in 32 bit alu
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 26 Jan 2018 22:33:36 +0000 (23:33 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Jan 2018 00:42:05 +0000 (16:42 -0800)
commit1d621674d923790d09cab9e2c7da7da6446a6257
tree77e833adb01837abf0edc3421b403e9244c9e9b0
parentc25ef6a5e62fa212d298ce24995ce239f29b5f96
bpf: xor of a/x in cbpf can be done in 32 bit alu

Very minor optimization; saves 1 byte per program in x86_64
JIT in cBPF prologue.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/core/filter.c