Joanne Koong 10608641b0 bpf: Tidy up verifier check_func_arg()
[ Upstream commit 8ab4cdcf03d0b060fbf73f76460f199bbd759ff7 ]

This patch does two things:

1. For matching against the arg type, the match should be against the
base type of the arg type, since the arg type can have different
bpf_type_flags set on it.

2. Uses switch casing to improve readability + efficiency.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Acked-by: Hao Luo <haoluo@google.com>
Link: https://lore.kernel.org/r/20220712210603.123791-1-joannelkoong@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-08 11:23:58 +02:00
..
2022-05-26 17:13:43 -07:00
2022-05-25 16:18:27 -07:00
2022-05-25 11:32:53 -07:00
2022-06-02 08:55:01 -07:00
2022-01-11 13:08:21 -08:00
2022-05-23 17:51:12 -07:00
2022-03-15 10:32:44 +01:00
2022-02-25 09:36:06 +01:00
2022-07-15 09:52:35 -07:00