]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Swap the order of checking prog_info and map_info
authorMartin KaFai Lau <kafai@fb.com>
Wed, 27 Sep 2017 21:37:55 +0000 (14:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Sep 2017 05:17:05 +0000 (06:17 +0100)
commit871b1fcb366401b3ed6764b6f4ba79b58ce8f8a2
tree1566a63cd843f6a6815870216a4b8b52a274c81d
parentec0bf644131a0dd177b855554a765f58431d7542
bpf: Swap the order of checking prog_info and map_info

This patch swaps the checking order.  It now checks the map_info
first and then prog_info.  It is a prep work for adding
test to the newly added fields (the map_ids of prog_info field
in particular).

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_progs.c