]> www.infradead.org Git - users/hch/configfs.git/commit
s390/bpf: Change seen_reg to a mask
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 3 Jul 2024 00:48:47 +0000 (02:48 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 8 Jul 2024 14:39:35 +0000 (16:39 +0200)
commit7ba4f43e16de351fe9821de80e15d88c884b2967
tree0019f59ba154fd2eebb46705076a6a55c77225ed
parentbc239eb271e5f35fcade689c6782c962ef3704c8
s390/bpf: Change seen_reg to a mask

Using a mask instead of an array saves a small amount of memory and
allows marking multiple registers as seen with a simple "or". Another
positive side-effect is that it speeds up verification with jitterbug.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240703005047.40915-2-iii@linux.ibm.com
arch/s390/net/bpf_jit_comp.c