bpf: inline htab_map_lookup_elem()
authorAlexei Starovoitov <ast@fb.com>
Thu, 16 Mar 2017 01:26:43 +0000 (18:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2017 03:44:11 +0000 (20:44 -0700)
commit9015d2f5953590e8273392b44c2b0f864350b427
treebad1c229a12db8e440546287aaa4d352bc36f0c4
parent81ed18ab3098b6519274545e80a29caacb77d160
bpf: inline htab_map_lookup_elem()

Optimize:
bpf_call
  bpf_map_lookup_elem
    map->ops->map_lookup_elem
      htab_map_lookup_elem
        __htab_map_lookup_elem
into:
bpf_call
  __htab_map_lookup_elem

to improve performance of JITed programs.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/hashtab.c