summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/syscall.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-04-25 09:56:11 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-04-25 09:56:12 +0200
commitaf487c5777709d4b7f874fe1a33f9289d51b9adc (patch)
tree16281ac7de8247d60c728a93b7db5bc92a1e74ca /kernel/bpf/syscall.c
parenta18fda1a62c3313685ec222802d5b6743dbd560e (diff)
parent7bdc97be9075c074be0f0aa9c59a8d2238224743 (diff)
downloadlinux-stable-af487c5777709d4b7f874fe1a33f9289d51b9adc.tar.gz
linux-stable-af487c5777709d4b7f874fe1a33f9289d51b9adc.tar.bz2
linux-stable-af487c5777709d4b7f874fe1a33f9289d51b9adc.zip
Merge branch 'bpf-optimize-neg-sums'
Jakub Kicinski says: ==================== This set adds an optimization run to the NFP jit to turn ADD and SUB instructions with negative immediate into the opposite operation with a positive immediate. NFP can fit small immediates into the instructions but it can't ever fit negative immediates. Addition of small negative immediates is quite common in BPF programs for stack address calculations, therefore this optimization gives us non-negligible savings in instruction count (up to 4%). ==================== Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/bpf/syscall.c')
0 files changed, 0 insertions, 0 deletions