summaryrefslogtreecommitdiffstats
path: root/net/core/filter.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-05-18 21:35:56 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-18 21:35:57 +0200
commit1cb61381e72ea2426511c0fb63176baf952bcd9f (patch)
tree9472d009cd111dc8b5d6a4cc2f0800aa50adb503 /net/core/filter.c
parent82f9e2d5dba6112118e32ebc80f06f6a200d55fb (diff)
parentc217abccaaa5e4eeba4aee26f29cdb57c026afc1 (diff)
downloadop-kernel-dev-1cb61381e72ea2426511c0fb63176baf952bcd9f.zip
op-kernel-dev-1cb61381e72ea2426511c0fb63176baf952bcd9f.tar.gz
Merge branch 'bpf-nfp-shift-insns'
Jiong Wang says: ==================== NFP eBPF JIT is missing logic indirect shifts (both left and right) and arithmetic right shift (both indirect shift and shift by constant). This patch adds support for them. For indirect shifts, shift amount is not specified as constant, NFP needs to get the shift amount through the low 5 bits of source A operand in PREV_ALU, therefore extra instructions are needed compared with shifts by constants. Because NFP is 32-bit, so we are using register pair for 64-bit shifts and therefore would need different instruction sequences depending on whether shift amount is less than 32 or not. NFP branch-on-bit-test instruction emitter is added by this patch set and is used for efficient runtime check on shift amount. We'd think the shift amount is less than 32 if bit 5 is clear and greater or equal then 32 otherwise. Shift amount is greater than or equal to 64 will result in undefined behavior. This patch also use range info to avoid generating unnecessary runtime code if we are certain shift amount is less than 32 or not. ==================== Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/core/filter.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud