diff options
author | David Ahern <dsahern@gmail.com> | 2018-06-27 02:21:18 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-06-29 01:02:02 +0300 |
commit | 4c79579b44b1876444f4d04de31c1a37098a0350 (patch) | |
tree | 260a0a5f0d8139c99ac26e1941cace8f838dc5cc /samples/bpf/test_cls_bpf.sh | |
parent | 3203c9010060806ff88c9989aeab4dc8d9a474dc (diff) | |
download | linux-4c79579b44b1876444f4d04de31c1a37098a0350.tar.xz |
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>
Diffstat (limited to 'samples/bpf/test_cls_bpf.sh')
0 files changed, 0 insertions, 0 deletions