OSDN Git Service

bpf, x86: Simplify the parsing logic of structure parameters
authorPu Lehui <pulehui@huawei.com>
Thu, 5 Jan 2023 03:50:26 +0000 (11:50 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 10 Jan 2023 23:53:22 +0000 (15:53 -0800)
commit7f7880495770329d095d402c2865bfa7089192f8
tree15414e802fce1626b36d458eeceb1d27f0b4e5aa
parent129d868ede1ea835ac97f0a9f2cf3f4ed00d8ea7
bpf, x86: Simplify the parsing logic of structure parameters

Extra_nregs of structure parameters and nr_args can be
added directly at the beginning, and using a flip flag
to identifiy structure parameters. Meantime, renaming
some variables to make them more sense.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20230105035026.3091988-1-pulehui@huaweicloud.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
arch/x86/net/bpf_jit_comp.c