From: Daniel Borkmann Date: Wed, 25 Apr 2018 07:56:11 +0000 (+0200) Subject: Merge branch 'bpf-optimize-neg-sums' X-Git-Tag: for-linus-20180616~56^2~376^2~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=af487c5777709d4b7f874fe1a33f9289d51b9adc;p=linux-2.6-block.git 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 --- af487c5777709d4b7f874fe1a33f9289d51b9adc