]> asedeno.scripts.mit.edu Git - linux.git/commit
bpf: interpreter support BPF_ALU | BPF_ARSH
authorJiong Wang <jiong.wang@netronome.com>
Wed, 5 Dec 2018 18:52:34 +0000 (13:52 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 7 Dec 2018 21:30:48 +0000 (13:30 -0800)
commit2dc6b100f928aac8d7532bf7112d3f8d3f952bad
tree82df75e8cd36345581032546c69813e07e26e475
parent84708c1386770e957347d847522a4aac22ea04dc
bpf: interpreter support BPF_ALU | BPF_ARSH

This patch implements interpreting BPF_ALU | BPF_ARSH. Do arithmetic right
shift on low 32-bit sub-register, and zero the high 32 bits.

Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/core.c