]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-optimize-neg-sums'
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 25 Apr 2018 07:56:11 +0000 (09:56 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 25 Apr 2018 07:56:12 +0000 (09:56 +0200)
commit83f83a783f2aecfc55ffebebf63437e2eff19c96
tree16281ac7de8247d60c728a93b7db5bc92a1e74ca
parent1a1a086e10fe0773d6b3caeb78ce81f97705f105
parent6d3c81b725dfb66e59a4219deb39f55e2bd713c6
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>