bpf: add bpf_redirect_map helper routine
commit97f91a7cf04ff605845c20948b8a80e54cbd3376
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 17 Jul 2017 16:29:18 +0000 (17 09:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 16:48:06 +0000 (17 09:48 -0700)
tree0d5c2872667d06e7e2a7f83253505c5170a0258b
parent546ac1ffb70d25b56c1126940e5ec639c4dd7413
bpf: add bpf_redirect_map helper routine

BPF programs can use the devmap with a bpf_redirect_map() helper
routine to forward packets to netdevice in map.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/bpf.h
include/uapi/linux/bpf.h
kernel/bpf/devmap.c
kernel/bpf/verifier.c
net/core/filter.c