]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mips, bpf: Optimize loading of 64-bit constants
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>
Thu, 7 Oct 2021 14:28:28 +0000 (16:28 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 7 Oct 2021 21:51:29 +0000 (23:51 +0200)
commitbbf731b3f44d512efaec065435f3efd0cbdac68e
tree712d0ee2ca472030ade53ea6f98fc6933678b416
parente5c15a363de6f87d5aff9a2674f77c49f70a9ca2
mips, bpf: Optimize loading of 64-bit constants

This patch shaves off a few instructions when loading sparse 64-bit
constants to register. The change is covered by additional tests in
lib/test_bpf.c.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211007142828.634182-1-johan.almbladh@anyfinetworks.com
arch/mips/net/bpf_jit_comp64.c