LoongArch: BPF: Support 32-bit offset jmp instructions
authorHengqi Chen <hengqi.chen@gmail.com>
Wed, 8 Nov 2023 06:12:16 +0000 (14:12 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 8 Nov 2023 06:12:16 +0000 (14:12 +0800)
commit9ddd2b8d1a8b566195c196fe4249d04cd75cc73c
tree47c7650b2683a3de986868e04771572b9df316ce
parent4ebf9216e7dff0b38e350007da3b03afb15c816b
LoongArch: BPF: Support 32-bit offset jmp instructions

Add support for 32-bit offset jmp instruction. Currently, we use b
instruction which supports range within ±128MB for such jumps. This
should be large enough for BPF progs.

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/net/bpf_jit.c