diff options
author | Jiong Wang <jiong.wang@netronome.com> | 2018-05-18 12:12:10 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-18 21:35:55 +0200 |
commit | f43d0f17fe9a4bb770ab38b36e2b5150d8c3d6cf (patch) | |
tree | 8181906f9bec541e5f0bfe8a35edf4e215f272f4 /kernel/bpf/arraymap.c | |
parent | 991f5b3651f6bb1cb5034f422e43f489e65f2701 (diff) | |
download | linux-f43d0f17fe9a4bb770ab38b36e2b5150d8c3d6cf.tar.gz linux-f43d0f17fe9a4bb770ab38b36e2b5150d8c3d6cf.tar.bz2 linux-f43d0f17fe9a4bb770ab38b36e2b5150d8c3d6cf.zip |
nfp: bpf: support arithmetic right shift by constant (BPF_ARSH | BPF_K)
Code logic is similar with logic right shift except we also need to set
PREV_ALU result properly, the MSB of which is the bit that will be
replicated to fill in all the vacant positions.
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions