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)
commit6e525d06674a21468b4e728ef880770a0ca5c60d
tree1566a63cd843f6a6815870216a4b8b52a274c81d
parent88cda1c9da02c8aa31e1d5dcf22e8a35cc8c19f2
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