Re: [PATCH net-next 2/2] bpf: inline map in map lookup functions for array and htab

2017-08-18 Thread Alexei Starovoitov
On 8/18/17 4:51 PM, Daniel Borkmann wrote: Avoid two successive functions calls for the map in map lookup, first is the bpf_map_lookup_elem() helper call, and second the callback via map->ops->map_lookup_elem() to get to the map in map implementation. Implementation inlines array and htab flavor

[PATCH net-next 2/2] bpf: inline map in map lookup functions for array and htab

2017-08-18 Thread Daniel Borkmann
Avoid two successive functions calls for the map in map lookup, first is the bpf_map_lookup_elem() helper call, and second the callback via map->ops->map_lookup_elem() to get to the map in map implementation. Implementation inlines array and htab flavor for map in map lookups. Signed-off-by: Danie