commit | f43d0f17fe9a4bb770ab38b36e2b5150d8c3d6cf | [log] [tgz] |
---|---|---|
author | Jiong Wang <jiong.wang@netronome.com> | Fri May 18 12:12:10 2018 -0700 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Fri May 18 21:35:55 2018 +0200 |
tree | 8181906f9bec541e5f0bfe8a35edf4e215f272f4 | |
parent | 991f5b3651f6bb1cb5034f422e43f489e65f2701 [diff] |
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>