WSL2-Linux-Kernel/samples
David Ahern 4c79579b44 bpf: Change bpf_fib_lookup to return lookup status
For ACLs implemented using either FIB rules or FIB entries, the BPF
program needs the FIB lookup status to be able to drop the packet.
Since the bpf_fib_lookup API has not reached a released kernel yet,
change the return code to contain an encoding of the FIB lookup
result and return the nexthop device index in the params struct.

In addition, inform the BPF program of any post FIB lookup reason as
to why the packet needs to go up the stack.

The fib result for unicast routes must have an egress device, so remove
the check that it is non-NULL.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-06-29 00:02:02 +02:00
..
auxdisplay auxdisplay: Replace licenses with SPDX identifiers 2018-04-12 19:02:45 +02:00
bpf bpf: Change bpf_fib_lookup to return lookup status 2018-06-29 00:02:02 +02:00
configfs
connector
hidraw
hw_breakpoint
kdb
kfifo
kobject
kprobes arch: remove tile port 2018-03-16 10:56:03 +01:00
livepatch livepatch: Allow to call a custom callback when freeing shadow variables 2018-04-17 13:42:48 +02:00
mei
mic/mpssd
pktgen
qmi samples: Introduce Qualcomm QMI sample client 2018-02-12 16:57:22 -08:00
rpmsg
seccomp samples/seccomp: do not compile when cross compiled 2018-02-22 09:31:43 -08:00
statx
timers
trace_events
trace_printk
uhid
v4l
vfio-mdev sample: vfio bochs vbe display (host device for bochs-drm) 2018-06-08 10:24:16 -06:00
watchdog
Kconfig samples: mbochs: add DMA_SHARED_BUFFER dependency 2018-06-09 09:23:52 -06:00
Makefile remoteproc updates for v4.17 2018-04-10 12:09:27 -07:00