kernel: mips: restore missing MIPS32 cBPF JIT
authorTony Ambardar <itugrok@yahoo.com>
Thu, 23 Jul 2020 02:40:12 +0000 (19:40 -0700)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 31 Jul 2020 12:42:14 +0000 (13:42 +0100)
commita4856dab0d7d68b03b4925e8fea183fe788eb7d7
treec62ff5b939b629e246ea010b38f11efa0d880b88
parentc4dd7fc23bfcf3b3f1a838668bb070edc9db5d4b
kernel: mips: restore missing MIPS32 cBPF JIT

Kernel v5.1 included an eBPF JIT for MIPS32 kernels, but problems were
discovered [1] and the changes later reverted in kernel v5.5 with commits:

  * f8fffebdea75 ("MIPS: BPF: Disable MIPS32 eBPF JIT")
  * 36366e367ee9 ("MIPS: BPF: Restore MIPS32 cBPF JIT")

Only the first of these was backported to LTS kernel 5.4, leaving cBPF
programs without a JIT and introducing a performance regression for any
such users e.g. libpcap, tcpdump, etc.

Restore cBPF performance by backporting the second commit above:
  * 070-v5.5-MIPS-BPF-Restore-MIPS32-cBPF-JIT.patch

[1] https://lore.kernel.org/bpf/20191205182318.2761605-1-paulburton@kernel.org/

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
target/linux/generic/backport-5.4/070-v5.5-MIPS-BPF-Restore-MIPS32-cBPF-JIT.patch [new file with mode: 0644]