aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>2019-11-01 12:03:45 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-11-02 00:38:49 +0100
commite65650f291ee72fc578d6346080fc4699204ef2c (patch)
tree05a94d62e9e8c40672737ad5f16998d0f8164e4c /include/linux/bpf.h
parentxsk: Store struct xdp_sock as a flexible array member of the XSKMAP (diff)
downloadlinux-dev-e65650f291ee72fc578d6346080fc4699204ef2c.tar.xz
linux-dev-e65650f291ee72fc578d6346080fc4699204ef2c.zip
bpf: Implement map_gen_lookup() callback for XSKMAP
Inline the xsk_map_lookup_elem() via implementing the map_gen_lookup() callback. This results in emitting the bpf instructions in place of bpf_map_lookup_elem() helper call and better performance of bpf programs. Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com> Link: https://lore.kernel.org/bpf/20191101110346.15004-3-bjorn.topel@gmail.com
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions